From ff1878c44aafef04ddeee0d659e89b7672370445 Mon Sep 17 00:00:00 2001 From: Kenny Kerr Date: Thu, 16 Jan 2025 16:04:21 -0600 Subject: [PATCH] code gen --- crates/libs/core/src/imp/com_bindings.rs | 2 +- .../src/Windows/Wdk/Storage/FileSystem/mod.rs | 2 +- .../Win32/Devices/BiometricFramework/mod.rs | 6 +- .../Windows/Win32/Devices/DeviceQuery/mod.rs | 12 +- .../src/Windows/Win32/Devices/Display/mod.rs | 2 +- .../Win32/Devices/Enumeration/Pnp/mod.rs | 6 +- .../Win32/Devices/WebServicesOnDevices/mod.rs | 6 +- .../windows/src/Windows/Win32/Gaming/mod.rs | 10 +- .../src/Windows/Win32/Globalization/mod.rs | 6 +- .../Win32/Graphics/DirectComposition/mod.rs | 6 +- .../src/Windows/Win32/Graphics/Dwm/mod.rs | 10 +- .../src/Windows/Win32/Graphics/Imaging/mod.rs | 6 +- .../Graphics/Printing/PrintTicket/mod.rs | 4 +- .../Windows/Win32/Graphics/Printing/mod.rs | 8 +- .../MobileDeviceManagementRegistration/mod.rs | 8 +- .../Win32/Media/Audio/DirectSound/mod.rs | 2 +- .../Win32/Media/KernelStreaming/mod.rs | 12 +- .../Win32/Media/MediaFoundation/mod.rs | 36 +- .../NetworkManagement/NetManagement/mod.rs | 2 +- .../NetworkDiagnosticsFramework/mod.rs | 2 +- .../Win32/NetworkManagement/P2P/mod.rs | 118 ++--- .../WindowsConnectionManager/mod.rs | 6 +- .../Windows/Win32/Networking/WebSocket/mod.rs | 4 +- .../Networking/WindowsWebServices/mod.rs | 14 +- .../Security/Authentication/Identity/mod.rs | 52 +- .../Windows/Win32/Security/Credentials/mod.rs | 2 +- .../Win32/Security/Cryptography/mod.rs | 36 +- .../Win32/Security/DiagnosticDataQuery/mod.rs | 40 +- .../Win32/Security/EnterpriseData/mod.rs | 6 +- .../Windows/Win32/Security/Isolation/mod.rs | 18 +- .../Win32/Security/LicenseProtection/mod.rs | 2 +- .../Windows/Win32/Storage/CloudFilters/mod.rs | 10 +- .../Windows/Win32/Storage/FileHistory/mod.rs | 2 +- .../Windows/Win32/Storage/FileSystem/mod.rs | 8 +- .../Storage/InstallableFileSystems/mod.rs | 6 +- .../Win32/Storage/Packaging/Appx/mod.rs | 14 +- .../Win32/Storage/ProjectedFileSystem/mod.rs | 4 +- .../Windows/Win32/System/Antimalware/mod.rs | 10 +- .../Windows/Win32/System/Com/Marshal/mod.rs | 2 +- .../Win32/System/Com/StructuredStorage/mod.rs | 56 +-- .../Windows/Win32/System/Com/Urlmon/mod.rs | 10 +- .../src/Windows/Win32/System/Com/mod.rs | 40 +- .../src/Windows/Win32/System/Console/mod.rs | 2 +- .../Win32/System/DeploymentServices/mod.rs | 44 +- .../Win32/System/DeveloperLicensing/mod.rs | 4 +- .../Win32/System/ErrorReporting/mod.rs | 10 +- .../Win32/System/HostComputeNetwork/mod.rs | 2 +- .../Win32/System/HostComputeSystem/mod.rs | 16 +- .../Windows/Win32/System/Hypervisor/mod.rs | 14 +- .../Win32/System/MessageQueuing/mod.rs | 10 +- .../src/Windows/Win32/System/Ole/mod.rs | 450 +++++++++--------- .../src/Windows/Win32/System/Recovery/mod.rs | 2 +- .../Win32/System/SecurityCenter/mod.rs | 2 +- .../Win32/System/SubsystemForLinux/mod.rs | 4 +- .../Win32/System/SystemInformation/mod.rs | 4 +- .../src/Windows/Win32/System/Threading/mod.rs | 20 +- .../src/Windows/Win32/System/Variant/mod.rs | 40 +- .../Win32/System/WinRT/Metadata/mod.rs | 4 +- .../src/Windows/Win32/System/WinRT/mod.rs | 14 +- .../Win32/System/WindowsProgramming/mod.rs | 10 +- .../src/Windows/Win32/UI/ColorSystem/mod.rs | 4 +- .../src/Windows/Win32/UI/Controls/mod.rs | 42 +- .../windows/src/Windows/Win32/UI/HiDpi/mod.rs | 2 +- .../Win32/UI/InteractionContext/mod.rs | 18 +- .../Win32/UI/Shell/PropertiesSystem/mod.rs | 32 +- .../windows/src/Windows/Win32/UI/Shell/mod.rs | 64 +-- .../Win32/UI/WindowsAndMessaging/mod.rs | 2 +- .../Windows/Win32/Web/InternetExplorer/mod.rs | 6 +- crates/tests/bindgen/src/core_win.rs | 2 +- crates/tests/bindgen/src/core_win_flat.rs | 2 +- 70 files changed, 717 insertions(+), 717 deletions(-) diff --git a/crates/libs/core/src/imp/com_bindings.rs b/crates/libs/core/src/imp/com_bindings.rs index fc691ecd31..9bac5da8e2 100644 --- a/crates/libs/core/src/imp/com_bindings.rs +++ b/crates/libs/core/src/imp/com_bindings.rs @@ -11,7 +11,7 @@ pub unsafe fn CoCreateGuid() -> windows_core::Result { windows_link::link!("ole32.dll" "system" fn CoCreateGuid(pguid : *mut windows_core::GUID) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - CoCreateGuid(&mut result__).map(|| core::mem::transmute(result__)) + CoCreateGuid(&mut result__).map(|| result__) } } #[inline] diff --git a/crates/libs/windows/src/Windows/Wdk/Storage/FileSystem/mod.rs b/crates/libs/windows/src/Windows/Wdk/Storage/FileSystem/mod.rs index 746ac01ee2..d453b8b44f 100644 --- a/crates/libs/windows/src/Windows/Wdk/Storage/FileSystem/mod.rs +++ b/crates/libs/windows/src/Windows/Wdk/Storage/FileSystem/mod.rs @@ -3657,7 +3657,7 @@ pub unsafe fn VerifySignature(phcontext: *const SecHandle, pmessage: *const SecB windows_link::link!("secur32.dll" "system" fn VerifySignature(phcontext : *const SecHandle, pmessage : *const SecBufferDesc, messageseqno : u32, pfqop : *mut u32) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - VerifySignature(phcontext, pmessage, messageseqno, &mut result__).map(|| core::mem::transmute(result__)) + VerifySignature(phcontext, pmessage, messageseqno, &mut result__).map(|| result__) } } #[cfg(feature = "Win32_Security")] 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 3ea82c4a9a..2dec3a6426 100644 --- a/crates/libs/windows/src/Windows/Win32/Devices/BiometricFramework/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Devices/BiometricFramework/mod.rs @@ -150,7 +150,7 @@ pub unsafe fn WinBioGetCredentialState(identity: WINBIO_IDENTITY, r#type: WINBIO windows_link::link!("winbio.dll" "system" fn WinBioGetCredentialState(identity : WINBIO_IDENTITY, r#type : WINBIO_CREDENTIAL_TYPE, credentialstate : *mut WINBIO_CREDENTIAL_STATE) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - WinBioGetCredentialState(core::mem::transmute(identity), r#type, &mut result__).map(|| core::mem::transmute(result__)) + WinBioGetCredentialState(core::mem::transmute(identity), r#type, &mut result__).map(|| result__) } } #[inline] @@ -168,7 +168,7 @@ pub unsafe fn WinBioGetEnrolledFactors(accountowner: *const WINBIO_IDENTITY) -> windows_link::link!("winbio.dll" "system" fn WinBioGetEnrolledFactors(accountowner : *const WINBIO_IDENTITY, enrolledfactors : *mut u32) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - WinBioGetEnrolledFactors(accountowner, &mut result__).map(|| core::mem::transmute(result__)) + WinBioGetEnrolledFactors(accountowner, &mut result__).map(|| result__) } } #[inline] @@ -231,7 +231,7 @@ pub unsafe fn WinBioOpenSession(factor: u32, pooltype: WINBIO_POOL, flags: u32, windows_link::link!("winbio.dll" "system" fn WinBioOpenSession(factor : u32, pooltype : WINBIO_POOL, flags : u32, unitarray : *const u32, unitcount : usize, databaseid : *const windows_core::GUID, sessionhandle : *mut u32) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - WinBioOpenSession(factor, pooltype, flags, core::mem::transmute(unitarray.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), unitarray.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), databaseid.unwrap_or(core::mem::zeroed()) as _, &mut result__).map(|| core::mem::transmute(result__)) + WinBioOpenSession(factor, pooltype, flags, core::mem::transmute(unitarray.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), unitarray.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), databaseid.unwrap_or(core::mem::zeroed()) as _, &mut result__).map(|| result__) } } #[inline] diff --git a/crates/libs/windows/src/Windows/Win32/Devices/DeviceQuery/mod.rs b/crates/libs/windows/src/Windows/Win32/Devices/DeviceQuery/mod.rs index 4a5a295350..7e87e05e78 100644 --- a/crates/libs/windows/src/Windows/Win32/Devices/DeviceQuery/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Devices/DeviceQuery/mod.rs @@ -9,7 +9,7 @@ pub unsafe fn DevCreateObjectQuery(objecttype: DEV_OBJECT_TYPE, queryflags: u32, windows_link::link!("api-ms-win-devices-query-l1-1-0.dll" "system" fn DevCreateObjectQuery(objecttype : DEV_OBJECT_TYPE, queryflags : u32, crequestedproperties : u32, prequestedproperties : *const super::Properties:: DEVPROPCOMPKEY, cfilterexpressioncount : u32, pfilter : *const DEVPROP_FILTER_EXPRESSION, pcallback : PDEV_QUERY_RESULT_CALLBACK, pcontext : *const core::ffi::c_void, phdevquery : *mut HDEVQUERY) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - DevCreateObjectQuery(objecttype, queryflags, prequestedproperties.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(prequestedproperties.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pfilter.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pfilter.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pcallback, pcontext.unwrap_or(core::mem::zeroed()) as _, &mut result__).map(|| core::mem::transmute(result__)) + DevCreateObjectQuery(objecttype, queryflags, prequestedproperties.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(prequestedproperties.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pfilter.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pfilter.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pcallback, pcontext.unwrap_or(core::mem::zeroed()) as _, &mut result__).map(|| result__) } } #[cfg(feature = "Win32_Devices_Properties")] @@ -31,7 +31,7 @@ pub unsafe fn DevCreateObjectQueryEx(objecttype: DEV_OBJECT_TYPE, queryflags: u3 pcontext.unwrap_or(core::mem::zeroed()) as _, &mut result__, ) - .map(|| core::mem::transmute(result__)) + .map(|| result__) } } #[cfg(feature = "Win32_Devices_Properties")] @@ -43,7 +43,7 @@ where windows_link::link!("api-ms-win-devices-query-l1-1-0.dll" "system" fn DevCreateObjectQueryFromId(objecttype : DEV_OBJECT_TYPE, pszobjectid : windows_core::PCWSTR, queryflags : u32, crequestedproperties : u32, prequestedproperties : *const super::Properties:: DEVPROPCOMPKEY, cfilterexpressioncount : u32, pfilter : *const DEVPROP_FILTER_EXPRESSION, pcallback : PDEV_QUERY_RESULT_CALLBACK, pcontext : *const core::ffi::c_void, phdevquery : *mut HDEVQUERY) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - DevCreateObjectQueryFromId(objecttype, pszobjectid.param().abi(), queryflags, prequestedproperties.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(prequestedproperties.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pfilter.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pfilter.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pcallback, pcontext.unwrap_or(core::mem::zeroed()) as _, &mut result__).map(|| core::mem::transmute(result__)) + DevCreateObjectQueryFromId(objecttype, pszobjectid.param().abi(), queryflags, prequestedproperties.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(prequestedproperties.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pfilter.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pfilter.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pcallback, pcontext.unwrap_or(core::mem::zeroed()) as _, &mut result__).map(|| result__) } } #[cfg(feature = "Win32_Devices_Properties")] @@ -69,7 +69,7 @@ where pcontext.unwrap_or(core::mem::zeroed()) as _, &mut result__, ) - .map(|| core::mem::transmute(result__)) + .map(|| result__) } } #[cfg(feature = "Win32_Devices_Properties")] @@ -81,7 +81,7 @@ where windows_link::link!("api-ms-win-devices-query-l1-1-0.dll" "system" fn DevCreateObjectQueryFromIds(objecttype : DEV_OBJECT_TYPE, pszzobjectids : windows_core::PCWSTR, queryflags : u32, crequestedproperties : u32, prequestedproperties : *const super::Properties:: DEVPROPCOMPKEY, cfilterexpressioncount : u32, pfilter : *const DEVPROP_FILTER_EXPRESSION, pcallback : PDEV_QUERY_RESULT_CALLBACK, pcontext : *const core::ffi::c_void, phdevquery : *mut HDEVQUERY) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - DevCreateObjectQueryFromIds(objecttype, pszzobjectids.param().abi(), queryflags, prequestedproperties.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(prequestedproperties.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pfilter.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pfilter.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pcallback, pcontext.unwrap_or(core::mem::zeroed()) as _, &mut result__).map(|| core::mem::transmute(result__)) + DevCreateObjectQueryFromIds(objecttype, pszzobjectids.param().abi(), queryflags, prequestedproperties.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(prequestedproperties.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pfilter.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pfilter.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pcallback, pcontext.unwrap_or(core::mem::zeroed()) as _, &mut result__).map(|| result__) } } #[cfg(feature = "Win32_Devices_Properties")] @@ -107,7 +107,7 @@ where pcontext.unwrap_or(core::mem::zeroed()) as _, &mut result__, ) - .map(|| core::mem::transmute(result__)) + .map(|| result__) } } #[cfg(feature = "Win32_Devices_Properties")] 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 b27e6330eb..179bd813af 100644 --- a/crates/libs/windows/src/Windows/Win32/Devices/Display/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Devices/Display/mod.rs @@ -437,7 +437,7 @@ where windows_link::link!("dxva2.dll" "system" fn GetNumberOfPhysicalMonitorsFromIDirect3DDevice9(pdirect3ddevice9 : * mut core::ffi::c_void, pdwnumberofphysicalmonitors : *mut u32) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - GetNumberOfPhysicalMonitorsFromIDirect3DDevice9(pdirect3ddevice9.param().abi(), &mut result__).map(|| core::mem::transmute(result__)) + GetNumberOfPhysicalMonitorsFromIDirect3DDevice9(pdirect3ddevice9.param().abi(), &mut result__).map(|| result__) } } #[cfg(feature = "Win32_Graphics_Gdi")] 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 9c012430eb..0826066b5e 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 @@ -13,7 +13,7 @@ where windows_link::link!("cfgmgr32.dll" "system" fn SwDeviceCreate(pszenumeratorname : windows_core::PCWSTR, pszparentdeviceinstance : windows_core::PCWSTR, pcreateinfo : *const SW_DEVICE_CREATE_INFO, cpropertycount : u32, pproperties : *const super::super::Properties:: DEVPROPERTY, pcallback : SW_DEVICE_CREATE_CALLBACK, pcontext : *const core::ffi::c_void, phswdevice : *mut HSWDEVICE) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - SwDeviceCreate(pszenumeratorname.param().abi(), pszparentdeviceinstance.param().abi(), pcreateinfo, pproperties.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pproperties.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pcallback, pcontext.unwrap_or(core::mem::zeroed()) as _, &mut result__).map(|| core::mem::transmute(result__)) + SwDeviceCreate(pszenumeratorname.param().abi(), pszparentdeviceinstance.param().abi(), pcreateinfo, pproperties.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pproperties.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pcallback, pcontext.unwrap_or(core::mem::zeroed()) as _, &mut result__).map(|| result__) } } #[inline] @@ -21,7 +21,7 @@ pub unsafe fn SwDeviceGetLifetime(hswdevice: HSWDEVICE) -> windows_core::Result< windows_link::link!("cfgmgr32.dll" "system" fn SwDeviceGetLifetime(hswdevice : HSWDEVICE, plifetime : *mut SW_DEVICE_LIFETIME) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - SwDeviceGetLifetime(hswdevice, &mut result__).map(|| core::mem::transmute(result__)) + SwDeviceGetLifetime(hswdevice, &mut result__).map(|| result__) } } #[cfg(feature = "Win32_Devices_Properties")] @@ -42,7 +42,7 @@ where windows_link::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__)) + 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(|| result__) } } #[inline] 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 70b971eae5..11980413b5 100644 --- a/crates/libs/windows/src/Windows/Win32/Devices/WebServicesOnDevices/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Devices/WebServicesOnDevices/mod.rs @@ -190,7 +190,7 @@ where windows_link::link!("wsdapi.dll" "system" fn WSDGenerateFault(pszcode : windows_core::PCWSTR, pszsubcode : windows_core::PCWSTR, pszreason : windows_core::PCWSTR, pszdetail : windows_core::PCWSTR, pcontext : * mut core::ffi::c_void, ppfault : *mut *mut WSD_SOAP_FAULT) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - WSDGenerateFault(pszcode.param().abi(), pszsubcode.param().abi(), pszreason.param().abi(), pszdetail.param().abi(), pcontext.param().abi(), &mut result__).map(|| core::mem::transmute(result__)) + WSDGenerateFault(pszcode.param().abi(), pszsubcode.param().abi(), pszreason.param().abi(), pszdetail.param().abi(), pcontext.param().abi(), &mut result__).map(|| result__) } } #[inline] @@ -201,7 +201,7 @@ where windows_link::link!("wsdapi.dll" "system" fn WSDGenerateFaultEx(pcode : *const WSDXML_NAME, psubcode : *const WSDXML_NAME, preasons : *const WSD_LOCALIZED_STRING_LIST, pszdetail : windows_core::PCWSTR, ppfault : *mut *mut WSD_SOAP_FAULT) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - WSDGenerateFaultEx(pcode, psubcode.unwrap_or(core::mem::zeroed()) as _, preasons, pszdetail.param().abi(), &mut result__).map(|| core::mem::transmute(result__)) + WSDGenerateFaultEx(pcode, psubcode.unwrap_or(core::mem::zeroed()) as _, preasons, pszdetail.param().abi(), &mut result__).map(|| result__) } } #[inline] @@ -264,7 +264,7 @@ where windows_link::link!("wsdapi.dll" "system" fn WSDXMLGetNameFromBuiltinNamespace(psznamespace : windows_core::PCWSTR, pszname : windows_core::PCWSTR, ppname : *mut *mut WSDXML_NAME) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - WSDXMLGetNameFromBuiltinNamespace(psznamespace.param().abi(), pszname.param().abi(), &mut result__).map(|| core::mem::transmute(result__)) + WSDXMLGetNameFromBuiltinNamespace(psznamespace.param().abi(), pszname.param().abi(), &mut result__).map(|| result__) } } #[inline] diff --git a/crates/libs/windows/src/Windows/Win32/Gaming/mod.rs b/crates/libs/windows/src/Windows/Win32/Gaming/mod.rs index 4975036d95..467dae1e85 100644 --- a/crates/libs/windows/src/Windows/Win32/Gaming/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Gaming/mod.rs @@ -3,7 +3,7 @@ pub unsafe fn CheckGamingPrivilegeSilently(privilegeid: u32, scope: &windows_cor windows_link::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__)) + CheckGamingPrivilegeSilently(privilegeid, core::mem::transmute_copy(scope), core::mem::transmute_copy(policy), &mut result__).map(|| result__) } } #[inline] @@ -14,7 +14,7 @@ where windows_link::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__)) + CheckGamingPrivilegeSilentlyForUser(user.param().abi(), privilegeid, core::mem::transmute_copy(scope), core::mem::transmute_copy(policy), &mut result__).map(|| result__) } } #[inline] @@ -35,7 +35,7 @@ pub unsafe fn GetExpandedResourceExclusiveCpuCount() -> windows_core::Result windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - GetExpandedResourceExclusiveCpuCount(&mut result__).map(|| core::mem::transmute(result__)) + GetExpandedResourceExclusiveCpuCount(&mut result__).map(|| result__) } } #[inline] @@ -43,7 +43,7 @@ pub unsafe fn GetGamingDeviceModelInformation() -> windows_core::Result windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - GetGamingDeviceModelInformation(&mut result__).map(|| core::mem::transmute(result__)) + GetGamingDeviceModelInformation(&mut result__).map(|| result__) } } #[inline] @@ -51,7 +51,7 @@ pub unsafe fn HasExpandedResources() -> windows_core::Result windows_link::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__)) + HasExpandedResources(&mut result__).map(|| result__) } } #[inline] diff --git a/crates/libs/windows/src/Windows/Win32/Globalization/mod.rs b/crates/libs/windows/src/Windows/Win32/Globalization/mod.rs index 6b36143421..5ad839f719 100644 --- a/crates/libs/windows/src/Windows/Win32/Globalization/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Globalization/mod.rs @@ -322,7 +322,7 @@ where windows_link::link!("bcp47mrm.dll" "system" fn GetDistanceOfClosestLanguageInList(pszlanguage : windows_core::PCWSTR, pszlanguageslist : windows_core::PCWSTR, wchlistdelimiter : u16, pclosestdistance : *mut f64) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - GetDistanceOfClosestLanguageInList(pszlanguage.param().abi(), pszlanguageslist.param().abi(), wchlistdelimiter, &mut result__).map(|| core::mem::transmute(result__)) + GetDistanceOfClosestLanguageInList(pszlanguage.param().abi(), pszlanguageslist.param().abi(), wchlistdelimiter, &mut result__).map(|| result__) } } #[inline] @@ -912,7 +912,7 @@ pub unsafe fn ScriptRecordDigitSubstitution(locale: u32) -> windows_core::Result windows_link::link!("usp10.dll" "system" fn ScriptRecordDigitSubstitution(locale : u32, psds : *mut SCRIPT_DIGITSUBSTITUTE) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - ScriptRecordDigitSubstitution(locale, &mut result__).map(|| core::mem::transmute(result__)) + ScriptRecordDigitSubstitution(locale, &mut result__).map(|| result__) } } #[cfg(feature = "Win32_Graphics_Gdi")] @@ -944,7 +944,7 @@ pub unsafe fn ScriptStringCPtoX(ssa: *const core::ffi::c_void, icp: i32, ftraili windows_link::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__)) + ScriptStringCPtoX(ssa, icp, ftrailing.into(), &mut result__).map(|| result__) } } #[inline] 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 fd67f92e92..3da490853d 100644 --- a/crates/libs/windows/src/Windows/Win32/Graphics/DirectComposition/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Graphics/DirectComposition/mod.rs @@ -56,7 +56,7 @@ pub unsafe fn DCompositionCreateSurfaceHandle(desiredaccess: u32, securityattrib windows_link::link!("dcomp.dll" "system" fn DCompositionCreateSurfaceHandle(desiredaccess : u32, securityattributes : *const super::super::Security:: SECURITY_ATTRIBUTES, surfacehandle : *mut super::super::Foundation:: HANDLE) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - DCompositionCreateSurfaceHandle(desiredaccess, securityattributes.unwrap_or(core::mem::zeroed()) as _, &mut result__).map(|| core::mem::transmute(result__)) + DCompositionCreateSurfaceHandle(desiredaccess, securityattributes.unwrap_or(core::mem::zeroed()) as _, &mut result__).map(|| result__) } } #[inline] @@ -64,7 +64,7 @@ pub unsafe fn DCompositionGetFrameId(frameidtype: COMPOSITION_FRAME_ID_TYPE) -> windows_link::link!("dcomp.dll" "system" fn DCompositionGetFrameId(frameidtype : COMPOSITION_FRAME_ID_TYPE, frameid : *mut u64) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - DCompositionGetFrameId(frameidtype, &mut result__).map(|| core::mem::transmute(result__)) + DCompositionGetFrameId(frameidtype, &mut result__).map(|| result__) } } #[inline] @@ -77,7 +77,7 @@ pub unsafe fn DCompositionGetTargetStatistics(frameid: u64, targetid: *const COM windows_link::link!("dcomp.dll" "system" fn DCompositionGetTargetStatistics(frameid : u64, targetid : *const COMPOSITION_TARGET_ID, targetstats : *mut COMPOSITION_TARGET_STATS) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - DCompositionGetTargetStatistics(frameid, targetid, &mut result__).map(|| core::mem::transmute(result__)) + DCompositionGetTargetStatistics(frameid, targetid, &mut result__).map(|| result__) } } #[inline] 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 a2bf576a6e..caf7769ca5 100644 --- a/crates/libs/windows/src/Windows/Win32/Graphics/Dwm/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Graphics/Dwm/mod.rs @@ -55,7 +55,7 @@ pub unsafe fn DwmGetGraphicsStreamClient(uindex: u32) -> windows_core::Result windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - DwmGetGraphicsStreamClient(uindex, &mut result__).map(|| core::mem::transmute(result__)) + DwmGetGraphicsStreamClient(uindex, &mut result__).map(|| result__) } } #[inline] @@ -73,7 +73,7 @@ pub unsafe fn DwmGetUnmetTabRequirements(appwindow: Option windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - DwmGetUnmetTabRequirements(appwindow.unwrap_or(core::mem::zeroed()) as _, &mut result__).map(|| core::mem::transmute(result__)) + DwmGetUnmetTabRequirements(appwindow.unwrap_or(core::mem::zeroed()) as _, &mut result__).map(|| result__) } } #[inline] @@ -91,7 +91,7 @@ pub unsafe fn DwmIsCompositionEnabled() -> windows_core::Result windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - DwmIsCompositionEnabled(&mut result__).map(|| core::mem::transmute(result__)) + DwmIsCompositionEnabled(&mut result__).map(|| result__) } } #[inline] @@ -104,7 +104,7 @@ pub unsafe fn DwmQueryThumbnailSourceSize(hthumbnail: isize) -> windows_core::Re windows_link::link!("dwmapi.dll" "system" fn DwmQueryThumbnailSourceSize(hthumbnail : isize, psize : *mut super::super::Foundation:: SIZE) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - DwmQueryThumbnailSourceSize(hthumbnail, &mut result__).map(|| core::mem::transmute(result__)) + DwmQueryThumbnailSourceSize(hthumbnail, &mut result__).map(|| result__) } } #[inline] @@ -112,7 +112,7 @@ pub unsafe fn DwmRegisterThumbnail(hwnddestination: super::super::Foundation::HW windows_link::link!("dwmapi.dll" "system" fn DwmRegisterThumbnail(hwnddestination : super::super::Foundation:: HWND, hwndsource : super::super::Foundation:: HWND, phthumbnailid : *mut isize) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - DwmRegisterThumbnail(hwnddestination, hwndsource, &mut result__).map(|| core::mem::transmute(result__)) + DwmRegisterThumbnail(hwnddestination, hwndsource, &mut result__).map(|| result__) } } #[inline] 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 cb4021a3f1..deb129dbc1 100644 --- a/crates/libs/windows/src/Windows/Win32/Graphics/Imaging/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Graphics/Imaging/mod.rs @@ -35,7 +35,7 @@ where windows_link::link!("windowscodecs.dll" "system" fn WICGetMetadataContentSize(guidcontainerformat : *const windows_core::GUID, piwriter : * mut core::ffi::c_void, pcbsize : *mut u64) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - WICGetMetadataContentSize(guidcontainerformat, piwriter.param().abi(), &mut result__).map(|| core::mem::transmute(result__)) + WICGetMetadataContentSize(guidcontainerformat, piwriter.param().abi(), &mut result__).map(|| result__) } } #[inline] @@ -59,7 +59,7 @@ where windows_link::link!("windowscodecs.dll" "system" fn WICMapShortNameToGuid(wzname : windows_core::PCWSTR, pguid : *mut windows_core::GUID) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - WICMapShortNameToGuid(wzname.param().abi(), &mut result__).map(|| core::mem::transmute(result__)) + WICMapShortNameToGuid(wzname.param().abi(), &mut result__).map(|| result__) } } #[cfg(feature = "Win32_System_Com")] @@ -71,7 +71,7 @@ where windows_link::link!("windowscodecs.dll" "system" fn WICMatchMetadataContent(guidcontainerformat : *const windows_core::GUID, pguidvendor : *const windows_core::GUID, pistream : * mut core::ffi::c_void, pguidmetadataformat : *mut windows_core::GUID) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - WICMatchMetadataContent(guidcontainerformat, pguidvendor.unwrap_or(core::mem::zeroed()) as _, pistream.param().abi(), &mut result__).map(|| core::mem::transmute(result__)) + WICMatchMetadataContent(guidcontainerformat, pguidvendor.unwrap_or(core::mem::zeroed()) as _, pistream.param().abi(), &mut result__).map(|| result__) } } #[cfg(feature = "Win32_System_Com")] diff --git a/crates/libs/windows/src/Windows/Win32/Graphics/Printing/PrintTicket/mod.rs b/crates/libs/windows/src/Windows/Win32/Graphics/Printing/PrintTicket/mod.rs index 23250a2679..f90e6bc758 100644 --- a/crates/libs/windows/src/Windows/Win32/Graphics/Printing/PrintTicket/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Graphics/Printing/PrintTicket/mod.rs @@ -71,7 +71,7 @@ where windows_link::link!("prntvpt.dll" "system" fn PTOpenProvider(pszprintername : windows_core::PCWSTR, dwversion : u32, phprovider : *mut HPTPROVIDER) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - PTOpenProvider(pszprintername.param().abi(), dwversion, &mut result__).map(|| core::mem::transmute(result__)) + PTOpenProvider(pszprintername.param().abi(), dwversion, &mut result__).map(|| result__) } } #[inline] @@ -90,7 +90,7 @@ where windows_link::link!("prntvpt.dll" "system" fn PTQuerySchemaVersionSupport(pszprintername : windows_core::PCWSTR, pmaxversion : *mut u32) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - PTQuerySchemaVersionSupport(pszprintername.param().abi(), &mut result__).map(|| core::mem::transmute(result__)) + PTQuerySchemaVersionSupport(pszprintername.param().abi(), &mut result__).map(|| result__) } } #[inline] 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 e6ab8ad3d4..722fef11c8 100644 --- a/crates/libs/windows/src/Windows/Win32/Graphics/Printing/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Graphics/Printing/mod.rs @@ -64,7 +64,7 @@ pub unsafe fn AddPrintDeviceObject(hprinter: PRINTER_HANDLE) -> windows_core::Re windows_link::link!("spoolss.dll" "system" fn AddPrintDeviceObject(hprinter : PRINTER_HANDLE, phdeviceobject : *mut super::super::Foundation:: HANDLE) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - AddPrintDeviceObject(core::mem::transmute(hprinter), &mut result__).map(|| core::mem::transmute(result__)) + AddPrintDeviceObject(core::mem::transmute(hprinter), &mut result__).map(|| result__) } } #[inline] @@ -272,7 +272,7 @@ where windows_link::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__)) + CorePrinterDriverInstalledA(pszserver.param().abi(), pszenvironment.param().abi(), core::mem::transmute(coredriverguid), core::mem::transmute(ftdriverdate), dwldriverversion, &mut result__).map(|| result__) } } #[inline] @@ -284,7 +284,7 @@ where windows_link::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__)) + CorePrinterDriverInstalledW(pszserver.param().abi(), pszenvironment.param().abi(), core::mem::transmute(coredriverguid), core::mem::transmute(ftdriverdate), dwldriverversion, &mut result__).map(|| result__) } } #[inline] @@ -1248,7 +1248,7 @@ where windows_link::link!("winspool.drv" "system" fn RegisterForPrintAsyncNotifications(pszname : windows_core::PCWSTR, pnotificationtype : *const windows_core::GUID, euserfilter : PrintAsyncNotifyUserFilter, econversationstyle : PrintAsyncNotifyConversationStyle, pcallback : * mut core::ffi::c_void, phnotify : *mut super::super::Foundation:: HANDLE) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - RegisterForPrintAsyncNotifications(pszname.param().abi(), pnotificationtype, euserfilter, econversationstyle, pcallback.param().abi(), &mut result__).map(|| core::mem::transmute(result__)) + RegisterForPrintAsyncNotifications(pszname.param().abi(), pnotificationtype, euserfilter, econversationstyle, pcallback.param().abi(), &mut result__).map(|| result__) } } #[inline] 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 f0ce21ea67..d9fcc1f50f 100644 --- a/crates/libs/windows/src/Windows/Win32/Management/MobileDeviceManagementRegistration/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Management/MobileDeviceManagementRegistration/mod.rs @@ -14,7 +14,7 @@ where windows_link::link!("mdmregistration.dll" "system" fn DiscoverManagementService(pszupn : windows_core::PCWSTR, ppmgmtinfo : *mut *mut MANAGEMENT_SERVICE_INFO) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - DiscoverManagementService(pszupn.param().abi(), &mut result__).map(|| core::mem::transmute(result__)) + DiscoverManagementService(pszupn.param().abi(), &mut result__).map(|| result__) } } #[inline] @@ -26,7 +26,7 @@ where windows_link::link!("mdmregistration.dll" "system" fn DiscoverManagementServiceEx(pszupn : windows_core::PCWSTR, pszdiscoveryservicecandidate : windows_core::PCWSTR, ppmgmtinfo : *mut *mut MANAGEMENT_SERVICE_INFO) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - DiscoverManagementServiceEx(pszupn.param().abi(), pszdiscoveryservicecandidate.param().abi(), &mut result__).map(|| core::mem::transmute(result__)) + DiscoverManagementServiceEx(pszupn.param().abi(), pszdiscoveryservicecandidate.param().abi(), &mut result__).map(|| result__) } } #[inline] @@ -57,7 +57,7 @@ pub unsafe fn IsManagementRegistrationAllowed() -> windows_core::Result windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - IsManagementRegistrationAllowed(&mut result__).map(|| core::mem::transmute(result__)) + IsManagementRegistrationAllowed(&mut result__).map(|| result__) } } #[inline] @@ -65,7 +65,7 @@ pub unsafe fn IsMdmUxWithoutAadAllowed() -> windows_core::Result windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - IsMdmUxWithoutAadAllowed(&mut result__).map(|| core::mem::transmute(result__)) + IsMdmUxWithoutAadAllowed(&mut result__).map(|| result__) } } #[inline] 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 66f474c3ab..72ff570b18 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 @@ -63,7 +63,7 @@ pub unsafe fn GetDeviceID(pguidsrc: Option<*const windows_core::GUID>) -> window windows_link::link!("dsound.dll" "system" fn GetDeviceID(pguidsrc : *const windows_core::GUID, pguiddest : *mut windows_core::GUID) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - GetDeviceID(pguidsrc.unwrap_or(core::mem::zeroed()) as _, &mut result__).map(|| core::mem::transmute(result__)) + GetDeviceID(pguidsrc.unwrap_or(core::mem::zeroed()) as _, &mut result__).map(|| result__) } } pub const CLSID_DirectSound: windows_core::GUID = windows_core::GUID::from_u128(0x47d4d946_62e8_11cf_93bc_444553540000); 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 e51875a1b4..e964bcc81b 100644 --- a/crates/libs/windows/src/Windows/Win32/Media/KernelStreaming/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Media/KernelStreaming/mod.rs @@ -8,7 +8,7 @@ pub unsafe fn KsCreateAllocator2(connectionhandle: super::super::Foundation::HAN windows_link::link!("ksuser.dll" "system" fn KsCreateAllocator2(connectionhandle : super::super::Foundation:: HANDLE, allocatorframing : *const KSALLOCATOR_FRAMING, allocatorhandle : *mut super::super::Foundation:: HANDLE) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - KsCreateAllocator2(connectionhandle, allocatorframing, &mut result__).map(|| core::mem::transmute(result__)) + KsCreateAllocator2(connectionhandle, allocatorframing, &mut result__).map(|| result__) } } #[inline] @@ -21,7 +21,7 @@ pub unsafe fn KsCreateClock2(connectionhandle: super::super::Foundation::HANDLE, windows_link::link!("ksuser.dll" "system" fn KsCreateClock2(connectionhandle : super::super::Foundation:: HANDLE, clockcreate : *const KSCLOCK_CREATE, clockhandle : *mut super::super::Foundation:: HANDLE) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - KsCreateClock2(connectionhandle, clockcreate, &mut result__).map(|| core::mem::transmute(result__)) + KsCreateClock2(connectionhandle, clockcreate, &mut result__).map(|| result__) } } #[inline] @@ -34,7 +34,7 @@ pub unsafe fn KsCreatePin2(filterhandle: super::super::Foundation::HANDLE, conne windows_link::link!("ksuser.dll" "system" fn KsCreatePin2(filterhandle : super::super::Foundation:: HANDLE, connect : *const KSPIN_CONNECT, desiredaccess : u32, connectionhandle : *mut super::super::Foundation:: HANDLE) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - KsCreatePin2(filterhandle, connect, desiredaccess, &mut result__).map(|| core::mem::transmute(result__)) + KsCreatePin2(filterhandle, connect, desiredaccess, &mut result__).map(|| result__) } } #[inline] @@ -47,7 +47,7 @@ pub unsafe fn KsCreateTopologyNode2(parenthandle: super::super::Foundation::HAND windows_link::link!("ksuser.dll" "system" fn KsCreateTopologyNode2(parenthandle : super::super::Foundation:: HANDLE, nodecreate : *const KSNODE_CREATE, desiredaccess : u32, nodehandle : *mut super::super::Foundation:: HANDLE) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - KsCreateTopologyNode2(parenthandle, nodecreate, desiredaccess, &mut result__).map(|| core::mem::transmute(result__)) + KsCreateTopologyNode2(parenthandle, nodecreate, desiredaccess, &mut result__).map(|| result__) } } #[cfg(feature = "Win32_Media_MediaFoundation")] @@ -61,7 +61,7 @@ pub unsafe fn KsGetMediaTypeCount(filterhandle: super::super::Foundation::HANDLE windows_link::link!("ksproxy.ax" "system" fn KsGetMediaTypeCount(filterhandle : super::super::Foundation:: HANDLE, pinfactoryid : u32, mediatypecount : *mut u32) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - KsGetMediaTypeCount(filterhandle, pinfactoryid, &mut result__).map(|| core::mem::transmute(result__)) + KsGetMediaTypeCount(filterhandle, pinfactoryid, &mut result__).map(|| result__) } } #[inline] @@ -74,7 +74,7 @@ pub unsafe fn KsOpenDefaultDevice(category: *const windows_core::GUID, access: u windows_link::link!("ksproxy.ax" "system" fn KsOpenDefaultDevice(category : *const windows_core::GUID, access : u32, devicehandle : *mut super::super::Foundation:: HANDLE) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - KsOpenDefaultDevice(category, access, &mut result__).map(|| core::mem::transmute(result__)) + KsOpenDefaultDevice(category, access, &mut result__).map(|| result__) } } #[inline] 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 4d61526c12..407faf7f32 100644 --- a/crates/libs/windows/src/Windows/Win32/Media/MediaFoundation/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Media/MediaFoundation/mod.rs @@ -55,7 +55,7 @@ pub unsafe fn MFAllocateSerialWorkQueue(dwworkqueue: u32) -> windows_core::Resul windows_link::link!("mfplat.dll" "system" fn MFAllocateSerialWorkQueue(dwworkqueue : u32, pdwworkqueue : *mut u32) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - MFAllocateSerialWorkQueue(dwworkqueue, &mut result__).map(|| core::mem::transmute(result__)) + MFAllocateSerialWorkQueue(dwworkqueue, &mut result__).map(|| result__) } } #[inline] @@ -63,7 +63,7 @@ pub unsafe fn MFAllocateWorkQueue() -> windows_core::Result { windows_link::link!("mfplat.dll" "system" fn MFAllocateWorkQueue(pdwworkqueue : *mut u32) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - MFAllocateWorkQueue(&mut result__).map(|| core::mem::transmute(result__)) + MFAllocateWorkQueue(&mut result__).map(|| result__) } } #[inline] @@ -71,7 +71,7 @@ pub unsafe fn MFAllocateWorkQueueEx(workqueuetype: MFASYNC_WORKQUEUE_TYPE) -> wi windows_link::link!("mfplat.dll" "system" fn MFAllocateWorkQueueEx(workqueuetype : MFASYNC_WORKQUEUE_TYPE, pdwworkqueue : *mut u32) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - MFAllocateWorkQueueEx(workqueuetype, &mut result__).map(|| core::mem::transmute(result__)) + MFAllocateWorkQueueEx(workqueuetype, &mut result__).map(|| result__) } } #[inline] @@ -132,7 +132,7 @@ pub unsafe fn MFCalculateImageSize(guidsubtype: *const windows_core::GUID, unwid windows_link::link!("mfplat.dll" "system" fn MFCalculateImageSize(guidsubtype : *const windows_core::GUID, unwidth : u32, unheight : u32, pcbimagesize : *mut u32) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - MFCalculateImageSize(guidsubtype, unwidth, unheight, &mut result__).map(|| core::mem::transmute(result__)) + MFCalculateImageSize(guidsubtype, unwidth, unheight, &mut result__).map(|| result__) } } #[inline] @@ -157,7 +157,7 @@ where windows_link::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__)) + MFCombineSamples(psample.param().abi(), psampletoadd.param().abi(), dwmaxmergeddurationinms, &mut result__).map(|| result__) } } #[inline] @@ -1443,7 +1443,7 @@ where windows_link::link!("mfplat.dll" "system" fn MFEndRegisterWorkQueueWithMMCSS(presult : * mut core::ffi::c_void, pdwtaskid : *mut u32) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - MFEndRegisterWorkQueueWithMMCSS(presult.param().abi(), &mut result__).map(|| core::mem::transmute(result__)) + MFEndRegisterWorkQueueWithMMCSS(presult.param().abi(), &mut result__).map(|| result__) } } #[inline] @@ -1467,7 +1467,7 @@ pub unsafe fn MFFrameRateToAverageTimePerFrame(unnumerator: u32, undenominator: windows_link::link!("mfplat.dll" "system" fn MFFrameRateToAverageTimePerFrame(unnumerator : u32, undenominator : u32, punaveragetimeperframe : *mut u64) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - MFFrameRateToAverageTimePerFrame(unnumerator, undenominator, &mut result__).map(|| core::mem::transmute(result__)) + MFFrameRateToAverageTimePerFrame(unnumerator, undenominator, &mut result__).map(|| result__) } } #[inline] @@ -1486,7 +1486,7 @@ where windows_link::link!("mfplat.dll" "system" fn MFGetAttributesAsBlobSize(pattributes : * mut core::ffi::c_void, pcbbufsize : *mut u32) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - MFGetAttributesAsBlobSize(pattributes.param().abi(), &mut result__).map(|| core::mem::transmute(result__)) + MFGetAttributesAsBlobSize(pattributes.param().abi(), &mut result__).map(|| result__) } } #[inline] @@ -1494,7 +1494,7 @@ pub unsafe fn MFGetContentProtectionSystemCLSID(guidprotectionsystemid: *const w windows_link::link!("mfplat.dll" "system" fn MFGetContentProtectionSystemCLSID(guidprotectionsystemid : *const windows_core::GUID, pclsid : *mut windows_core::GUID) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - MFGetContentProtectionSystemCLSID(guidprotectionsystemid, &mut result__).map(|| core::mem::transmute(result__)) + MFGetContentProtectionSystemCLSID(guidprotectionsystemid, &mut result__).map(|| result__) } } #[inline] @@ -1502,7 +1502,7 @@ pub unsafe fn MFGetLocalId(verifier: &[u8]) -> windows_core::Result windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - MFGetLocalId(core::mem::transmute(verifier.as_ptr()), verifier.len().try_into().unwrap(), &mut result__).map(|| core::mem::transmute(result__)) + MFGetLocalId(core::mem::transmute(verifier.as_ptr()), verifier.len().try_into().unwrap(), &mut result__).map(|| result__) } } #[inline] @@ -1513,7 +1513,7 @@ where windows_link::link!("mfplat.dll" "system" fn MFGetMFTMerit(pmft : * mut core::ffi::c_void, cbverifier : u32, verifier : *const u8, merit : *mut u32) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - MFGetMFTMerit(pmft.param().abi(), verifier.len().try_into().unwrap(), core::mem::transmute(verifier.as_ptr()), &mut result__).map(|| core::mem::transmute(result__)) + MFGetMFTMerit(pmft.param().abi(), verifier.len().try_into().unwrap(), core::mem::transmute(verifier.as_ptr()), &mut result__).map(|| result__) } } #[inline] @@ -1521,7 +1521,7 @@ pub unsafe fn MFGetPlaneSize(format: u32, dwwidth: u32, dwheight: u32) -> window windows_link::link!("evr.dll" "system" fn MFGetPlaneSize(format : u32, dwwidth : u32, dwheight : u32, pdwplanesize : *mut u32) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - MFGetPlaneSize(format, dwwidth, dwheight, &mut result__).map(|| core::mem::transmute(result__)) + MFGetPlaneSize(format, dwwidth, dwheight, &mut result__).map(|| result__) } } #[inline] @@ -1545,7 +1545,7 @@ pub unsafe fn MFGetStrideForBitmapInfoHeader(format: u32, dwwidth: u32) -> windo windows_link::link!("mfplat.dll" "system" fn MFGetStrideForBitmapInfoHeader(format : u32, dwwidth : u32, pstride : *mut i32) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - MFGetStrideForBitmapInfoHeader(format, dwwidth, &mut result__).map(|| core::mem::transmute(result__)) + MFGetStrideForBitmapInfoHeader(format, dwwidth, &mut result__).map(|| result__) } } #[cfg(all(feature = "Win32_System_Com_StructuredStorage", feature = "Win32_System_Variant"))] @@ -1584,7 +1584,7 @@ pub unsafe fn MFGetTimerPeriodicity() -> windows_core::Result { windows_link::link!("mfplat.dll" "system" fn MFGetTimerPeriodicity(periodicity : *mut u32) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - MFGetTimerPeriodicity(&mut result__).map(|| core::mem::transmute(result__)) + MFGetTimerPeriodicity(&mut result__).map(|| result__) } } #[inline] @@ -1613,7 +1613,7 @@ pub unsafe fn MFGetWorkQueueMMCSSPriority(dwworkqueueid: u32) -> windows_core::R windows_link::link!("mfplat.dll" "system" fn MFGetWorkQueueMMCSSPriority(dwworkqueueid : u32, lpriority : *mut i32) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - MFGetWorkQueueMMCSSPriority(dwworkqueueid, &mut result__).map(|| core::mem::transmute(result__)) + MFGetWorkQueueMMCSSPriority(dwworkqueueid, &mut result__).map(|| result__) } } #[inline] @@ -1621,7 +1621,7 @@ pub unsafe fn MFGetWorkQueueMMCSSTaskId(dwworkqueueid: u32) -> windows_core::Res windows_link::link!("mfplat.dll" "system" fn MFGetWorkQueueMMCSSTaskId(dwworkqueueid : u32, pdwtaskid : *mut u32) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - MFGetWorkQueueMMCSSTaskId(dwworkqueueid, &mut result__).map(|| core::mem::transmute(result__)) + MFGetWorkQueueMMCSSTaskId(dwworkqueueid, &mut result__).map(|| result__) } } #[inline] @@ -1737,7 +1737,7 @@ pub unsafe fn MFIsContentProtectionDeviceSupported(protectionsystemid: *const wi windows_link::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__)) + MFIsContentProtectionDeviceSupported(protectionsystemid, &mut result__).map(|| result__) } } #[inline] @@ -1750,7 +1750,7 @@ pub unsafe fn MFIsVirtualCameraTypeSupported(r#type: MFVirtualCameraType) -> win windows_link::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__)) + MFIsVirtualCameraTypeSupported(r#type, &mut result__).map(|| result__) } } #[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 afa5464c3a..31cb7dddcb 100644 --- a/crates/libs/windows/src/Windows/Win32/NetworkManagement/NetManagement/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/NetworkManagement/NetManagement/mod.rs @@ -274,7 +274,7 @@ where windows_link::link!("netapi32.dll" "system" fn NetGetAadJoinInformation(pcsztenantid : windows_core::PCWSTR, ppjoininfo : *mut *mut DSREG_JOIN_INFO) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - NetGetAadJoinInformation(pcsztenantid.param().abi(), &mut result__).map(|| core::mem::transmute(result__)) + NetGetAadJoinInformation(pcsztenantid.param().abi(), &mut result__).map(|| result__) } } #[inline] 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 5b68bb45cb..de77291e05 100644 --- a/crates/libs/windows/src/Windows/Win32/NetworkManagement/NetworkDiagnosticsFramework/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/NetworkManagement/NetworkDiagnosticsFramework/mod.rs @@ -107,7 +107,7 @@ pub unsafe fn NdfGetTraceFile(handle: *const core::ffi::c_void) -> windows_core: windows_link::link!("ndfapi.dll" "system" fn NdfGetTraceFile(handle : *const core::ffi::c_void, tracefilelocation : *mut windows_core::PCWSTR) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - NdfGetTraceFile(handle, &mut result__).map(|| core::mem::transmute(result__)) + NdfGetTraceFile(handle, &mut result__).map(|| result__) } } #[inline] 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 2c2b858f23..be3570d813 100644 --- a/crates/libs/windows/src/Windows/Win32/NetworkManagement/P2P/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/NetworkManagement/P2P/mod.rs @@ -14,7 +14,7 @@ pub unsafe fn DrtCreateDerivedKey(plocalcert: *const super::super::Security::Cry windows_link::link!("drtprov.dll" "system" fn DrtCreateDerivedKey(plocalcert : *const super::super::Security::Cryptography:: CERT_CONTEXT, pkey : *mut DRT_DATA) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - DrtCreateDerivedKey(plocalcert, &mut result__).map(|| core::mem::transmute(result__)) + DrtCreateDerivedKey(plocalcert, &mut result__).map(|| result__) } } #[cfg(feature = "Win32_Security_Cryptography")] @@ -23,7 +23,7 @@ pub unsafe fn DrtCreateDerivedKeySecurityProvider(prootcert: *const super::super windows_link::link!("drtprov.dll" "system" fn DrtCreateDerivedKeySecurityProvider(prootcert : *const super::super::Security::Cryptography:: CERT_CONTEXT, plocalcert : *const super::super::Security::Cryptography:: CERT_CONTEXT, ppsecurityprovider : *mut *mut DRT_SECURITY_PROVIDER) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - DrtCreateDerivedKeySecurityProvider(prootcert, plocalcert.unwrap_or(core::mem::zeroed()) as _, &mut result__).map(|| core::mem::transmute(result__)) + DrtCreateDerivedKeySecurityProvider(prootcert, plocalcert.unwrap_or(core::mem::zeroed()) as _, &mut result__).map(|| result__) } } #[inline] @@ -34,7 +34,7 @@ where windows_link::link!("drtprov.dll" "system" fn DrtCreateDnsBootstrapResolver(port : u16, pwszaddress : windows_core::PCWSTR, ppmodule : *mut *mut DRT_BOOTSTRAP_PROVIDER) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - DrtCreateDnsBootstrapResolver(port, pwszaddress.param().abi(), &mut result__).map(|| core::mem::transmute(result__)) + DrtCreateDnsBootstrapResolver(port, pwszaddress.param().abi(), &mut result__).map(|| result__) } } #[inline] @@ -47,7 +47,7 @@ pub unsafe fn DrtCreateNullSecurityProvider() -> windows_core::Result<*mut DRT_S windows_link::link!("drtprov.dll" "system" fn DrtCreateNullSecurityProvider(ppsecurityprovider : *mut *mut DRT_SECURITY_PROVIDER) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - DrtCreateNullSecurityProvider(&mut result__).map(|| core::mem::transmute(result__)) + DrtCreateNullSecurityProvider(&mut result__).map(|| result__) } } #[inline] @@ -60,7 +60,7 @@ where windows_link::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__)) + DrtCreatePnrpBootstrapResolver(fpublish.into(), pwzpeername.param().abi(), pwzcloudname.param().abi(), pwzpublishingidentity.param().abi(), &mut result__).map(|| result__) } } #[inline] @@ -104,7 +104,7 @@ pub unsafe fn DrtGetEventDataSize(hdrt: *const core::ffi::c_void) -> windows_cor windows_link::link!("drt.dll" "system" fn DrtGetEventDataSize(hdrt : *const core::ffi::c_void, puleventdatalen : *mut u32) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - DrtGetEventDataSize(hdrt, &mut result__).map(|| core::mem::transmute(result__)) + DrtGetEventDataSize(hdrt, &mut result__).map(|| result__) } } #[inline] @@ -117,7 +117,7 @@ pub unsafe fn DrtGetInstanceNameSize(hdrt: *const core::ffi::c_void) -> windows_ windows_link::link!("drt.dll" "system" fn DrtGetInstanceNameSize(hdrt : *const core::ffi::c_void, pulcbinstancenamesize : *mut u32) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - DrtGetInstanceNameSize(hdrt, &mut result__).map(|| core::mem::transmute(result__)) + DrtGetInstanceNameSize(hdrt, &mut result__).map(|| result__) } } #[cfg(feature = "Win32_Networking_WinSock")] @@ -131,7 +131,7 @@ pub unsafe fn DrtGetSearchPathSize(hsearchcontext: *const core::ffi::c_void) -> windows_link::link!("drt.dll" "system" fn DrtGetSearchPathSize(hsearchcontext : *const core::ffi::c_void, pulsearchpathsize : *mut u32) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - DrtGetSearchPathSize(hsearchcontext, &mut result__).map(|| core::mem::transmute(result__)) + DrtGetSearchPathSize(hsearchcontext, &mut result__).map(|| result__) } } #[inline] @@ -144,7 +144,7 @@ pub unsafe fn DrtGetSearchResultSize(hsearchcontext: *const core::ffi::c_void) - windows_link::link!("drt.dll" "system" fn DrtGetSearchResultSize(hsearchcontext : *const core::ffi::c_void, pulsearchresultsize : *mut u32) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - DrtGetSearchResultSize(hsearchcontext, &mut result__).map(|| core::mem::transmute(result__)) + DrtGetSearchResultSize(hsearchcontext, &mut result__).map(|| result__) } } #[inline] @@ -261,7 +261,7 @@ where windows_link::link!("p2p.dll" "system" fn PeerCollabExportContact(pwzpeername : windows_core::PCWSTR, ppwzcontactdata : *mut windows_core::PWSTR) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - PeerCollabExportContact(pwzpeername.param().abi(), &mut result__).map(|| core::mem::transmute(result__)) + PeerCollabExportContact(pwzpeername.param().abi(), &mut result__).map(|| result__) } } #[cfg(feature = "Win32_Networking_WinSock")] @@ -270,7 +270,7 @@ pub unsafe fn PeerCollabGetAppLaunchInfo() -> windows_core::Result<*mut PEER_APP windows_link::link!("p2p.dll" "system" fn PeerCollabGetAppLaunchInfo(pplaunchinfo : *mut *mut PEER_APP_LAUNCH_INFO) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - PeerCollabGetAppLaunchInfo(&mut result__).map(|| core::mem::transmute(result__)) + PeerCollabGetAppLaunchInfo(&mut result__).map(|| result__) } } #[inline] @@ -278,7 +278,7 @@ pub unsafe fn PeerCollabGetApplicationRegistrationInfo(papplicationid: *const wi windows_link::link!("p2p.dll" "system" fn PeerCollabGetApplicationRegistrationInfo(papplicationid : *const windows_core::GUID, registrationtype : PEER_APPLICATION_REGISTRATION_TYPE, ppapplication : *mut *mut PEER_APPLICATION_REGISTRATION_INFO) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - PeerCollabGetApplicationRegistrationInfo(papplicationid, registrationtype, &mut result__).map(|| core::mem::transmute(result__)) + PeerCollabGetApplicationRegistrationInfo(papplicationid, registrationtype, &mut result__).map(|| result__) } } #[inline] @@ -289,7 +289,7 @@ where windows_link::link!("p2p.dll" "system" fn PeerCollabGetContact(pwzpeername : windows_core::PCWSTR, ppcontact : *mut *mut PEER_CONTACT) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - PeerCollabGetContact(pwzpeername.param().abi(), &mut result__).map(|| core::mem::transmute(result__)) + PeerCollabGetContact(pwzpeername.param().abi(), &mut result__).map(|| result__) } } #[inline] @@ -297,7 +297,7 @@ pub unsafe fn PeerCollabGetEndpointName() -> windows_core::Result windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - PeerCollabGetEndpointName(&mut result__).map(|| core::mem::transmute(result__)) + PeerCollabGetEndpointName(&mut result__).map(|| result__) } } #[cfg(feature = "Win32_Networking_WinSock")] @@ -306,7 +306,7 @@ pub unsafe fn PeerCollabGetEventData(hpeerevent: *const core::ffi::c_void) -> wi windows_link::link!("p2p.dll" "system" fn PeerCollabGetEventData(hpeerevent : *const core::ffi::c_void, ppeventdata : *mut *mut PEER_COLLAB_EVENT_DATA) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - PeerCollabGetEventData(hpeerevent, &mut result__).map(|| core::mem::transmute(result__)) + PeerCollabGetEventData(hpeerevent, &mut result__).map(|| result__) } } #[inline] @@ -314,7 +314,7 @@ pub unsafe fn PeerCollabGetInvitationResponse(hinvitation: super::super::Foundat windows_link::link!("p2p.dll" "system" fn PeerCollabGetInvitationResponse(hinvitation : super::super::Foundation:: HANDLE, ppinvitationresponse : *mut *mut PEER_INVITATION_RESPONSE) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - PeerCollabGetInvitationResponse(hinvitation, &mut result__).map(|| core::mem::transmute(result__)) + PeerCollabGetInvitationResponse(hinvitation, &mut result__).map(|| result__) } } #[cfg(feature = "Win32_Networking_WinSock")] @@ -323,7 +323,7 @@ pub unsafe fn PeerCollabGetPresenceInfo(pcendpoint: Option<*const PEER_ENDPOINT> windows_link::link!("p2p.dll" "system" fn PeerCollabGetPresenceInfo(pcendpoint : *const PEER_ENDPOINT, pppresenceinfo : *mut *mut PEER_PRESENCE_INFO) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - PeerCollabGetPresenceInfo(pcendpoint.unwrap_or(core::mem::zeroed()) as _, &mut result__).map(|| core::mem::transmute(result__)) + PeerCollabGetPresenceInfo(pcendpoint.unwrap_or(core::mem::zeroed()) as _, &mut result__).map(|| result__) } } #[inline] @@ -331,7 +331,7 @@ pub unsafe fn PeerCollabGetSigninOptions() -> windows_core::Result { windows_link::link!("p2p.dll" "system" fn PeerCollabGetSigninOptions(pdwsigninoptions : *mut u32) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - PeerCollabGetSigninOptions(&mut result__).map(|| core::mem::transmute(result__)) + PeerCollabGetSigninOptions(&mut result__).map(|| result__) } } #[cfg(feature = "Win32_Networking_WinSock")] @@ -340,7 +340,7 @@ pub unsafe fn PeerCollabInviteContact(pccontact: Option<*const PEER_CONTACT>, pc windows_link::link!("p2p.dll" "system" fn PeerCollabInviteContact(pccontact : *const PEER_CONTACT, pcendpoint : *const PEER_ENDPOINT, pcinvitation : *const PEER_INVITATION, ppresponse : *mut *mut PEER_INVITATION_RESPONSE) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - PeerCollabInviteContact(pccontact.unwrap_or(core::mem::zeroed()) as _, pcendpoint, pcinvitation, &mut result__).map(|| core::mem::transmute(result__)) + PeerCollabInviteContact(pccontact.unwrap_or(core::mem::zeroed()) as _, pcendpoint, pcinvitation, &mut result__).map(|| result__) } } #[cfg(feature = "Win32_Networking_WinSock")] @@ -349,7 +349,7 @@ pub unsafe fn PeerCollabInviteEndpoint(pcendpoint: *const PEER_ENDPOINT, pcinvit windows_link::link!("p2p.dll" "system" fn PeerCollabInviteEndpoint(pcendpoint : *const PEER_ENDPOINT, pcinvitation : *const PEER_INVITATION, ppresponse : *mut *mut PEER_INVITATION_RESPONSE) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - PeerCollabInviteEndpoint(pcendpoint, pcinvitation, &mut result__).map(|| core::mem::transmute(result__)) + PeerCollabInviteEndpoint(pcendpoint, pcinvitation, &mut result__).map(|| result__) } } #[inline] @@ -360,7 +360,7 @@ where windows_link::link!("p2p.dll" "system" fn PeerCollabParseContact(pwzcontactdata : windows_core::PCWSTR, ppcontact : *mut *mut PEER_CONTACT) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - PeerCollabParseContact(pwzcontactdata.param().abi(), &mut result__).map(|| core::mem::transmute(result__)) + PeerCollabParseContact(pwzcontactdata.param().abi(), &mut result__).map(|| result__) } } #[cfg(feature = "Win32_Networking_WinSock")] @@ -369,7 +369,7 @@ pub unsafe fn PeerCollabQueryContactData(pcendpoint: Option<*const PEER_ENDPOINT windows_link::link!("p2p.dll" "system" fn PeerCollabQueryContactData(pcendpoint : *const PEER_ENDPOINT, ppwzcontactdata : *mut windows_core::PWSTR) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - PeerCollabQueryContactData(pcendpoint.unwrap_or(core::mem::zeroed()) as _, &mut result__).map(|| core::mem::transmute(result__)) + PeerCollabQueryContactData(pcendpoint.unwrap_or(core::mem::zeroed()) as _, &mut result__).map(|| result__) } } #[cfg(feature = "Win32_Networking_WinSock")] @@ -462,7 +462,7 @@ where windows_link::link!("p2p.dll" "system" fn PeerCreatePeerName(pwzidentity : windows_core::PCWSTR, pwzclassifier : windows_core::PCWSTR, ppwzpeername : *mut windows_core::PWSTR) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - PeerCreatePeerName(pwzidentity.param().abi(), pwzclassifier.param().abi(), &mut result__).map(|| core::mem::transmute(result__)) + PeerCreatePeerName(pwzidentity.param().abi(), pwzclassifier.param().abi(), &mut result__).map(|| result__) } } #[cfg(feature = "Win32_System_IO")] @@ -647,7 +647,7 @@ pub unsafe fn PeerGetItemCount(hpeerenum: *const core::ffi::c_void) -> windows_c windows_link::link!("p2p.dll" "system" fn PeerGetItemCount(hpeerenum : *const core::ffi::c_void, pcount : *mut u32) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - PeerGetItemCount(hpeerenum, &mut result__).map(|| core::mem::transmute(result__)) + PeerGetItemCount(hpeerenum, &mut result__).map(|| result__) } } #[inline] @@ -660,7 +660,7 @@ pub unsafe fn PeerGraphAddRecord(hgraph: *const core::ffi::c_void, precord: *con windows_link::link!("p2pgraph.dll" "system" fn PeerGraphAddRecord(hgraph : *const core::ffi::c_void, precord : *const PEER_RECORD, precordid : *mut windows_core::GUID) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - PeerGraphAddRecord(hgraph, precord, &mut result__).map(|| core::mem::transmute(result__)) + PeerGraphAddRecord(hgraph, precord, &mut result__).map(|| result__) } } #[inline] @@ -682,7 +682,7 @@ where windows_link::link!("p2pgraph.dll" "system" fn PeerGraphConnect(hgraph : *const core::ffi::c_void, pwzpeerid : windows_core::PCWSTR, paddress : *const PEER_ADDRESS, pullconnectionid : *mut u64) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - PeerGraphConnect(hgraph, pwzpeerid.param().abi(), paddress, &mut result__).map(|| core::mem::transmute(result__)) + PeerGraphConnect(hgraph, pwzpeerid.param().abi(), paddress, &mut result__).map(|| result__) } } #[inline] @@ -752,7 +752,7 @@ pub unsafe fn PeerGraphGetEventData(hpeerevent: *const core::ffi::c_void) -> win windows_link::link!("p2pgraph.dll" "system" fn PeerGraphGetEventData(hpeerevent : *const core::ffi::c_void, ppeventdata : *mut *mut PEER_GRAPH_EVENT_DATA) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - PeerGraphGetEventData(hpeerevent, &mut result__).map(|| core::mem::transmute(result__)) + PeerGraphGetEventData(hpeerevent, &mut result__).map(|| result__) } } #[inline] @@ -760,7 +760,7 @@ pub unsafe fn PeerGraphGetItemCount(hpeerenum: *const core::ffi::c_void) -> wind windows_link::link!("p2pgraph.dll" "system" fn PeerGraphGetItemCount(hpeerenum : *const core::ffi::c_void, pcount : *mut u32) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - PeerGraphGetItemCount(hpeerenum, &mut result__).map(|| core::mem::transmute(result__)) + PeerGraphGetItemCount(hpeerenum, &mut result__).map(|| result__) } } #[inline] @@ -774,7 +774,7 @@ pub unsafe fn PeerGraphGetNodeInfo(hgraph: *const core::ffi::c_void, ullnodeid: windows_link::link!("p2pgraph.dll" "system" fn PeerGraphGetNodeInfo(hgraph : *const core::ffi::c_void, ullnodeid : u64, ppnodeinfo : *mut *mut PEER_NODE_INFO) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - PeerGraphGetNodeInfo(hgraph, ullnodeid, &mut result__).map(|| core::mem::transmute(result__)) + PeerGraphGetNodeInfo(hgraph, ullnodeid, &mut result__).map(|| result__) } } #[inline] @@ -782,7 +782,7 @@ pub unsafe fn PeerGraphGetProperties(hgraph: *const core::ffi::c_void) -> window windows_link::link!("p2pgraph.dll" "system" fn PeerGraphGetProperties(hgraph : *const core::ffi::c_void, ppgraphproperties : *mut *mut PEER_GRAPH_PROPERTIES) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - PeerGraphGetProperties(hgraph, &mut result__).map(|| core::mem::transmute(result__)) + PeerGraphGetProperties(hgraph, &mut result__).map(|| result__) } } #[inline] @@ -790,7 +790,7 @@ pub unsafe fn PeerGraphGetRecord(hgraph: *const core::ffi::c_void, precordid: *c windows_link::link!("p2pgraph.dll" "system" fn PeerGraphGetRecord(hgraph : *const core::ffi::c_void, precordid : *const windows_core::GUID, pprecord : *mut *mut PEER_RECORD) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - PeerGraphGetRecord(hgraph, precordid, &mut result__).map(|| core::mem::transmute(result__)) + PeerGraphGetRecord(hgraph, precordid, &mut result__).map(|| result__) } } #[inline] @@ -798,7 +798,7 @@ pub unsafe fn PeerGraphGetStatus(hgraph: *const core::ffi::c_void) -> windows_co windows_link::link!("p2pgraph.dll" "system" fn PeerGraphGetStatus(hgraph : *const core::ffi::c_void, pdwstatus : *mut u32) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - PeerGraphGetStatus(hgraph, &mut result__).map(|| core::mem::transmute(result__)) + PeerGraphGetStatus(hgraph, &mut result__).map(|| result__) } } #[inline] @@ -833,7 +833,7 @@ where windows_link::link!("p2pgraph.dll" "system" fn PeerGraphOpenDirectConnection(hgraph : *const core::ffi::c_void, pwzpeerid : windows_core::PCWSTR, paddress : *const PEER_ADDRESS, pullconnectionid : *mut u64) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - PeerGraphOpenDirectConnection(hgraph, pwzpeerid.param().abi(), paddress, &mut result__).map(|| core::mem::transmute(result__)) + PeerGraphOpenDirectConnection(hgraph, pwzpeerid.param().abi(), paddress, &mut result__).map(|| result__) } } #[inline] @@ -841,7 +841,7 @@ pub unsafe fn PeerGraphPeerTimeToUniversalTime(hgraph: *const core::ffi::c_void, windows_link::link!("p2pgraph.dll" "system" fn PeerGraphPeerTimeToUniversalTime(hgraph : *const core::ffi::c_void, pftpeertime : *const super::super::Foundation:: FILETIME, pftuniversaltime : *mut super::super::Foundation:: FILETIME) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - PeerGraphPeerTimeToUniversalTime(hgraph, pftpeertime, &mut result__).map(|| core::mem::transmute(result__)) + PeerGraphPeerTimeToUniversalTime(hgraph, pftpeertime, &mut result__).map(|| result__) } } #[inline] @@ -890,7 +890,7 @@ pub unsafe fn PeerGraphStartup(wversionrequested: u16) -> windows_core::Result

windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - PeerGraphStartup(wversionrequested, &mut result__).map(|| core::mem::transmute(result__)) + PeerGraphStartup(wversionrequested, &mut result__).map(|| result__) } } #[inline] @@ -898,7 +898,7 @@ pub unsafe fn PeerGraphUniversalTimeToPeerTime(hgraph: *const core::ffi::c_void, windows_link::link!("p2pgraph.dll" "system" fn PeerGraphUniversalTimeToPeerTime(hgraph : *const core::ffi::c_void, pftuniversaltime : *const super::super::Foundation:: FILETIME, pftpeertime : *mut super::super::Foundation:: FILETIME) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - PeerGraphUniversalTimeToPeerTime(hgraph, pftuniversaltime, &mut result__).map(|| core::mem::transmute(result__)) + PeerGraphUniversalTimeToPeerTime(hgraph, pftuniversaltime, &mut result__).map(|| result__) } } #[inline] @@ -921,7 +921,7 @@ pub unsafe fn PeerGroupAddRecord(hgroup: *const core::ffi::c_void, precord: *con windows_link::link!("p2p.dll" "system" fn PeerGroupAddRecord(hgroup : *const core::ffi::c_void, precord : *const PEER_RECORD, precordid : *mut windows_core::GUID) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - PeerGroupAddRecord(hgroup, precord, &mut result__).map(|| core::mem::transmute(result__)) + PeerGroupAddRecord(hgroup, precord, &mut result__).map(|| result__) } } #[inline] @@ -958,7 +958,7 @@ where windows_link::link!("p2p.dll" "system" fn PeerGroupCreateInvitation(hgroup : *const core::ffi::c_void, pwzidentityinfo : windows_core::PCWSTR, pftexpiration : *const super::super::Foundation:: FILETIME, croles : u32, proles : *const windows_core::GUID, ppwzinvitation : *mut windows_core::PWSTR) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - PeerGroupCreateInvitation(hgroup, pwzidentityinfo.param().abi(), pftexpiration.unwrap_or(core::mem::zeroed()) as _, proles.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(proles.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), &mut result__).map(|| core::mem::transmute(result__)) + PeerGroupCreateInvitation(hgroup, pwzidentityinfo.param().abi(), pftexpiration.unwrap_or(core::mem::zeroed()) as _, proles.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(proles.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), &mut result__).map(|| result__) } } #[inline] @@ -966,7 +966,7 @@ pub unsafe fn PeerGroupCreatePasswordInvitation(hgroup: *const core::ffi::c_void windows_link::link!("p2p.dll" "system" fn PeerGroupCreatePasswordInvitation(hgroup : *const core::ffi::c_void, ppwzinvitation : *mut windows_core::PWSTR) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - PeerGroupCreatePasswordInvitation(hgroup, &mut result__).map(|| core::mem::transmute(result__)) + PeerGroupCreatePasswordInvitation(hgroup, &mut result__).map(|| result__) } } #[inline] @@ -1009,7 +1009,7 @@ where windows_link::link!("p2p.dll" "system" fn PeerGroupExportConfig(hgroup : *const core::ffi::c_void, pwzpassword : windows_core::PCWSTR, ppwzxml : *mut windows_core::PWSTR) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - PeerGroupExportConfig(hgroup, pwzpassword.param().abi(), &mut result__).map(|| core::mem::transmute(result__)) + PeerGroupExportConfig(hgroup, pwzpassword.param().abi(), &mut result__).map(|| result__) } } #[inline] @@ -1025,7 +1025,7 @@ pub unsafe fn PeerGroupGetEventData(hpeerevent: *const core::ffi::c_void) -> win windows_link::link!("p2p.dll" "system" fn PeerGroupGetEventData(hpeerevent : *const core::ffi::c_void, ppeventdata : *mut *mut PEER_GROUP_EVENT_DATA) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - PeerGroupGetEventData(hpeerevent, &mut result__).map(|| core::mem::transmute(result__)) + PeerGroupGetEventData(hpeerevent, &mut result__).map(|| result__) } } #[inline] @@ -1033,7 +1033,7 @@ pub unsafe fn PeerGroupGetProperties(hgroup: *const core::ffi::c_void) -> window windows_link::link!("p2p.dll" "system" fn PeerGroupGetProperties(hgroup : *const core::ffi::c_void, ppproperties : *mut *mut PEER_GROUP_PROPERTIES) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - PeerGroupGetProperties(hgroup, &mut result__).map(|| core::mem::transmute(result__)) + PeerGroupGetProperties(hgroup, &mut result__).map(|| result__) } } #[inline] @@ -1041,7 +1041,7 @@ pub unsafe fn PeerGroupGetRecord(hgroup: *const core::ffi::c_void, precordid: *c windows_link::link!("p2p.dll" "system" fn PeerGroupGetRecord(hgroup : *const core::ffi::c_void, precordid : *const windows_core::GUID, pprecord : *mut *mut PEER_RECORD) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - PeerGroupGetRecord(hgroup, precordid, &mut result__).map(|| core::mem::transmute(result__)) + PeerGroupGetRecord(hgroup, precordid, &mut result__).map(|| result__) } } #[inline] @@ -1049,7 +1049,7 @@ pub unsafe fn PeerGroupGetStatus(hgroup: *const core::ffi::c_void) -> windows_co windows_link::link!("p2p.dll" "system" fn PeerGroupGetStatus(hgroup : *const core::ffi::c_void, pdwstatus : *mut u32) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - PeerGroupGetStatus(hgroup, &mut result__).map(|| core::mem::transmute(result__)) + PeerGroupGetStatus(hgroup, &mut result__).map(|| result__) } } #[inline] @@ -1107,7 +1107,7 @@ where windows_link::link!("p2p.dll" "system" fn PeerGroupOpenDirectConnection(hgroup : *const core::ffi::c_void, pwzidentity : windows_core::PCWSTR, paddress : *const PEER_ADDRESS, pullconnectionid : *mut u64) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - PeerGroupOpenDirectConnection(hgroup, pwzidentity.param().abi(), paddress, &mut result__).map(|| core::mem::transmute(result__)) + PeerGroupOpenDirectConnection(hgroup, pwzidentity.param().abi(), paddress, &mut result__).map(|| result__) } } #[cfg(feature = "Win32_Security_Cryptography")] @@ -1119,7 +1119,7 @@ where windows_link::link!("p2p.dll" "system" fn PeerGroupParseInvitation(pwzinvitation : windows_core::PCWSTR, ppinvitationinfo : *mut *mut PEER_INVITATION_INFO) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - PeerGroupParseInvitation(pwzinvitation.param().abi(), &mut result__).map(|| core::mem::transmute(result__)) + PeerGroupParseInvitation(pwzinvitation.param().abi(), &mut result__).map(|| result__) } } #[inline] @@ -1138,7 +1138,7 @@ pub unsafe fn PeerGroupPeerTimeToUniversalTime(hgroup: *const core::ffi::c_void, windows_link::link!("p2p.dll" "system" fn PeerGroupPeerTimeToUniversalTime(hgroup : *const core::ffi::c_void, pftpeertime : *const super::super::Foundation:: FILETIME, pftuniversaltime : *mut super::super::Foundation:: FILETIME) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - PeerGroupPeerTimeToUniversalTime(hgroup, pftpeertime, &mut result__).map(|| core::mem::transmute(result__)) + PeerGroupPeerTimeToUniversalTime(hgroup, pftpeertime, &mut result__).map(|| result__) } } #[inline] @@ -1179,7 +1179,7 @@ pub unsafe fn PeerGroupStartup(wversionrequested: u16) -> windows_core::Result

windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - PeerGroupStartup(wversionrequested, &mut result__).map(|| core::mem::transmute(result__)) + PeerGroupStartup(wversionrequested, &mut result__).map(|| result__) } } #[inline] @@ -1187,7 +1187,7 @@ pub unsafe fn PeerGroupUniversalTimeToPeerTime(hgroup: *const core::ffi::c_void, windows_link::link!("p2p.dll" "system" fn PeerGroupUniversalTimeToPeerTime(hgroup : *const core::ffi::c_void, pftuniversaltime : *const super::super::Foundation:: FILETIME, pftpeertime : *mut super::super::Foundation:: FILETIME) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - PeerGroupUniversalTimeToPeerTime(hgroup, pftuniversaltime, &mut result__).map(|| core::mem::transmute(result__)) + PeerGroupUniversalTimeToPeerTime(hgroup, pftuniversaltime, &mut result__).map(|| result__) } } #[inline] @@ -1208,7 +1208,7 @@ where windows_link::link!("p2p.dll" "system" fn PeerHostNameToPeerName(pwzhostname : windows_core::PCWSTR, ppwzpeername : *mut windows_core::PWSTR) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - PeerHostNameToPeerName(pwzhostname.param().abi(), &mut result__).map(|| core::mem::transmute(result__)) + PeerHostNameToPeerName(pwzhostname.param().abi(), &mut result__).map(|| result__) } } #[inline] @@ -1220,7 +1220,7 @@ where windows_link::link!("p2p.dll" "system" fn PeerIdentityCreate(pwzclassifier : windows_core::PCWSTR, pwzfriendlyname : windows_core::PCWSTR, hcryptprov : usize, ppwzidentity : *mut windows_core::PWSTR) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - PeerIdentityCreate(pwzclassifier.param().abi(), pwzfriendlyname.param().abi(), hcryptprov.unwrap_or(core::mem::zeroed()) as _, &mut result__).map(|| core::mem::transmute(result__)) + PeerIdentityCreate(pwzclassifier.param().abi(), pwzfriendlyname.param().abi(), hcryptprov.unwrap_or(core::mem::zeroed()) as _, &mut result__).map(|| result__) } } #[inline] @@ -1240,7 +1240,7 @@ where windows_link::link!("p2p.dll" "system" fn PeerIdentityExport(pwzidentity : windows_core::PCWSTR, pwzpassword : windows_core::PCWSTR, ppwzexportxml : *mut windows_core::PWSTR) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - PeerIdentityExport(pwzidentity.param().abi(), pwzpassword.param().abi(), &mut result__).map(|| core::mem::transmute(result__)) + PeerIdentityExport(pwzidentity.param().abi(), pwzpassword.param().abi(), &mut result__).map(|| result__) } } #[inline] @@ -1251,7 +1251,7 @@ where windows_link::link!("p2p.dll" "system" fn PeerIdentityGetCryptKey(pwzidentity : windows_core::PCWSTR, phcryptprov : *mut usize) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - PeerIdentityGetCryptKey(pwzidentity.param().abi(), &mut result__).map(|| core::mem::transmute(result__)) + PeerIdentityGetCryptKey(pwzidentity.param().abi(), &mut result__).map(|| result__) } } #[inline] @@ -1259,7 +1259,7 @@ pub unsafe fn PeerIdentityGetDefault() -> windows_core::Result windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - PeerIdentityGetDefault(&mut result__).map(|| core::mem::transmute(result__)) + PeerIdentityGetDefault(&mut result__).map(|| result__) } } #[inline] @@ -1270,7 +1270,7 @@ where windows_link::link!("p2p.dll" "system" fn PeerIdentityGetFriendlyName(pwzidentity : windows_core::PCWSTR, ppwzfriendlyname : *mut windows_core::PWSTR) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - PeerIdentityGetFriendlyName(pwzidentity.param().abi(), &mut result__).map(|| core::mem::transmute(result__)) + PeerIdentityGetFriendlyName(pwzidentity.param().abi(), &mut result__).map(|| result__) } } #[inline] @@ -1281,7 +1281,7 @@ where windows_link::link!("p2p.dll" "system" fn PeerIdentityGetXML(pwzidentity : windows_core::PCWSTR, ppwzidentityxml : *mut windows_core::PWSTR) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - PeerIdentityGetXML(pwzidentity.param().abi(), &mut result__).map(|| core::mem::transmute(result__)) + PeerIdentityGetXML(pwzidentity.param().abi(), &mut result__).map(|| result__) } } #[inline] @@ -1293,7 +1293,7 @@ where windows_link::link!("p2p.dll" "system" fn PeerIdentityImport(pwzimportxml : windows_core::PCWSTR, pwzpassword : windows_core::PCWSTR, ppwzidentity : *mut windows_core::PWSTR) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - PeerIdentityImport(pwzimportxml.param().abi(), pwzpassword.param().abi(), &mut result__).map(|| core::mem::transmute(result__)) + PeerIdentityImport(pwzimportxml.param().abi(), pwzpassword.param().abi(), &mut result__).map(|| result__) } } #[inline] @@ -1313,7 +1313,7 @@ where windows_link::link!("p2p.dll" "system" fn PeerNameToPeerHostName(pwzpeername : windows_core::PCWSTR, ppwzhostname : *mut windows_core::PWSTR) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - PeerNameToPeerHostName(pwzpeername.param().abi(), &mut result__).map(|| core::mem::transmute(result__)) + PeerNameToPeerHostName(pwzpeername.param().abi(), &mut result__).map(|| result__) } } #[inline] @@ -1332,7 +1332,7 @@ pub unsafe fn PeerPnrpGetEndpoint(hresolve: *const core::ffi::c_void) -> windows windows_link::link!("p2p.dll" "system" fn PeerPnrpGetEndpoint(hresolve : *const core::ffi::c_void, ppendpoint : *mut *mut PEER_PNRP_ENDPOINT_INFO) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - PeerPnrpGetEndpoint(hresolve, &mut result__).map(|| core::mem::transmute(result__)) + PeerPnrpGetEndpoint(hresolve, &mut result__).map(|| result__) } } #[cfg(feature = "Win32_Networking_WinSock")] 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 68880a48b8..1adc1aa32a 100644 --- a/crates/libs/windows/src/Windows/Win32/NetworkManagement/WindowsConnectionManager/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/NetworkManagement/WindowsConnectionManager/mod.rs @@ -12,7 +12,7 @@ where windows_link::link!("ondemandconnroutehelper.dll" "system" fn GetInterfaceContextTableForHostName(hostname : windows_core::PCWSTR, proxyname : windows_core::PCWSTR, flags : u32, connectionprofilefilterrawdata : *const u8, connectionprofilefilterrawdatasize : u32, interfacecontexttable : *mut *mut NET_INTERFACE_CONTEXT_TABLE) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - GetInterfaceContextTableForHostName(hostname.param().abi(), proxyname.param().abi(), flags, core::mem::transmute(connectionprofilefilterrawdata.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), connectionprofilefilterrawdata.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), &mut result__).map(|| core::mem::transmute(result__)) + GetInterfaceContextTableForHostName(hostname.param().abi(), proxyname.param().abi(), flags, core::mem::transmute(connectionprofilefilterrawdata.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), connectionprofilefilterrawdata.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), &mut result__).map(|| result__) } } #[inline] @@ -23,7 +23,7 @@ where windows_link::link!("ondemandconnroutehelper.dll" "system" fn OnDemandGetRoutingHint(destinationhostname : windows_core::PCWSTR, interfaceindex : *mut u32) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - OnDemandGetRoutingHint(destinationhostname.param().abi(), &mut result__).map(|| core::mem::transmute(result__)) + OnDemandGetRoutingHint(destinationhostname.param().abi(), &mut result__).map(|| result__) } } #[inline] @@ -31,7 +31,7 @@ pub unsafe fn OnDemandRegisterNotification(callback: ONDEMAND_NOTIFICATION_CALLB windows_link::link!("ondemandconnroutehelper.dll" "system" fn OnDemandRegisterNotification(callback : ONDEMAND_NOTIFICATION_CALLBACK, callbackcontext : *const core::ffi::c_void, registrationhandle : *mut super::super::Foundation:: HANDLE) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - OnDemandRegisterNotification(callback, callbackcontext.unwrap_or(core::mem::zeroed()) as _, &mut result__).map(|| core::mem::transmute(result__)) + OnDemandRegisterNotification(callback, callbackcontext.unwrap_or(core::mem::zeroed()) as _, &mut result__).map(|| result__) } } #[inline] diff --git a/crates/libs/windows/src/Windows/Win32/Networking/WebSocket/mod.rs b/crates/libs/windows/src/Windows/Win32/Networking/WebSocket/mod.rs index 4a73ebd314..8dea4ceb68 100644 --- a/crates/libs/windows/src/Windows/Win32/Networking/WebSocket/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Networking/WebSocket/mod.rs @@ -39,7 +39,7 @@ pub unsafe fn WebSocketCreateClientHandle(pproperties: &[WEB_SOCKET_PROPERTY]) - windows_link::link!("websocket.dll" "system" fn WebSocketCreateClientHandle(pproperties : *const WEB_SOCKET_PROPERTY, ulpropertycount : u32, phwebsocket : *mut WEB_SOCKET_HANDLE) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - WebSocketCreateClientHandle(core::mem::transmute(pproperties.as_ptr()), pproperties.len().try_into().unwrap(), &mut result__).map(|| core::mem::transmute(result__)) + WebSocketCreateClientHandle(core::mem::transmute(pproperties.as_ptr()), pproperties.len().try_into().unwrap(), &mut result__).map(|| result__) } } #[inline] @@ -47,7 +47,7 @@ pub unsafe fn WebSocketCreateServerHandle(pproperties: &[WEB_SOCKET_PROPERTY]) - windows_link::link!("websocket.dll" "system" fn WebSocketCreateServerHandle(pproperties : *const WEB_SOCKET_PROPERTY, ulpropertycount : u32, phwebsocket : *mut WEB_SOCKET_HANDLE) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - WebSocketCreateServerHandle(core::mem::transmute(pproperties.as_ptr()), pproperties.len().try_into().unwrap(), &mut result__).map(|| core::mem::transmute(result__)) + WebSocketCreateServerHandle(core::mem::transmute(pproperties.as_ptr()), pproperties.len().try_into().unwrap(), &mut result__).map(|| result__) } } #[inline] 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 5de0db6ca4..c6fc7cad27 100644 --- a/crates/libs/windows/src/Windows/Win32/Networking/WindowsWebServices/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Networking/WindowsWebServices/mod.rs @@ -6,7 +6,7 @@ where windows_link::link!("webauthn.dll" "system" fn WebAuthNAuthenticatorGetAssertion(hwnd : super::super::Foundation:: HWND, pwszrpid : windows_core::PCWSTR, pwebauthnclientdata : *const WEBAUTHN_CLIENT_DATA, pwebauthngetassertionoptions : *const WEBAUTHN_AUTHENTICATOR_GET_ASSERTION_OPTIONS, ppwebauthnassertion : *mut *mut WEBAUTHN_ASSERTION) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - WebAuthNAuthenticatorGetAssertion(hwnd, pwszrpid.param().abi(), pwebauthnclientdata, pwebauthngetassertionoptions.unwrap_or(core::mem::zeroed()) as _, &mut result__).map(|| core::mem::transmute(result__)) + WebAuthNAuthenticatorGetAssertion(hwnd, pwszrpid.param().abi(), pwebauthnclientdata, pwebauthngetassertionoptions.unwrap_or(core::mem::zeroed()) as _, &mut result__).map(|| result__) } } #[inline] @@ -14,7 +14,7 @@ pub unsafe fn WebAuthNAuthenticatorMakeCredential(hwnd: super::super::Foundation windows_link::link!("webauthn.dll" "system" fn WebAuthNAuthenticatorMakeCredential(hwnd : super::super::Foundation:: HWND, prpinformation : *const WEBAUTHN_RP_ENTITY_INFORMATION, puserinformation : *const WEBAUTHN_USER_ENTITY_INFORMATION, ppubkeycredparams : *const WEBAUTHN_COSE_CREDENTIAL_PARAMETERS, pwebauthnclientdata : *const WEBAUTHN_CLIENT_DATA, pwebauthnmakecredentialoptions : *const WEBAUTHN_AUTHENTICATOR_MAKE_CREDENTIAL_OPTIONS, ppwebauthncredentialattestation : *mut *mut WEBAUTHN_CREDENTIAL_ATTESTATION) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - WebAuthNAuthenticatorMakeCredential(hwnd, prpinformation, puserinformation, ppubkeycredparams, pwebauthnclientdata, pwebauthnmakecredentialoptions.unwrap_or(core::mem::zeroed()) as _, &mut result__).map(|| core::mem::transmute(result__)) + WebAuthNAuthenticatorMakeCredential(hwnd, prpinformation, puserinformation, ppubkeycredparams, pwebauthnclientdata, pwebauthnmakecredentialoptions.unwrap_or(core::mem::zeroed()) as _, &mut result__).map(|| result__) } } #[inline] @@ -52,7 +52,7 @@ pub unsafe fn WebAuthNGetCancellationId() -> windows_core::Result windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - WebAuthNGetCancellationId(&mut result__).map(|| core::mem::transmute(result__)) + WebAuthNGetCancellationId(&mut result__).map(|| result__) } } #[inline] @@ -65,7 +65,7 @@ pub unsafe fn WebAuthNGetPlatformCredentialList(pgetcredentialsoptions: *const W windows_link::link!("webauthn.dll" "system" fn WebAuthNGetPlatformCredentialList(pgetcredentialsoptions : *const WEBAUTHN_GET_CREDENTIALS_OPTIONS, ppcredentialdetailslist : *mut *mut WEBAUTHN_CREDENTIAL_DETAILS_LIST) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - WebAuthNGetPlatformCredentialList(pgetcredentialsoptions, &mut result__).map(|| core::mem::transmute(result__)) + WebAuthNGetPlatformCredentialList(pgetcredentialsoptions, &mut result__).map(|| result__) } } #[inline] @@ -78,7 +78,7 @@ pub unsafe fn WebAuthNIsUserVerifyingPlatformAuthenticatorAvailable() -> windows windows_link::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__)) + WebAuthNIsUserVerifyingPlatformAuthenticatorAvailable(&mut result__).map(|| result__) } } #[inline] @@ -206,7 +206,7 @@ pub unsafe fn WsCreateError(properties: Option<&[WS_ERROR_PROPERTY]>) -> windows windows_link::link!("webservices.dll" "system" fn WsCreateError(properties : *const WS_ERROR_PROPERTY, propertycount : u32, error : *mut *mut WS_ERROR) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - WsCreateError(core::mem::transmute(properties.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), properties.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), &mut result__).map(|| core::mem::transmute(result__)) + WsCreateError(core::mem::transmute(properties.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), properties.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), &mut result__).map(|| result__) } } #[inline] @@ -427,7 +427,7 @@ pub unsafe fn WsGetErrorString(error: *const WS_ERROR, index: u32) -> windows_co windows_link::link!("webservices.dll" "system" fn WsGetErrorString(error : *const WS_ERROR, index : u32, string : *mut WS_STRING) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - WsGetErrorString(error, index, &mut result__).map(|| core::mem::transmute(result__)) + WsGetErrorString(error, index, &mut result__).map(|| result__) } } #[inline] 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 35410d87d6..eee243f8f6 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 @@ -314,7 +314,7 @@ where windows_link::link!("secur32.dll" "system" fn ImportSecurityContextA(pszpackage : windows_core::PCSTR, ppackedcontext : *const SecBuffer, token : *const core::ffi::c_void, phcontext : *mut super::super::Credentials:: SecHandle) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - ImportSecurityContextA(pszpackage.param().abi(), ppackedcontext, token, &mut result__).map(|| core::mem::transmute(result__)) + ImportSecurityContextA(pszpackage.param().abi(), ppackedcontext, token, &mut result__).map(|| result__) } } #[cfg(feature = "Win32_Security_Credentials")] @@ -326,7 +326,7 @@ where windows_link::link!("secur32.dll" "system" fn ImportSecurityContextW(pszpackage : windows_core::PCWSTR, ppackedcontext : *const SecBuffer, token : *const core::ffi::c_void, phcontext : *mut super::super::Credentials:: SecHandle) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - ImportSecurityContextW(pszpackage.param().abi(), ppackedcontext, token, &mut result__).map(|| core::mem::transmute(result__)) + ImportSecurityContextW(pszpackage.param().abi(), ppackedcontext, token, &mut result__).map(|| result__) } } #[cfg(feature = "Win32_Security_Credentials")] @@ -646,7 +646,7 @@ where windows_link::link!("secur32.dll" "system" fn QuerySecurityPackageInfoA(pszpackagename : windows_core::PCSTR, pppackageinfo : *mut *mut SecPkgInfoA) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - QuerySecurityPackageInfoA(pszpackagename.param().abi(), &mut result__).map(|| core::mem::transmute(result__)) + QuerySecurityPackageInfoA(pszpackagename.param().abi(), &mut result__).map(|| result__) } } #[inline] @@ -657,7 +657,7 @@ where windows_link::link!("secur32.dll" "system" fn QuerySecurityPackageInfoW(pszpackagename : windows_core::PCWSTR, pppackageinfo : *mut *mut SecPkgInfoW) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - QuerySecurityPackageInfoW(pszpackagename.param().abi(), &mut result__).map(|| core::mem::transmute(result__)) + QuerySecurityPackageInfoW(pszpackagename.param().abi(), &mut result__).map(|| result__) } } #[cfg(feature = "Win32_Security_Credentials")] @@ -743,7 +743,7 @@ pub unsafe fn SLGenerateOfflineInstallationId(hslc: *const core::ffi::c_void, pp windows_link::link!("slc.dll" "system" fn SLGenerateOfflineInstallationId(hslc : *const core::ffi::c_void, pproductskuid : *const windows_core::GUID, ppwszinstallationid : *mut windows_core::PWSTR) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - SLGenerateOfflineInstallationId(hslc, pproductskuid, &mut result__).map(|| core::mem::transmute(result__)) + SLGenerateOfflineInstallationId(hslc, pproductskuid, &mut result__).map(|| result__) } } #[inline] @@ -751,7 +751,7 @@ pub unsafe fn SLGenerateOfflineInstallationIdEx(hslc: *const core::ffi::c_void, windows_link::link!("slc.dll" "system" fn SLGenerateOfflineInstallationIdEx(hslc : *const core::ffi::c_void, pproductskuid : *const windows_core::GUID, pactivationinfo : *const SL_ACTIVATION_INFO_HEADER, ppwszinstallationid : *mut windows_core::PWSTR) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - SLGenerateOfflineInstallationIdEx(hslc, pproductskuid.unwrap_or(core::mem::zeroed()) as _, pactivationinfo.unwrap_or(core::mem::zeroed()) as _, &mut result__).map(|| core::mem::transmute(result__)) + SLGenerateOfflineInstallationIdEx(hslc, pproductskuid.unwrap_or(core::mem::zeroed()) as _, pactivationinfo.unwrap_or(core::mem::zeroed()) as _, &mut result__).map(|| result__) } } #[inline] @@ -785,7 +785,7 @@ pub unsafe fn SLGetLicenseFileId(hslc: *const core::ffi::c_void, pblicenseblob: windows_link::link!("slc.dll" "system" fn SLGetLicenseFileId(hslc : *const core::ffi::c_void, cblicenseblob : u32, pblicenseblob : *const u8, plicensefileid : *mut windows_core::GUID) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - SLGetLicenseFileId(hslc, pblicenseblob.len().try_into().unwrap(), core::mem::transmute(pblicenseblob.as_ptr()), &mut result__).map(|| core::mem::transmute(result__)) + SLGetLicenseFileId(hslc, pblicenseblob.len().try_into().unwrap(), core::mem::transmute(pblicenseblob.as_ptr()), &mut result__).map(|| result__) } } #[inline] @@ -813,7 +813,7 @@ where windows_link::link!("slc.dll" "system" fn SLGetPKeyId(hslc : *const core::ffi::c_void, pwszpkeyalgorithm : windows_core::PCWSTR, pwszpkeystring : windows_core::PCWSTR, cbpkeyspecificdata : u32, pbpkeyspecificdata : *const u8, ppkeyid : *mut windows_core::GUID) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - SLGetPKeyId(hslc, pwszpkeyalgorithm.param().abi(), pwszpkeystring.param().abi(), pbpkeyspecificdata.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pbpkeyspecificdata.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), &mut result__).map(|| core::mem::transmute(result__)) + SLGetPKeyId(hslc, pwszpkeyalgorithm.param().abi(), pwszpkeystring.param().abi(), pbpkeyspecificdata.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pbpkeyspecificdata.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), &mut result__).map(|| result__) } } #[inline] @@ -840,7 +840,7 @@ where windows_link::link!("slc.dll" "system" fn SLGetPolicyInformationDWORD(hslc : *const core::ffi::c_void, pwszvaluename : windows_core::PCWSTR, pdwvalue : *mut u32) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - SLGetPolicyInformationDWORD(hslc, pwszvaluename.param().abi(), &mut result__).map(|| core::mem::transmute(result__)) + SLGetPolicyInformationDWORD(hslc, pwszvaluename.param().abi(), &mut result__).map(|| result__) } } #[inline] @@ -859,7 +859,7 @@ where windows_link::link!("slcext.dll" "system" fn SLGetReferralInformation(hslc : *const core::ffi::c_void, ereferraltype : SLREFERRALTYPE, pskuorappid : *const windows_core::GUID, pwszvaluename : windows_core::PCWSTR, ppwszvalue : *mut windows_core::PWSTR) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - SLGetReferralInformation(hslc, ereferraltype, pskuorappid, pwszvaluename.param().abi(), &mut result__).map(|| core::mem::transmute(result__)) + SLGetReferralInformation(hslc, ereferraltype, pskuorappid, pwszvaluename.param().abi(), &mut result__).map(|| result__) } } #[inline] @@ -877,7 +877,7 @@ where windows_link::link!("slcext.dll" "system" fn SLGetServerStatus(pwszserverurl : windows_core::PCWSTR, pwszacquisitiontype : windows_core::PCWSTR, pwszproxyserver : windows_core::PCWSTR, wproxyport : u16, phrstatus : *mut windows_core::HRESULT) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - SLGetServerStatus(pwszserverurl.param().abi(), pwszacquisitiontype.param().abi(), pwszproxyserver.param().abi(), wproxyport.unwrap_or(core::mem::zeroed()) as _, &mut result__).map(|| core::mem::transmute(result__)) + SLGetServerStatus(pwszserverurl.param().abi(), pwszacquisitiontype.param().abi(), pwszproxyserver.param().abi(), wproxyport.unwrap_or(core::mem::zeroed()) as _, &mut result__).map(|| result__) } } #[inline] @@ -904,7 +904,7 @@ where windows_link::link!("slc.dll" "system" fn SLGetWindowsInformationDWORD(pwszvaluename : windows_core::PCWSTR, pdwvalue : *mut u32) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - SLGetWindowsInformationDWORD(pwszvaluename.param().abi(), &mut result__).map(|| core::mem::transmute(result__)) + SLGetWindowsInformationDWORD(pwszvaluename.param().abi(), &mut result__).map(|| result__) } } #[inline] @@ -912,7 +912,7 @@ pub unsafe fn SLInstallLicense(hslc: *const core::ffi::c_void, pblicenseblob: &[ windows_link::link!("slc.dll" "system" fn SLInstallLicense(hslc : *const core::ffi::c_void, cblicenseblob : u32, pblicenseblob : *const u8, plicensefileid : *mut windows_core::GUID) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - SLInstallLicense(hslc, pblicenseblob.len().try_into().unwrap(), core::mem::transmute(pblicenseblob.as_ptr()), &mut result__).map(|| core::mem::transmute(result__)) + SLInstallLicense(hslc, pblicenseblob.len().try_into().unwrap(), core::mem::transmute(pblicenseblob.as_ptr()), &mut result__).map(|| result__) } } #[inline] @@ -924,7 +924,7 @@ where windows_link::link!("slc.dll" "system" fn SLInstallProofOfPurchase(hslc : *const core::ffi::c_void, pwszpkeyalgorithm : windows_core::PCWSTR, pwszpkeystring : windows_core::PCWSTR, cbpkeyspecificdata : u32, pbpkeyspecificdata : *const u8, ppkeyid : *mut windows_core::GUID) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - SLInstallProofOfPurchase(hslc, pwszpkeyalgorithm.param().abi(), pwszpkeystring.param().abi(), pbpkeyspecificdata.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pbpkeyspecificdata.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), &mut result__).map(|| core::mem::transmute(result__)) + SLInstallProofOfPurchase(hslc, pwszpkeyalgorithm.param().abi(), pwszpkeystring.param().abi(), pbpkeyspecificdata.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pbpkeyspecificdata.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), &mut result__).map(|| result__) } } #[inline] @@ -1014,7 +1014,7 @@ where windows_link::link!("secur32.dll" "system" fn SaslGetProfilePackageA(profilename : windows_core::PCSTR, packageinfo : *mut *mut SecPkgInfoA) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - SaslGetProfilePackageA(profilename.param().abi(), &mut result__).map(|| core::mem::transmute(result__)) + SaslGetProfilePackageA(profilename.param().abi(), &mut result__).map(|| result__) } } #[inline] @@ -1025,7 +1025,7 @@ where windows_link::link!("secur32.dll" "system" fn SaslGetProfilePackageW(profilename : windows_core::PCWSTR, packageinfo : *mut *mut SecPkgInfoW) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - SaslGetProfilePackageW(profilename.param().abi(), &mut result__).map(|| core::mem::transmute(result__)) + SaslGetProfilePackageW(profilename.param().abi(), &mut result__).map(|| result__) } } #[inline] @@ -1033,7 +1033,7 @@ pub unsafe fn SaslIdentifyPackageA(pinput: *const SecBufferDesc) -> windows_core windows_link::link!("secur32.dll" "system" fn SaslIdentifyPackageA(pinput : *const SecBufferDesc, packageinfo : *mut *mut SecPkgInfoA) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - SaslIdentifyPackageA(pinput, &mut result__).map(|| core::mem::transmute(result__)) + SaslIdentifyPackageA(pinput, &mut result__).map(|| result__) } } #[inline] @@ -1041,7 +1041,7 @@ pub unsafe fn SaslIdentifyPackageW(pinput: *const SecBufferDesc) -> windows_core windows_link::link!("secur32.dll" "system" fn SaslIdentifyPackageW(pinput : *const SecBufferDesc, packageinfo : *mut *mut SecPkgInfoW) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - SaslIdentifyPackageW(pinput, &mut result__).map(|| core::mem::transmute(result__)) + SaslIdentifyPackageW(pinput, &mut result__).map(|| result__) } } #[cfg(feature = "Win32_Security_Credentials")] @@ -1109,7 +1109,7 @@ pub unsafe fn SslDeserializeCertificateStore(serializedcertificatestore: super:: windows_link::link!("schannel.dll" "system" fn SslDeserializeCertificateStore(serializedcertificatestore : super::super::Cryptography:: CRYPT_INTEGER_BLOB, ppcertcontext : *mut *mut super::super::Cryptography:: CERT_CONTEXT) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - SslDeserializeCertificateStore(core::mem::transmute(serializedcertificatestore), &mut result__).map(|| core::mem::transmute(result__)) + SslDeserializeCertificateStore(core::mem::transmute(serializedcertificatestore), &mut result__).map(|| result__) } } #[inline] @@ -1220,7 +1220,7 @@ where windows_link::link!("secur32.dll" "system" fn SspiGetTargetHostName(psztargetname : windows_core::PCWSTR, pszhostname : *mut windows_core::PWSTR) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - SspiGetTargetHostName(psztargetname.param().abi(), &mut result__).map(|| core::mem::transmute(result__)) + SspiGetTargetHostName(psztargetname.param().abi(), &mut result__).map(|| result__) } } #[inline] @@ -1323,7 +1323,7 @@ pub unsafe fn TokenBindingGenerateID(keytype: TOKENBINDING_KEY_PARAMETERS_TYPE, windows_link::link!("tokenbinding.dll" "system" fn TokenBindingGenerateID(keytype : TOKENBINDING_KEY_PARAMETERS_TYPE, publickey : *const core::ffi::c_void, publickeysize : u32, resultdata : *mut *mut TOKENBINDING_RESULT_DATA) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - TokenBindingGenerateID(keytype, publickey, publickeysize, &mut result__).map(|| core::mem::transmute(result__)) + TokenBindingGenerateID(keytype, publickey, publickeysize, &mut result__).map(|| result__) } } #[inline] @@ -1334,7 +1334,7 @@ where windows_link::link!("tokenbinding.dll" "system" fn TokenBindingGenerateIDForUri(keytype : TOKENBINDING_KEY_PARAMETERS_TYPE, targeturi : windows_core::PCWSTR, resultdata : *mut *mut TOKENBINDING_RESULT_DATA) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - TokenBindingGenerateIDForUri(keytype, targeturi.param().abi(), &mut result__).map(|| core::mem::transmute(result__)) + TokenBindingGenerateIDForUri(keytype, targeturi.param().abi(), &mut result__).map(|| result__) } } #[inline] @@ -1352,7 +1352,7 @@ pub unsafe fn TokenBindingGetKeyTypesClient() -> windows_core::Result<*mut TOKEN windows_link::link!("tokenbinding.dll" "system" fn TokenBindingGetKeyTypesClient(keytypes : *mut *mut TOKENBINDING_KEY_TYPES) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - TokenBindingGetKeyTypesClient(&mut result__).map(|| core::mem::transmute(result__)) + TokenBindingGetKeyTypesClient(&mut result__).map(|| result__) } } #[inline] @@ -1360,7 +1360,7 @@ pub unsafe fn TokenBindingGetKeyTypesServer() -> windows_core::Result<*mut TOKEN windows_link::link!("tokenbinding.dll" "system" fn TokenBindingGetKeyTypesServer(keytypes : *mut *mut TOKENBINDING_KEY_TYPES) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - TokenBindingGetKeyTypesServer(&mut result__).map(|| core::mem::transmute(result__)) + TokenBindingGetKeyTypesServer(&mut result__).map(|| result__) } } #[inline] @@ -1368,7 +1368,7 @@ pub unsafe fn TokenBindingVerifyMessage(tokenbindingmessage: *const core::ffi::c windows_link::link!("tokenbinding.dll" "system" fn TokenBindingVerifyMessage(tokenbindingmessage : *const core::ffi::c_void, tokenbindingmessagesize : u32, keytype : TOKENBINDING_KEY_PARAMETERS_TYPE, tlsekm : *const core::ffi::c_void, tlsekmsize : u32, resultlist : *mut *mut TOKENBINDING_RESULT_LIST) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - TokenBindingVerifyMessage(tokenbindingmessage, tokenbindingmessagesize, keytype, tlsekm, tlsekmsize, &mut result__).map(|| core::mem::transmute(result__)) + TokenBindingVerifyMessage(tokenbindingmessage, tokenbindingmessagesize, keytype, tlsekm, tlsekmsize, &mut result__).map(|| result__) } } #[inline] @@ -1393,7 +1393,7 @@ pub unsafe fn VerifySignature(phcontext: *const super::super::Credentials::SecHa windows_link::link!("secur32.dll" "system" fn VerifySignature(phcontext : *const super::super::Credentials:: SecHandle, pmessage : *const SecBufferDesc, messageseqno : u32, pfqop : *mut u32) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - VerifySignature(phcontext, pmessage, messageseqno, &mut result__).map(|| core::mem::transmute(result__)) + VerifySignature(phcontext, pmessage, messageseqno, &mut result__).map(|| result__) } } #[cfg(feature = "Win32_Security_Credentials")] 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 91c47cd326..322c8b2cb4 100644 --- a/crates/libs/windows/src/Windows/Win32/Security/Credentials/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Security/Credentials/mod.rs @@ -358,7 +358,7 @@ pub unsafe fn KeyCredentialManagerGetInformation() -> windows_core::Result<*mut windows_link::link!("keycredmgr.dll" "system" fn KeyCredentialManagerGetInformation(keycredentialmanagerinfo : *mut *mut KeyCredentialManagerInfo) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - KeyCredentialManagerGetInformation(&mut result__).map(|| core::mem::transmute(result__)) + KeyCredentialManagerGetInformation(&mut result__).map(|| result__) } } #[inline] 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 126bd0b387..4febb500f8 100644 --- a/crates/libs/windows/src/Windows/Win32/Security/Cryptography/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Security/Cryptography/mod.rs @@ -1970,7 +1970,7 @@ pub unsafe fn CryptXmlAddObject(hsignatureorobject: *const core::ffi::c_void, dw windows_link::link!("cryptxml.dll" "system" fn CryptXmlAddObject(hsignatureorobject : *const core::ffi::c_void, dwflags : u32, rgproperty : *const CRYPT_XML_PROPERTY, cproperty : u32, pencoded : *const CRYPT_XML_BLOB, ppobject : *mut *mut CRYPT_XML_OBJECT) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - CryptXmlAddObject(hsignatureorobject, dwflags, core::mem::transmute(rgproperty.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), rgproperty.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), pencoded, &mut result__).map(|| core::mem::transmute(result__)) + CryptXmlAddObject(hsignatureorobject, dwflags, core::mem::transmute(rgproperty.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), rgproperty.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), pencoded, &mut result__).map(|| result__) } } #[inline] @@ -2013,7 +2013,7 @@ pub unsafe fn CryptXmlGetAlgorithmInfo(pxmlalgorithm: *const CRYPT_XML_ALGORITHM windows_link::link!("cryptxml.dll" "system" fn CryptXmlGetAlgorithmInfo(pxmlalgorithm : *const CRYPT_XML_ALGORITHM, dwflags : CRYPT_XML_FLAGS, ppalginfo : *mut *mut CRYPT_XML_ALGORITHM_INFO) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - CryptXmlGetAlgorithmInfo(pxmlalgorithm, dwflags, &mut result__).map(|| core::mem::transmute(result__)) + CryptXmlGetAlgorithmInfo(pxmlalgorithm, dwflags, &mut result__).map(|| result__) } } #[inline] @@ -2021,7 +2021,7 @@ pub unsafe fn CryptXmlGetDocContext(hcryptxml: *const core::ffi::c_void) -> wind windows_link::link!("cryptxml.dll" "system" fn CryptXmlGetDocContext(hcryptxml : *const core::ffi::c_void, ppstruct : *mut *mut CRYPT_XML_DOC_CTXT) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - CryptXmlGetDocContext(hcryptxml, &mut result__).map(|| core::mem::transmute(result__)) + CryptXmlGetDocContext(hcryptxml, &mut result__).map(|| result__) } } #[inline] @@ -2029,7 +2029,7 @@ pub unsafe fn CryptXmlGetReference(hcryptxml: *const core::ffi::c_void) -> windo windows_link::link!("cryptxml.dll" "system" fn CryptXmlGetReference(hcryptxml : *const core::ffi::c_void, ppstruct : *mut *mut CRYPT_XML_REFERENCE) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - CryptXmlGetReference(hcryptxml, &mut result__).map(|| core::mem::transmute(result__)) + CryptXmlGetReference(hcryptxml, &mut result__).map(|| result__) } } #[inline] @@ -2037,7 +2037,7 @@ pub unsafe fn CryptXmlGetSignature(hcryptxml: *const core::ffi::c_void) -> windo windows_link::link!("cryptxml.dll" "system" fn CryptXmlGetSignature(hcryptxml : *const core::ffi::c_void, ppstruct : *mut *mut CRYPT_XML_SIGNATURE) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - CryptXmlGetSignature(hcryptxml, &mut result__).map(|| core::mem::transmute(result__)) + CryptXmlGetSignature(hcryptxml, &mut result__).map(|| result__) } } #[inline] @@ -2045,7 +2045,7 @@ pub unsafe fn CryptXmlGetStatus(hcryptxml: *const core::ffi::c_void) -> windows_ windows_link::link!("cryptxml.dll" "system" fn CryptXmlGetStatus(hcryptxml : *const core::ffi::c_void, pstatus : *mut CRYPT_XML_STATUS) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - CryptXmlGetStatus(hcryptxml, &mut result__).map(|| core::mem::transmute(result__)) + CryptXmlGetStatus(hcryptxml, &mut result__).map(|| result__) } } #[inline] @@ -2053,7 +2053,7 @@ pub unsafe fn CryptXmlGetTransforms() -> windows_core::Result<*mut CRYPT_XML_TRA windows_link::link!("cryptxml.dll" "system" fn CryptXmlGetTransforms(ppconfig : *mut *mut CRYPT_XML_TRANSFORM_CHAIN_CONFIG) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - CryptXmlGetTransforms(&mut result__).map(|| core::mem::transmute(result__)) + CryptXmlGetTransforms(&mut result__).map(|| result__) } } #[inline] @@ -2061,7 +2061,7 @@ pub unsafe fn CryptXmlImportPublicKey(dwflags: CRYPT_XML_FLAGS, pkeyvalue: *cons windows_link::link!("cryptxml.dll" "system" fn CryptXmlImportPublicKey(dwflags : CRYPT_XML_FLAGS, pkeyvalue : *const CRYPT_XML_KEY_VALUE, phkey : *mut BCRYPT_KEY_HANDLE) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - CryptXmlImportPublicKey(dwflags, pkeyvalue, &mut result__).map(|| core::mem::transmute(result__)) + CryptXmlImportPublicKey(dwflags, pkeyvalue, &mut result__).map(|| result__) } } #[inline] @@ -2151,7 +2151,7 @@ pub unsafe fn GetCryptoTransform(hsymmetriccrypto: *const INFORMATIONCARD_CRYPTO windows_link::link!("infocardapi.dll" "system" fn GetCryptoTransform(hsymmetriccrypto : *const INFORMATIONCARD_CRYPTO_HANDLE, mode : u32, padding : PaddingMode, feedbacksize : u32, direction : Direction, cbiv : u32, piv : *const u8, pphtransform : *mut *mut INFORMATIONCARD_CRYPTO_HANDLE) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - GetCryptoTransform(hsymmetriccrypto, mode, padding, feedbacksize, direction, piv.len().try_into().unwrap(), core::mem::transmute(piv.as_ptr()), &mut result__).map(|| core::mem::transmute(result__)) + GetCryptoTransform(hsymmetriccrypto, mode, padding, feedbacksize, direction, piv.len().try_into().unwrap(), core::mem::transmute(piv.as_ptr()), &mut result__).map(|| result__) } } #[inline] @@ -2185,7 +2185,7 @@ pub unsafe fn GetKeyedHash(hsymmetriccrypto: *const INFORMATIONCARD_CRYPTO_HANDL windows_link::link!("infocardapi.dll" "system" fn GetKeyedHash(hsymmetriccrypto : *const INFORMATIONCARD_CRYPTO_HANDLE, pphhash : *mut *mut INFORMATIONCARD_CRYPTO_HANDLE) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - GetKeyedHash(hsymmetriccrypto, &mut result__).map(|| core::mem::transmute(result__)) + GetKeyedHash(hsymmetriccrypto, &mut result__).map(|| result__) } } #[inline] @@ -2277,7 +2277,7 @@ where windows_link::link!("ncrypt.dll" "system" fn NCryptCreateProtectionDescriptor(pwszdescriptorstring : windows_core::PCWSTR, dwflags : u32, phdescriptor : *mut super:: NCRYPT_DESCRIPTOR_HANDLE) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - NCryptCreateProtectionDescriptor(pwszdescriptorstring.param().abi(), dwflags, &mut result__).map(|| core::mem::transmute(result__)) + NCryptCreateProtectionDescriptor(pwszdescriptorstring.param().abi(), dwflags, &mut result__).map(|| result__) } } #[inline] @@ -2454,7 +2454,7 @@ pub unsafe fn NCryptStreamOpenToProtect(hdescriptor: super::NCRYPT_DESCRIPTOR_HA windows_link::link!("ncrypt.dll" "system" fn NCryptStreamOpenToProtect(hdescriptor : super:: NCRYPT_DESCRIPTOR_HANDLE, dwflags : u32, hwnd : super::super::Foundation:: HWND, pstreaminfo : *const NCRYPT_PROTECT_STREAM_INFO, phstream : *mut super:: NCRYPT_STREAM_HANDLE) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - NCryptStreamOpenToProtect(hdescriptor, dwflags, hwnd.unwrap_or(core::mem::zeroed()) as _, pstreaminfo, &mut result__).map(|| core::mem::transmute(result__)) + NCryptStreamOpenToProtect(hdescriptor, dwflags, hwnd.unwrap_or(core::mem::zeroed()) as _, pstreaminfo, &mut result__).map(|| result__) } } #[inline] @@ -2462,7 +2462,7 @@ pub unsafe fn NCryptStreamOpenToUnprotect(pstreaminfo: *const NCRYPT_PROTECT_STR windows_link::link!("ncrypt.dll" "system" fn NCryptStreamOpenToUnprotect(pstreaminfo : *const NCRYPT_PROTECT_STREAM_INFO, dwflags : u32, hwnd : super::super::Foundation:: HWND, phstream : *mut super:: NCRYPT_STREAM_HANDLE) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - NCryptStreamOpenToUnprotect(pstreaminfo, dwflags, hwnd.unwrap_or(core::mem::zeroed()) as _, &mut result__).map(|| core::mem::transmute(result__)) + NCryptStreamOpenToUnprotect(pstreaminfo, dwflags, hwnd.unwrap_or(core::mem::zeroed()) as _, &mut result__).map(|| result__) } } #[inline] @@ -2470,7 +2470,7 @@ pub unsafe fn NCryptStreamOpenToUnprotectEx(pstreaminfo: *const NCRYPT_PROTECT_S windows_link::link!("ncrypt.dll" "system" fn NCryptStreamOpenToUnprotectEx(pstreaminfo : *const NCRYPT_PROTECT_STREAM_INFO_EX, dwflags : u32, hwnd : super::super::Foundation:: HWND, phstream : *mut super:: NCRYPT_STREAM_HANDLE) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - NCryptStreamOpenToUnprotectEx(pstreaminfo, dwflags, hwnd.unwrap_or(core::mem::zeroed()) as _, &mut result__).map(|| core::mem::transmute(result__)) + NCryptStreamOpenToUnprotectEx(pstreaminfo, dwflags, hwnd.unwrap_or(core::mem::zeroed()) as _, &mut result__).map(|| result__) } } #[inline] @@ -2575,7 +2575,7 @@ where windows_link::link!("mssign32.dll" "system" fn SignerSignEx(dwflags : SIGNER_SIGN_FLAGS, psubjectinfo : *const SIGNER_SUBJECT_INFO, psignercert : *const SIGNER_CERT, psignatureinfo : *const SIGNER_SIGNATURE_INFO, pproviderinfo : *const SIGNER_PROVIDER_INFO, pwszhttptimestamp : windows_core::PCWSTR, psrequest : *const CRYPT_ATTRIBUTES, psipdata : *const core::ffi::c_void, ppsignercontext : *mut *mut SIGNER_CONTEXT) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - SignerSignEx(dwflags, psubjectinfo, psignercert, psignatureinfo, pproviderinfo.unwrap_or(core::mem::zeroed()) as _, pwszhttptimestamp.param().abi(), psrequest.unwrap_or(core::mem::zeroed()) as _, psipdata.unwrap_or(core::mem::zeroed()) as _, &mut result__).map(|| core::mem::transmute(result__)) + SignerSignEx(dwflags, psubjectinfo, psignercert, psignatureinfo, pproviderinfo.unwrap_or(core::mem::zeroed()) as _, pwszhttptimestamp.param().abi(), psrequest.unwrap_or(core::mem::zeroed()) as _, psipdata.unwrap_or(core::mem::zeroed()) as _, &mut result__).map(|| result__) } } #[inline] @@ -2630,7 +2630,7 @@ where windows_link::link!("mssign32.dll" "system" fn SignerTimeStampEx(dwflags : u32, psubjectinfo : *const SIGNER_SUBJECT_INFO, pwszhttptimestamp : windows_core::PCWSTR, psrequest : *const CRYPT_ATTRIBUTES, psipdata : *const core::ffi::c_void, ppsignercontext : *mut *mut SIGNER_CONTEXT) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - SignerTimeStampEx(dwflags.unwrap_or(core::mem::zeroed()) as _, psubjectinfo, pwszhttptimestamp.param().abi(), psrequest, psipdata, &mut result__).map(|| core::mem::transmute(result__)) + SignerTimeStampEx(dwflags.unwrap_or(core::mem::zeroed()) as _, psubjectinfo, pwszhttptimestamp.param().abi(), psrequest, psipdata, &mut result__).map(|| result__) } } #[inline] @@ -2641,7 +2641,7 @@ where windows_link::link!("mssign32.dll" "system" fn SignerTimeStampEx2(dwflags : SIGNER_TIMESTAMP_FLAGS, psubjectinfo : *const SIGNER_SUBJECT_INFO, pwszhttptimestamp : windows_core::PCWSTR, dwalgid : ALG_ID, psrequest : *const CRYPT_ATTRIBUTES, psipdata : *const core::ffi::c_void, ppsignercontext : *mut *mut SIGNER_CONTEXT) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - SignerTimeStampEx2(dwflags.unwrap_or(core::mem::zeroed()) as _, psubjectinfo, pwszhttptimestamp.param().abi(), dwalgid, psrequest, psipdata, &mut result__).map(|| core::mem::transmute(result__)) + SignerTimeStampEx2(dwflags.unwrap_or(core::mem::zeroed()) as _, psubjectinfo, pwszhttptimestamp.param().abi(), dwalgid, psrequest, psipdata, &mut result__).map(|| result__) } } #[inline] @@ -2925,7 +2925,7 @@ where windows_link::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__)) + VerifyHash(hcrypto, phash.len().try_into().unwrap(), core::mem::transmute(phash.as_ptr()), hashalgoid.param().abi(), psig.len().try_into().unwrap(), core::mem::transmute(psig.as_ptr()), &mut result__).map(|| result__) } } pub const ALG_CLASS_ALL: u32 = 57344u32; 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 2f9de62ca3..f526d4292e 100644 --- a/crates/libs/windows/src/Windows/Win32/Security/DiagnosticDataQuery/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Security/DiagnosticDataQuery/mod.rs @@ -13,7 +13,7 @@ pub unsafe fn DdqCreateSession(accesslevel: DdqAccessLevel) -> windows_core::Res windows_link::link!("diagnosticdataquery.dll" "system" fn DdqCreateSession(accesslevel : DdqAccessLevel, hsession : *mut HDIAGNOSTIC_DATA_QUERY_SESSION) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - DdqCreateSession(accesslevel, &mut result__).map(|| core::mem::transmute(result__)) + DdqCreateSession(accesslevel, &mut result__).map(|| result__) } } #[inline] @@ -55,7 +55,7 @@ pub unsafe fn DdqGetDiagnosticDataAccessLevelAllowed() -> windows_core::Result windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - DdqGetDiagnosticDataAccessLevelAllowed(&mut result__).map(|| core::mem::transmute(result__)) + DdqGetDiagnosticDataAccessLevelAllowed(&mut result__).map(|| result__) } } #[inline] @@ -73,7 +73,7 @@ pub unsafe fn DdqGetDiagnosticRecordCategoryAtIndex(hcategorydescription: HDIAGN windows_link::link!("diagnosticdataquery.dll" "system" fn DdqGetDiagnosticRecordCategoryAtIndex(hcategorydescription : HDIAGNOSTIC_EVENT_CATEGORY_DESCRIPTION, index : u32, categorydescription : *mut DIAGNOSTIC_DATA_EVENT_CATEGORY_DESCRIPTION) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - DdqGetDiagnosticRecordCategoryAtIndex(hcategorydescription, index, &mut result__).map(|| core::mem::transmute(result__)) + DdqGetDiagnosticRecordCategoryAtIndex(hcategorydescription, index, &mut result__).map(|| result__) } } #[inline] @@ -81,7 +81,7 @@ pub unsafe fn DdqGetDiagnosticRecordCategoryCount(hcategorydescription: HDIAGNOS windows_link::link!("diagnosticdataquery.dll" "system" fn DdqGetDiagnosticRecordCategoryCount(hcategorydescription : HDIAGNOSTIC_EVENT_CATEGORY_DESCRIPTION, categorydescriptioncount : *mut u32) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - DdqGetDiagnosticRecordCategoryCount(hcategorydescription, &mut result__).map(|| core::mem::transmute(result__)) + DdqGetDiagnosticRecordCategoryCount(hcategorydescription, &mut result__).map(|| result__) } } #[inline] @@ -89,7 +89,7 @@ pub unsafe fn DdqGetDiagnosticRecordCount(hrecord: HDIAGNOSTIC_RECORD) -> window windows_link::link!("diagnosticdataquery.dll" "system" fn DdqGetDiagnosticRecordCount(hrecord : HDIAGNOSTIC_RECORD, recordcount : *mut u32) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - DdqGetDiagnosticRecordCount(hrecord, &mut result__).map(|| core::mem::transmute(result__)) + DdqGetDiagnosticRecordCount(hrecord, &mut result__).map(|| result__) } } #[inline] @@ -97,7 +97,7 @@ pub unsafe fn DdqGetDiagnosticRecordLocaleTagAtIndex(htagdescription: HDIAGNOSTI windows_link::link!("diagnosticdataquery.dll" "system" fn DdqGetDiagnosticRecordLocaleTagAtIndex(htagdescription : HDIAGNOSTIC_EVENT_TAG_DESCRIPTION, index : u32, tagdescription : *mut DIAGNOSTIC_DATA_EVENT_TAG_DESCRIPTION) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - DdqGetDiagnosticRecordLocaleTagAtIndex(htagdescription, index, &mut result__).map(|| core::mem::transmute(result__)) + DdqGetDiagnosticRecordLocaleTagAtIndex(htagdescription, index, &mut result__).map(|| result__) } } #[inline] @@ -105,7 +105,7 @@ pub unsafe fn DdqGetDiagnosticRecordLocaleTagCount(htagdescription: HDIAGNOSTIC_ windows_link::link!("diagnosticdataquery.dll" "system" fn DdqGetDiagnosticRecordLocaleTagCount(htagdescription : HDIAGNOSTIC_EVENT_TAG_DESCRIPTION, tagdescriptioncount : *mut u32) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - DdqGetDiagnosticRecordLocaleTagCount(htagdescription, &mut result__).map(|| core::mem::transmute(result__)) + DdqGetDiagnosticRecordLocaleTagCount(htagdescription, &mut result__).map(|| result__) } } #[inline] @@ -116,7 +116,7 @@ where windows_link::link!("diagnosticdataquery.dll" "system" fn DdqGetDiagnosticRecordLocaleTags(hsession : HDIAGNOSTIC_DATA_QUERY_SESSION, locale : windows_core::PCWSTR, htagdescription : *mut HDIAGNOSTIC_EVENT_TAG_DESCRIPTION) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - DdqGetDiagnosticRecordLocaleTags(hsession, locale.param().abi(), &mut result__).map(|| core::mem::transmute(result__)) + DdqGetDiagnosticRecordLocaleTags(hsession, locale.param().abi(), &mut result__).map(|| result__) } } #[inline] @@ -124,7 +124,7 @@ pub unsafe fn DdqGetDiagnosticRecordPage(hsession: HDIAGNOSTIC_DATA_QUERY_SESSIO windows_link::link!("diagnosticdataquery.dll" "system" fn DdqGetDiagnosticRecordPage(hsession : HDIAGNOSTIC_DATA_QUERY_SESSION, searchcriteria : *const DIAGNOSTIC_DATA_SEARCH_CRITERIA, offset : u32, pagerecordcount : u32, baserowid : i64, hrecord : *mut HDIAGNOSTIC_RECORD) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - DdqGetDiagnosticRecordPage(hsession, searchcriteria, offset, pagerecordcount, baserowid, &mut result__).map(|| core::mem::transmute(result__)) + DdqGetDiagnosticRecordPage(hsession, searchcriteria, offset, pagerecordcount, baserowid, &mut result__).map(|| result__) } } #[inline] @@ -132,7 +132,7 @@ pub unsafe fn DdqGetDiagnosticRecordPayload(hsession: HDIAGNOSTIC_DATA_QUERY_SES windows_link::link!("diagnosticdataquery.dll" "system" fn DdqGetDiagnosticRecordPayload(hsession : HDIAGNOSTIC_DATA_QUERY_SESSION, rowid : i64, payload : *mut windows_core::PCWSTR) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - DdqGetDiagnosticRecordPayload(hsession, rowid, &mut result__).map(|| core::mem::transmute(result__)) + DdqGetDiagnosticRecordPayload(hsession, rowid, &mut result__).map(|| result__) } } #[inline] @@ -140,7 +140,7 @@ pub unsafe fn DdqGetDiagnosticRecordProducerAtIndex(hproducerdescription: HDIAGN windows_link::link!("diagnosticdataquery.dll" "system" fn DdqGetDiagnosticRecordProducerAtIndex(hproducerdescription : HDIAGNOSTIC_EVENT_PRODUCER_DESCRIPTION, index : u32, producerdescription : *mut DIAGNOSTIC_DATA_EVENT_PRODUCER_DESCRIPTION) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - DdqGetDiagnosticRecordProducerAtIndex(hproducerdescription, index, &mut result__).map(|| core::mem::transmute(result__)) + DdqGetDiagnosticRecordProducerAtIndex(hproducerdescription, index, &mut result__).map(|| result__) } } #[inline] @@ -151,7 +151,7 @@ where windows_link::link!("diagnosticdataquery.dll" "system" fn DdqGetDiagnosticRecordProducerCategories(hsession : HDIAGNOSTIC_DATA_QUERY_SESSION, producername : windows_core::PCWSTR, hcategorydescription : *mut HDIAGNOSTIC_EVENT_CATEGORY_DESCRIPTION) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - DdqGetDiagnosticRecordProducerCategories(hsession, producername.param().abi(), &mut result__).map(|| core::mem::transmute(result__)) + DdqGetDiagnosticRecordProducerCategories(hsession, producername.param().abi(), &mut result__).map(|| result__) } } #[inline] @@ -159,7 +159,7 @@ pub unsafe fn DdqGetDiagnosticRecordProducerCount(hproducerdescription: HDIAGNOS windows_link::link!("diagnosticdataquery.dll" "system" fn DdqGetDiagnosticRecordProducerCount(hproducerdescription : HDIAGNOSTIC_EVENT_PRODUCER_DESCRIPTION, producerdescriptioncount : *mut u32) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - DdqGetDiagnosticRecordProducerCount(hproducerdescription, &mut result__).map(|| core::mem::transmute(result__)) + DdqGetDiagnosticRecordProducerCount(hproducerdescription, &mut result__).map(|| result__) } } #[inline] @@ -167,7 +167,7 @@ pub unsafe fn DdqGetDiagnosticRecordProducers(hsession: HDIAGNOSTIC_DATA_QUERY_S windows_link::link!("diagnosticdataquery.dll" "system" fn DdqGetDiagnosticRecordProducers(hsession : HDIAGNOSTIC_DATA_QUERY_SESSION, hproducerdescription : *mut HDIAGNOSTIC_EVENT_PRODUCER_DESCRIPTION) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - DdqGetDiagnosticRecordProducers(hsession, &mut result__).map(|| core::mem::transmute(result__)) + DdqGetDiagnosticRecordProducers(hsession, &mut result__).map(|| result__) } } #[inline] @@ -190,7 +190,7 @@ pub unsafe fn DdqGetDiagnosticReport(hsession: HDIAGNOSTIC_DATA_QUERY_SESSION, r windows_link::link!("diagnosticdataquery.dll" "system" fn DdqGetDiagnosticReport(hsession : HDIAGNOSTIC_DATA_QUERY_SESSION, reportstoretype : u32, hreport : *mut HDIAGNOSTIC_REPORT) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - DdqGetDiagnosticReport(hsession, reportstoretype, &mut result__).map(|| core::mem::transmute(result__)) + DdqGetDiagnosticReport(hsession, reportstoretype, &mut result__).map(|| result__) } } #[inline] @@ -203,7 +203,7 @@ pub unsafe fn DdqGetDiagnosticReportCount(hreport: HDIAGNOSTIC_REPORT) -> window windows_link::link!("diagnosticdataquery.dll" "system" fn DdqGetDiagnosticReportCount(hreport : HDIAGNOSTIC_REPORT, reportcount : *mut u32) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - DdqGetDiagnosticReportCount(hreport, &mut result__).map(|| core::mem::transmute(result__)) + DdqGetDiagnosticReportCount(hreport, &mut result__).map(|| result__) } } #[inline] @@ -211,7 +211,7 @@ pub unsafe fn DdqGetDiagnosticReportStoreReportCount(hsession: HDIAGNOSTIC_DATA_ windows_link::link!("diagnosticdataquery.dll" "system" fn DdqGetDiagnosticReportStoreReportCount(hsession : HDIAGNOSTIC_DATA_QUERY_SESSION, reportstoretype : u32, reportcount : *mut u32) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - DdqGetDiagnosticReportStoreReportCount(hsession, reportstoretype, &mut result__).map(|| core::mem::transmute(result__)) + DdqGetDiagnosticReportStoreReportCount(hsession, reportstoretype, &mut result__).map(|| result__) } } #[inline] @@ -219,7 +219,7 @@ pub unsafe fn DdqGetSessionAccessLevel(hsession: HDIAGNOSTIC_DATA_QUERY_SESSION) windows_link::link!("diagnosticdataquery.dll" "system" fn DdqGetSessionAccessLevel(hsession : HDIAGNOSTIC_DATA_QUERY_SESSION, accesslevel : *mut DdqAccessLevel) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - DdqGetSessionAccessLevel(hsession, &mut result__).map(|| core::mem::transmute(result__)) + DdqGetSessionAccessLevel(hsession, &mut result__).map(|| result__) } } #[inline] @@ -227,7 +227,7 @@ pub unsafe fn DdqGetTranscriptConfiguration(hsession: HDIAGNOSTIC_DATA_QUERY_SES windows_link::link!("diagnosticdataquery.dll" "system" fn DdqGetTranscriptConfiguration(hsession : HDIAGNOSTIC_DATA_QUERY_SESSION, currentconfig : *mut DIAGNOSTIC_DATA_EVENT_TRANSCRIPT_CONFIGURATION) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - DdqGetTranscriptConfiguration(hsession, &mut result__).map(|| core::mem::transmute(result__)) + DdqGetTranscriptConfiguration(hsession, &mut result__).map(|| result__) } } #[inline] @@ -239,7 +239,7 @@ where windows_link::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__)) + 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(|| result__) } } #[inline] 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 cd4033d6eb..86d109de1b 100644 --- a/crates/libs/windows/src/Windows/Win32/Security/EnterpriseData/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Security/EnterpriseData/mod.rs @@ -20,7 +20,7 @@ where windows_link::link!("srpapi.dll" "system" fn SrpCreateThreadNetworkContext(enterpriseid : windows_core::PCWSTR, threadnetworkcontext : *mut HTHREAD_NETWORK_CONTEXT) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - SrpCreateThreadNetworkContext(enterpriseid.param().abi(), &mut result__).map(|| core::mem::transmute(result__)) + SrpCreateThreadNetworkContext(enterpriseid.param().abi(), &mut result__).map(|| result__) } } #[inline] @@ -34,7 +34,7 @@ pub unsafe fn SrpDoesPolicyAllowAppExecution(packageid: *const super::super::Sto windows_link::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__)) + SrpDoesPolicyAllowAppExecution(packageid, &mut result__).map(|| result__) } } #[inline] @@ -55,7 +55,7 @@ pub unsafe fn SrpGetEnterprisePolicy(tokenhandle: super::super::Foundation::HAND windows_link::link!("srpapi.dll" "system" fn SrpGetEnterprisePolicy(tokenhandle : super::super::Foundation:: HANDLE, policyflags : *mut ENTERPRISE_DATA_POLICIES) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - SrpGetEnterprisePolicy(tokenhandle, &mut result__).map(|| core::mem::transmute(result__)) + SrpGetEnterprisePolicy(tokenhandle, &mut result__).map(|| result__) } } #[inline] 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 f01eb2938d..b9dc1ffd9f 100644 --- a/crates/libs/windows/src/Windows/Win32/Security/Isolation/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Security/Isolation/mod.rs @@ -8,7 +8,7 @@ where windows_link::link!("userenv.dll" "system" fn CreateAppContainerProfile(pszappcontainername : windows_core::PCWSTR, pszdisplayname : windows_core::PCWSTR, pszdescription : windows_core::PCWSTR, pcapabilities : *const super:: SID_AND_ATTRIBUTES, dwcapabilitycount : u32, ppsidappcontainersid : *mut super:: PSID) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - CreateAppContainerProfile(pszappcontainername.param().abi(), pszdisplayname.param().abi(), pszdescription.param().abi(), core::mem::transmute(pcapabilities.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pcapabilities.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), &mut result__).map(|| core::mem::transmute(result__)) + CreateAppContainerProfile(pszappcontainername.param().abi(), pszdisplayname.param().abi(), pszdescription.param().abi(), core::mem::transmute(pcapabilities.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pcapabilities.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), &mut result__).map(|| result__) } } #[inline] @@ -27,7 +27,7 @@ where windows_link::link!("userenv.dll" "system" fn DeriveAppContainerSidFromAppContainerName(pszappcontainername : windows_core::PCWSTR, ppsidappcontainersid : *mut super:: PSID) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - DeriveAppContainerSidFromAppContainerName(pszappcontainername.param().abi(), &mut result__).map(|| core::mem::transmute(result__)) + DeriveAppContainerSidFromAppContainerName(pszappcontainername.param().abi(), &mut result__).map(|| result__) } } #[inline] @@ -38,7 +38,7 @@ where windows_link::link!("userenv.dll" "system" fn DeriveRestrictedAppContainerSidFromAppContainerSidAndRestrictedName(psidappcontainersid : super:: PSID, pszrestrictedappcontainername : windows_core::PCWSTR, ppsidrestrictedappcontainersid : *mut super:: PSID) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - DeriveRestrictedAppContainerSidFromAppContainerSidAndRestrictedName(psidappcontainersid, pszrestrictedappcontainername.param().abi(), &mut result__).map(|| core::mem::transmute(result__)) + DeriveRestrictedAppContainerSidFromAppContainerSidAndRestrictedName(psidappcontainersid, pszrestrictedappcontainername.param().abi(), &mut result__).map(|| result__) } } #[inline] @@ -49,7 +49,7 @@ where windows_link::link!("userenv.dll" "system" fn GetAppContainerFolderPath(pszappcontainersid : windows_core::PCWSTR, ppszpath : *mut windows_core::PWSTR) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - GetAppContainerFolderPath(pszappcontainersid.param().abi(), &mut result__).map(|| core::mem::transmute(result__)) + GetAppContainerFolderPath(pszappcontainersid.param().abi(), &mut result__).map(|| result__) } } #[inline] @@ -63,7 +63,7 @@ pub unsafe fn GetAppContainerRegistryLocation(desiredaccess: u32) -> windows_cor windows_link::link!("userenv.dll" "system" fn GetAppContainerRegistryLocation(desiredaccess : u32, phappcontainerkey : *mut super::super::System::Registry:: HKEY) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - GetAppContainerRegistryLocation(desiredaccess, &mut result__).map(|| core::mem::transmute(result__)) + GetAppContainerRegistryLocation(desiredaccess, &mut result__).map(|| result__) } } #[inline] @@ -71,7 +71,7 @@ pub unsafe fn IsCrossIsolatedEnvironmentClipboardContent() -> windows_core::Resu windows_link::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__)) + IsCrossIsolatedEnvironmentClipboardContent(&mut result__).map(|| result__) } } #[inline] @@ -79,7 +79,7 @@ pub unsafe fn IsProcessInIsolatedContainer() -> windows_core::Result windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - IsProcessInIsolatedContainer(&mut result__).map(|| core::mem::transmute(result__)) + IsProcessInIsolatedContainer(&mut result__).map(|| result__) } } #[inline] @@ -87,7 +87,7 @@ pub unsafe fn IsProcessInIsolatedWindowsEnvironment() -> windows_core::Result windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - IsProcessInIsolatedWindowsEnvironment(&mut result__).map(|| core::mem::transmute(result__)) + IsProcessInIsolatedWindowsEnvironment(&mut result__).map(|| result__) } } #[inline] @@ -95,7 +95,7 @@ pub unsafe fn IsProcessInWDAGContainer(reserved: *const core::ffi::c_void) -> wi windows_link::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__)) + IsProcessInWDAGContainer(reserved, &mut result__).map(|| result__) } } windows_core::imp::define_interface!(IIsolatedAppLauncher, IIsolatedAppLauncher_Vtbl, 0xf686878f_7b42_4cc4_96fb_f4f3b6e3d24d); diff --git a/crates/libs/windows/src/Windows/Win32/Security/LicenseProtection/mod.rs b/crates/libs/windows/src/Windows/Win32/Security/LicenseProtection/mod.rs index bfea2a4589..add065e7fb 100644 --- a/crates/libs/windows/src/Windows/Win32/Security/LicenseProtection/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Security/LicenseProtection/mod.rs @@ -6,7 +6,7 @@ where windows_link::link!("licenseprotection.dll" "system" fn RegisterLicenseKeyWithExpiration(licensekey : windows_core::PCWSTR, validityindays : u32, status : *mut LicenseProtectionStatus) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - RegisterLicenseKeyWithExpiration(licensekey.param().abi(), validityindays, &mut result__).map(|| core::mem::transmute(result__)) + RegisterLicenseKeyWithExpiration(licensekey.param().abi(), validityindays, &mut result__).map(|| result__) } } #[inline] diff --git a/crates/libs/windows/src/Windows/Win32/Storage/CloudFilters/mod.rs b/crates/libs/windows/src/Windows/Win32/Storage/CloudFilters/mod.rs index 3367b211a1..ab1f410b3b 100644 --- a/crates/libs/windows/src/Windows/Win32/Storage/CloudFilters/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Storage/CloudFilters/mod.rs @@ -12,7 +12,7 @@ where windows_link::link!("cldapi.dll" "system" fn CfConnectSyncRoot(syncrootpath : windows_core::PCWSTR, callbacktable : *const CF_CALLBACK_REGISTRATION, callbackcontext : *const core::ffi::c_void, connectflags : CF_CONNECT_FLAGS, connectionkey : *mut CF_CONNECTION_KEY) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - CfConnectSyncRoot(syncrootpath.param().abi(), callbacktable, callbackcontext.unwrap_or(core::mem::zeroed()) as _, connectflags, &mut result__).map(|| core::mem::transmute(result__)) + CfConnectSyncRoot(syncrootpath.param().abi(), callbacktable, callbackcontext.unwrap_or(core::mem::zeroed()) as _, connectflags, &mut result__).map(|| result__) } } #[cfg(feature = "Win32_System_IO")] @@ -90,7 +90,7 @@ pub unsafe fn CfGetPlatformInfo() -> windows_core::Result { windows_link::link!("cldapi.dll" "system" fn CfGetPlatformInfo(platformversion : *mut CF_PLATFORM_INFO) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - CfGetPlatformInfo(&mut result__).map(|| core::mem::transmute(result__)) + CfGetPlatformInfo(&mut result__).map(|| result__) } } #[inline] @@ -111,7 +111,7 @@ pub unsafe fn CfGetTransferKey(filehandle: super::super::Foundation::HANDLE) -> windows_link::link!("cldapi.dll" "system" fn CfGetTransferKey(filehandle : super::super::Foundation:: HANDLE, transferkey : *mut i64) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - CfGetTransferKey(filehandle, &mut result__).map(|| core::mem::transmute(result__)) + CfGetTransferKey(filehandle, &mut result__).map(|| result__) } } #[inline] @@ -133,7 +133,7 @@ where windows_link::link!("cldapi.dll" "system" fn CfOpenFileWithOplock(filepath : windows_core::PCWSTR, flags : CF_OPEN_FILE_FLAGS, protectedhandle : *mut super::super::Foundation:: HANDLE) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - CfOpenFileWithOplock(filepath.param().abi(), flags, &mut result__).map(|| core::mem::transmute(result__)) + CfOpenFileWithOplock(filepath.param().abi(), flags, &mut result__).map(|| result__) } } #[inline] @@ -141,7 +141,7 @@ pub unsafe fn CfQuerySyncProviderStatus(connectionkey: CF_CONNECTION_KEY) -> win windows_link::link!("cldapi.dll" "system" fn CfQuerySyncProviderStatus(connectionkey : CF_CONNECTION_KEY, providerstatus : *mut CF_SYNC_PROVIDER_STATUS) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - CfQuerySyncProviderStatus(connectionkey, &mut result__).map(|| core::mem::transmute(result__)) + CfQuerySyncProviderStatus(connectionkey, &mut result__).map(|| result__) } } #[inline] 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 16559b0518..f53bf31bc2 100644 --- a/crates/libs/windows/src/Windows/Win32/Storage/FileHistory/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Storage/FileHistory/mod.rs @@ -13,7 +13,7 @@ pub unsafe fn FhServiceOpenPipe(startserviceifstopped: bool) -> windows_core::Re windows_link::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__)) + FhServiceOpenPipe(startserviceifstopped.into(), &mut result__).map(|| result__) } } #[inline] 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 6143616afd..816614435f 100644 --- a/crates/libs/windows/src/Windows/Win32/Storage/FileSystem/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Storage/FileSystem/mod.rs @@ -411,7 +411,7 @@ pub unsafe fn CreateIoRing(ioringversion: IORING_VERSION, flags: IORING_CREATE_F windows_link::link!("api-ms-win-core-ioring-l1-1-0.dll" "system" fn CreateIoRing(ioringversion : IORING_VERSION, flags : IORING_CREATE_FLAGS, submissionqueuesize : u32, completionqueuesize : u32, h : *mut HIORING) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - CreateIoRing(ioringversion, core::mem::transmute(flags), submissionqueuesize, completionqueuesize, &mut result__).map(|| core::mem::transmute(result__)) + CreateIoRing(ioringversion, core::mem::transmute(flags), submissionqueuesize, completionqueuesize, &mut result__).map(|| result__) } } #[cfg(feature = "Win32_System_IO")] @@ -2060,7 +2060,7 @@ pub unsafe fn QueryIoRingCapabilities() -> windows_core::Result windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - QueryIoRingCapabilities(&mut result__).map(|| core::mem::transmute(result__)) + QueryIoRingCapabilities(&mut result__).map(|| result__) } } #[inline] @@ -2778,7 +2778,7 @@ pub unsafe fn WofGetDriverVersion(fileorvolumehandle: super::super::Foundation:: windows_link::link!("wofutil.dll" "system" fn WofGetDriverVersion(fileorvolumehandle : super::super::Foundation:: HANDLE, provider : u32, wofversion : *mut u32) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - WofGetDriverVersion(fileorvolumehandle, provider, &mut result__).map(|| core::mem::transmute(result__)) + WofGetDriverVersion(fileorvolumehandle, provider, &mut result__).map(|| result__) } } #[inline] @@ -2811,7 +2811,7 @@ where windows_link::link!("wofutil.dll" "system" fn WofWimAddEntry(volumename : windows_core::PCWSTR, wimpath : windows_core::PCWSTR, wimtype : u32, wimindex : u32, datasourceid : *mut i64) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - WofWimAddEntry(volumename.param().abi(), wimpath.param().abi(), wimtype, wimindex, &mut result__).map(|| core::mem::transmute(result__)) + WofWimAddEntry(volumename.param().abi(), wimpath.param().abi(), wimtype, wimindex, &mut result__).map(|| result__) } } #[inline] diff --git a/crates/libs/windows/src/Windows/Win32/Storage/InstallableFileSystems/mod.rs b/crates/libs/windows/src/Windows/Win32/Storage/InstallableFileSystems/mod.rs index 3c2bd053a5..9946158480 100644 --- a/crates/libs/windows/src/Windows/Win32/Storage/InstallableFileSystems/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Storage/InstallableFileSystems/mod.rs @@ -33,7 +33,7 @@ where windows_link::link!("fltlib.dll" "system" fn FilterConnectCommunicationPort(lpportname : windows_core::PCWSTR, dwoptions : u32, lpcontext : *const core::ffi::c_void, wsizeofcontext : u16, lpsecurityattributes : *const super::super::Security:: SECURITY_ATTRIBUTES, hport : *mut super::super::Foundation:: HANDLE) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - FilterConnectCommunicationPort(lpportname.param().abi(), dwoptions, lpcontext.unwrap_or(core::mem::zeroed()) as _, wsizeofcontext, lpsecurityattributes.unwrap_or(core::mem::zeroed()) as _, &mut result__).map(|| core::mem::transmute(result__)) + FilterConnectCommunicationPort(lpportname.param().abi(), dwoptions, lpcontext.unwrap_or(core::mem::zeroed()) as _, wsizeofcontext, lpsecurityattributes.unwrap_or(core::mem::zeroed()) as _, &mut result__).map(|| result__) } } #[inline] @@ -44,7 +44,7 @@ where windows_link::link!("fltlib.dll" "system" fn FilterCreate(lpfiltername : windows_core::PCWSTR, hfilter : *mut HFILTER) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - FilterCreate(lpfiltername.param().abi(), &mut result__).map(|| core::mem::transmute(result__)) + FilterCreate(lpfiltername.param().abi(), &mut result__).map(|| result__) } } #[inline] @@ -106,7 +106,7 @@ where windows_link::link!("fltlib.dll" "system" fn FilterInstanceCreate(lpfiltername : windows_core::PCWSTR, lpvolumename : windows_core::PCWSTR, lpinstancename : windows_core::PCWSTR, hinstance : *mut HFILTER_INSTANCE) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - FilterInstanceCreate(lpfiltername.param().abi(), lpvolumename.param().abi(), lpinstancename.param().abi(), &mut result__).map(|| core::mem::transmute(result__)) + FilterInstanceCreate(lpfiltername.param().abi(), lpvolumename.param().abi(), lpinstancename.param().abi(), &mut result__).map(|| result__) } } #[inline] 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 c675a2e640..19c33cdc7b 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 @@ -3,7 +3,7 @@ pub unsafe fn ActivatePackageVirtualizationContext(context: PACKAGE_VIRTUALIZATI windows_link::link!("kernel32.dll" "system" fn ActivatePackageVirtualizationContext(context : PACKAGE_VIRTUALIZATION_CONTEXT_HANDLE, cookie : *mut usize) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - ActivatePackageVirtualizationContext(context, &mut result__).map(|| core::mem::transmute(result__)) + ActivatePackageVirtualizationContext(context, &mut result__).map(|| result__) } } #[inline] @@ -62,7 +62,7 @@ where windows_link::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__)) + CheckIsMSIXPackage(packagefullname.param().abi(), &mut result__).map(|| result__) } } #[inline] @@ -78,7 +78,7 @@ where windows_link::link!("kernel32.dll" "system" fn CreatePackageVirtualizationContext(packagefamilyname : windows_core::PCWSTR, context : *mut PACKAGE_VIRTUALIZATION_CONTEXT_HANDLE) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - CreatePackageVirtualizationContext(packagefamilyname.param().abi(), &mut result__).map(|| core::mem::transmute(result__)) + CreatePackageVirtualizationContext(packagefamilyname.param().abi(), &mut result__).map(|| result__) } } #[inline] @@ -99,7 +99,7 @@ pub unsafe fn DuplicatePackageVirtualizationContext(sourcecontext: PACKAGE_VIRTU windows_link::link!("kernel32.dll" "system" fn DuplicatePackageVirtualizationContext(sourcecontext : PACKAGE_VIRTUALIZATION_CONTEXT_HANDLE, destcontext : *mut PACKAGE_VIRTUALIZATION_CONTEXT_HANDLE) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - DuplicatePackageVirtualizationContext(sourcecontext, &mut result__).map(|| core::mem::transmute(result__)) + DuplicatePackageVirtualizationContext(sourcecontext, &mut result__).map(|| result__) } } #[inline] @@ -184,7 +184,7 @@ pub unsafe fn GetIdForPackageDependencyContext(packagedependencycontext: PACKAGE windows_link::link!("kernelbase.dll" "system" fn GetIdForPackageDependencyContext(packagedependencycontext : PACKAGEDEPENDENCY_CONTEXT, packagedependencyid : *mut windows_core::PWSTR) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - GetIdForPackageDependencyContext(packagedependencycontext, &mut result__).map(|| core::mem::transmute(result__)) + GetIdForPackageDependencyContext(packagedependencycontext, &mut result__).map(|| result__) } } #[inline] @@ -277,7 +277,7 @@ where windows_link::link!("kernelbase.dll" "system" fn GetResolvedPackageFullNameForPackageDependency(packagedependencyid : windows_core::PCWSTR, packagefullname : *mut windows_core::PWSTR) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - GetResolvedPackageFullNameForPackageDependency(packagedependencyid.param().abi(), &mut result__).map(|| core::mem::transmute(result__)) + GetResolvedPackageFullNameForPackageDependency(packagedependencyid.param().abi(), &mut result__).map(|| result__) } } #[inline] @@ -383,7 +383,7 @@ where windows_link::link!("kernelbase.dll" "system" fn TryCreatePackageDependency(user : super::super::super::Security:: PSID, packagefamilyname : windows_core::PCWSTR, minversion : PACKAGE_VERSION, packagedependencyprocessorarchitectures : PackageDependencyProcessorArchitectures, lifetimekind : PackageDependencyLifetimeKind, lifetimeartifact : windows_core::PCWSTR, options : CreatePackageDependencyOptions, packagedependencyid : *mut windows_core::PWSTR) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - TryCreatePackageDependency(user, packagefamilyname.param().abi(), core::mem::transmute(minversion), packagedependencyprocessorarchitectures, lifetimekind, lifetimeartifact.param().abi(), options, &mut result__).map(|| core::mem::transmute(result__)) + TryCreatePackageDependency(user, packagefamilyname.param().abi(), core::mem::transmute(minversion), packagedependencyprocessorarchitectures, lifetimekind, lifetimeartifact.param().abi(), options, &mut result__).map(|| result__) } } #[inline] diff --git a/crates/libs/windows/src/Windows/Win32/Storage/ProjectedFileSystem/mod.rs b/crates/libs/windows/src/Windows/Win32/Storage/ProjectedFileSystem/mod.rs index 951a0b5f73..492511a667 100644 --- a/crates/libs/windows/src/Windows/Win32/Storage/ProjectedFileSystem/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Storage/ProjectedFileSystem/mod.rs @@ -76,7 +76,7 @@ where windows_link::link!("projectedfslib.dll" "system" fn PrjGetOnDiskFileState(destinationfilename : windows_core::PCWSTR, filestate : *mut PRJ_FILE_STATE) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - PrjGetOnDiskFileState(destinationfilename.param().abi(), &mut result__).map(|| core::mem::transmute(result__)) + PrjGetOnDiskFileState(destinationfilename.param().abi(), &mut result__).map(|| result__) } } #[inline] @@ -101,7 +101,7 @@ where windows_link::link!("projectedfslib.dll" "system" fn PrjStartVirtualizing(virtualizationrootpath : windows_core::PCWSTR, callbacks : *const PRJ_CALLBACKS, instancecontext : *const core::ffi::c_void, options : *const PRJ_STARTVIRTUALIZING_OPTIONS, namespacevirtualizationcontext : *mut PRJ_NAMESPACE_VIRTUALIZATION_CONTEXT) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - PrjStartVirtualizing(virtualizationrootpath.param().abi(), callbacks, instancecontext.unwrap_or(core::mem::zeroed()) as _, options.unwrap_or(core::mem::zeroed()) as _, &mut result__).map(|| core::mem::transmute(result__)) + PrjStartVirtualizing(virtualizationrootpath.param().abi(), callbacks, instancecontext.unwrap_or(core::mem::zeroed()) as _, options.unwrap_or(core::mem::zeroed()) as _, &mut result__).map(|| result__) } } #[inline] 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 0cffa63a0f..6c45eff022 100644 --- a/crates/libs/windows/src/Windows/Win32/System/Antimalware/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/Antimalware/mod.rs @@ -11,7 +11,7 @@ where windows_link::link!("amsi.dll" "system" fn AmsiInitialize(appname : windows_core::PCWSTR, amsicontext : *mut HAMSICONTEXT) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - AmsiInitialize(appname.param().abi(), &mut result__).map(|| core::mem::transmute(result__)) + AmsiInitialize(appname.param().abi(), &mut result__).map(|| result__) } } #[inline] @@ -22,7 +22,7 @@ where windows_link::link!("amsi.dll" "system" fn AmsiNotifyOperation(amsicontext : HAMSICONTEXT, buffer : *const core::ffi::c_void, length : u32, contentname : windows_core::PCWSTR, result : *mut AMSI_RESULT) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - AmsiNotifyOperation(amsicontext, buffer, length, contentname.param().abi(), &mut result__).map(|| core::mem::transmute(result__)) + AmsiNotifyOperation(amsicontext, buffer, length, contentname.param().abi(), &mut result__).map(|| result__) } } #[inline] @@ -30,7 +30,7 @@ pub unsafe fn AmsiOpenSession(amsicontext: HAMSICONTEXT) -> windows_core::Result windows_link::link!("amsi.dll" "system" fn AmsiOpenSession(amsicontext : HAMSICONTEXT, amsisession : *mut HAMSISESSION) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - AmsiOpenSession(amsicontext, &mut result__).map(|| core::mem::transmute(result__)) + AmsiOpenSession(amsicontext, &mut result__).map(|| result__) } } #[inline] @@ -41,7 +41,7 @@ where windows_link::link!("amsi.dll" "system" fn AmsiScanBuffer(amsicontext : HAMSICONTEXT, buffer : *const core::ffi::c_void, length : u32, contentname : windows_core::PCWSTR, amsisession : HAMSISESSION, result : *mut AMSI_RESULT) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - AmsiScanBuffer(amsicontext, buffer, length, contentname.param().abi(), amsisession.unwrap_or(core::mem::zeroed()) as _, &mut result__).map(|| core::mem::transmute(result__)) + AmsiScanBuffer(amsicontext, buffer, length, contentname.param().abi(), amsisession.unwrap_or(core::mem::zeroed()) as _, &mut result__).map(|| result__) } } #[inline] @@ -53,7 +53,7 @@ where windows_link::link!("amsi.dll" "system" fn AmsiScanString(amsicontext : HAMSICONTEXT, string : windows_core::PCWSTR, contentname : windows_core::PCWSTR, amsisession : HAMSISESSION, result : *mut AMSI_RESULT) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - AmsiScanString(amsicontext, string.param().abi(), contentname.param().abi(), amsisession.unwrap_or(core::mem::zeroed()) as _, &mut result__).map(|| core::mem::transmute(result__)) + AmsiScanString(amsicontext, string.param().abi(), contentname.param().abi(), amsisession.unwrap_or(core::mem::zeroed()) as _, &mut result__).map(|| result__) } } #[inline] diff --git a/crates/libs/windows/src/Windows/Win32/System/Com/Marshal/mod.rs b/crates/libs/windows/src/Windows/Win32/System/Com/Marshal/mod.rs index 3675b4c380..0dcdd67998 100644 --- a/crates/libs/windows/src/Windows/Win32/System/Com/Marshal/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/Com/Marshal/mod.rs @@ -152,7 +152,7 @@ where windows_link::link!("ole32.dll" "system" fn CoUnmarshalHresult(pstm : * mut core::ffi::c_void, phresult : *mut windows_core::HRESULT) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - CoUnmarshalHresult(pstm.param().abi(), &mut result__).map(|| core::mem::transmute(result__)) + CoUnmarshalHresult(pstm.param().abi(), &mut result__).map(|| result__) } } #[inline] 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 37214baaa8..6b3ff32473 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 @@ -75,7 +75,7 @@ where windows_link::link!("ole32.dll" "system" fn GetHGlobalFromILockBytes(plkbyt : * mut core::ffi::c_void, phglobal : *mut super::super::super::Foundation:: HGLOBAL) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - GetHGlobalFromILockBytes(plkbyt.param().abi(), &mut result__).map(|| core::mem::transmute(result__)) + GetHGlobalFromILockBytes(plkbyt.param().abi(), &mut result__).map(|| result__) } } #[inline] @@ -86,7 +86,7 @@ where windows_link::link!("ole32.dll" "system" fn GetHGlobalFromStream(pstm : * mut core::ffi::c_void, phglobal : *mut super::super::super::Foundation:: HGLOBAL) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - GetHGlobalFromStream(pstm.param().abi(), &mut result__).map(|| core::mem::transmute(result__)) + GetHGlobalFromStream(pstm.param().abi(), &mut result__).map(|| result__) } } #[cfg(feature = "Win32_System_Variant")] @@ -262,7 +262,7 @@ where windows_link::link!("ole32.dll" "system" fn OleConvertIStorageToOLESTREAM(pstg : * mut core::ffi::c_void, lpolestream : *mut OLESTREAM) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - OleConvertIStorageToOLESTREAM(pstg.param().abi(), &mut result__).map(|| core::mem::transmute(result__)) + OleConvertIStorageToOLESTREAM(pstg.param().abi(), &mut result__).map(|| result__) } } #[cfg(feature = "Win32_Graphics_Gdi")] @@ -274,7 +274,7 @@ where windows_link::link!("ole32.dll" "system" fn OleConvertIStorageToOLESTREAMEx(pstg : * mut core::ffi::c_void, cfformat : u16, lwidth : i32, lheight : i32, dwsize : u32, pmedium : *const super:: STGMEDIUM, polestm : *mut OLESTREAM) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - OleConvertIStorageToOLESTREAMEx(pstg.param().abi(), cfformat, lwidth, lheight, dwsize, core::mem::transmute(pmedium), &mut result__).map(|| core::mem::transmute(result__)) + OleConvertIStorageToOLESTREAMEx(pstg.param().abi(), cfformat, lwidth, lheight, dwsize, core::mem::transmute(pmedium), &mut result__).map(|| result__) } } #[inline] @@ -302,7 +302,7 @@ where windows_link::link!("ole32.dll" "system" fn PropStgNameToFmtId(oszname : windows_core::PCWSTR, pfmtid : *mut windows_core::GUID) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - PropStgNameToFmtId(oszname.param().abi(), &mut result__).map(|| core::mem::transmute(result__)) + PropStgNameToFmtId(oszname.param().abi(), &mut result__).map(|| result__) } } #[cfg(feature = "Win32_System_Variant")] @@ -335,7 +335,7 @@ pub unsafe fn PropVariantGetBooleanElem(propvar: *const PROPVARIANT, ielem: u32) windows_link::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__)) + PropVariantGetBooleanElem(core::mem::transmute(propvar), ielem, &mut result__).map(|| result__) } } #[cfg(feature = "Win32_System_Variant")] @@ -344,7 +344,7 @@ pub unsafe fn PropVariantGetDoubleElem(propvar: *const PROPVARIANT, ielem: u32) windows_link::link!("propsys.dll" "system" fn PropVariantGetDoubleElem(propvar : *const PROPVARIANT, ielem : u32, pnval : *mut f64) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - PropVariantGetDoubleElem(core::mem::transmute(propvar), ielem, &mut result__).map(|| core::mem::transmute(result__)) + PropVariantGetDoubleElem(core::mem::transmute(propvar), ielem, &mut result__).map(|| result__) } } #[cfg(feature = "Win32_System_Variant")] @@ -359,7 +359,7 @@ pub unsafe fn PropVariantGetFileTimeElem(propvar: *const PROPVARIANT, ielem: u32 windows_link::link!("propsys.dll" "system" fn PropVariantGetFileTimeElem(propvar : *const PROPVARIANT, ielem : u32, pftval : *mut super::super::super::Foundation:: FILETIME) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - PropVariantGetFileTimeElem(core::mem::transmute(propvar), ielem, &mut result__).map(|| core::mem::transmute(result__)) + PropVariantGetFileTimeElem(core::mem::transmute(propvar), ielem, &mut result__).map(|| result__) } } #[cfg(feature = "Win32_System_Variant")] @@ -368,7 +368,7 @@ pub unsafe fn PropVariantGetInt16Elem(propvar: *const PROPVARIANT, ielem: u32) - windows_link::link!("propsys.dll" "system" fn PropVariantGetInt16Elem(propvar : *const PROPVARIANT, ielem : u32, pnval : *mut i16) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - PropVariantGetInt16Elem(core::mem::transmute(propvar), ielem, &mut result__).map(|| core::mem::transmute(result__)) + PropVariantGetInt16Elem(core::mem::transmute(propvar), ielem, &mut result__).map(|| result__) } } #[cfg(feature = "Win32_System_Variant")] @@ -377,7 +377,7 @@ pub unsafe fn PropVariantGetInt32Elem(propvar: *const PROPVARIANT, ielem: u32) - windows_link::link!("propsys.dll" "system" fn PropVariantGetInt32Elem(propvar : *const PROPVARIANT, ielem : u32, pnval : *mut i32) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - PropVariantGetInt32Elem(core::mem::transmute(propvar), ielem, &mut result__).map(|| core::mem::transmute(result__)) + PropVariantGetInt32Elem(core::mem::transmute(propvar), ielem, &mut result__).map(|| result__) } } #[cfg(feature = "Win32_System_Variant")] @@ -386,7 +386,7 @@ pub unsafe fn PropVariantGetInt64Elem(propvar: *const PROPVARIANT, ielem: u32) - windows_link::link!("propsys.dll" "system" fn PropVariantGetInt64Elem(propvar : *const PROPVARIANT, ielem : u32, pnval : *mut i64) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - PropVariantGetInt64Elem(core::mem::transmute(propvar), ielem, &mut result__).map(|| core::mem::transmute(result__)) + PropVariantGetInt64Elem(core::mem::transmute(propvar), ielem, &mut result__).map(|| result__) } } #[cfg(feature = "Win32_System_Variant")] @@ -395,7 +395,7 @@ pub unsafe fn PropVariantGetStringElem(propvar: *const PROPVARIANT, ielem: u32) windows_link::link!("propsys.dll" "system" fn PropVariantGetStringElem(propvar : *const PROPVARIANT, ielem : u32, ppszval : *mut windows_core::PWSTR) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - PropVariantGetStringElem(core::mem::transmute(propvar), ielem, &mut result__).map(|| core::mem::transmute(result__)) + PropVariantGetStringElem(core::mem::transmute(propvar), ielem, &mut result__).map(|| result__) } } #[cfg(feature = "Win32_System_Variant")] @@ -404,7 +404,7 @@ pub unsafe fn PropVariantGetUInt16Elem(propvar: *const PROPVARIANT, ielem: u32) windows_link::link!("propsys.dll" "system" fn PropVariantGetUInt16Elem(propvar : *const PROPVARIANT, ielem : u32, pnval : *mut u16) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - PropVariantGetUInt16Elem(core::mem::transmute(propvar), ielem, &mut result__).map(|| core::mem::transmute(result__)) + PropVariantGetUInt16Elem(core::mem::transmute(propvar), ielem, &mut result__).map(|| result__) } } #[cfg(feature = "Win32_System_Variant")] @@ -413,7 +413,7 @@ pub unsafe fn PropVariantGetUInt32Elem(propvar: *const PROPVARIANT, ielem: u32) windows_link::link!("propsys.dll" "system" fn PropVariantGetUInt32Elem(propvar : *const PROPVARIANT, ielem : u32, pnval : *mut u32) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - PropVariantGetUInt32Elem(core::mem::transmute(propvar), ielem, &mut result__).map(|| core::mem::transmute(result__)) + PropVariantGetUInt32Elem(core::mem::transmute(propvar), ielem, &mut result__).map(|| result__) } } #[cfg(feature = "Win32_System_Variant")] @@ -422,7 +422,7 @@ pub unsafe fn PropVariantGetUInt64Elem(propvar: *const PROPVARIANT, ielem: u32) windows_link::link!("propsys.dll" "system" fn PropVariantGetUInt64Elem(propvar : *const PROPVARIANT, ielem : u32, pnval : *mut u64) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - PropVariantGetUInt64Elem(core::mem::transmute(propvar), ielem, &mut result__).map(|| core::mem::transmute(result__)) + PropVariantGetUInt64Elem(core::mem::transmute(propvar), ielem, &mut result__).map(|| result__) } } #[cfg(feature = "Win32_System_Variant")] @@ -440,7 +440,7 @@ pub unsafe fn PropVariantToBoolean(propvarin: *const PROPVARIANT) -> windows_cor windows_link::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__)) + PropVariantToBoolean(core::mem::transmute(propvarin), &mut result__).map(|| result__) } } #[cfg(feature = "Win32_System_Variant")] @@ -473,7 +473,7 @@ pub unsafe fn PropVariantToDouble(propvarin: *const PROPVARIANT) -> windows_core windows_link::link!("propsys.dll" "system" fn PropVariantToDouble(propvarin : *const PROPVARIANT, pdblret : *mut f64) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - PropVariantToDouble(core::mem::transmute(propvarin), &mut result__).map(|| core::mem::transmute(result__)) + PropVariantToDouble(core::mem::transmute(propvarin), &mut result__).map(|| result__) } } #[cfg(feature = "Win32_System_Variant")] @@ -500,7 +500,7 @@ pub unsafe fn PropVariantToFileTime(propvar: *const PROPVARIANT, pstfout: super: windows_link::link!("propsys.dll" "system" fn PropVariantToFileTime(propvar : *const PROPVARIANT, pstfout : super::super::Variant:: PSTIME_FLAGS, pftout : *mut super::super::super::Foundation:: FILETIME) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - PropVariantToFileTime(core::mem::transmute(propvar), pstfout, &mut result__).map(|| core::mem::transmute(result__)) + PropVariantToFileTime(core::mem::transmute(propvar), pstfout, &mut result__).map(|| result__) } } #[cfg(feature = "Win32_System_Variant")] @@ -521,7 +521,7 @@ pub unsafe fn PropVariantToGUID(propvar: *const PROPVARIANT) -> windows_core::Re windows_link::link!("propsys.dll" "system" fn PropVariantToGUID(propvar : *const PROPVARIANT, pguid : *mut windows_core::GUID) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - PropVariantToGUID(core::mem::transmute(propvar), &mut result__).map(|| core::mem::transmute(result__)) + PropVariantToGUID(core::mem::transmute(propvar), &mut result__).map(|| result__) } } #[cfg(feature = "Win32_System_Variant")] @@ -530,7 +530,7 @@ pub unsafe fn PropVariantToInt16(propvarin: *const PROPVARIANT) -> windows_core: windows_link::link!("propsys.dll" "system" fn PropVariantToInt16(propvarin : *const PROPVARIANT, piret : *mut i16) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - PropVariantToInt16(core::mem::transmute(propvarin), &mut result__).map(|| core::mem::transmute(result__)) + PropVariantToInt16(core::mem::transmute(propvarin), &mut result__).map(|| result__) } } #[cfg(feature = "Win32_System_Variant")] @@ -557,7 +557,7 @@ pub unsafe fn PropVariantToInt32(propvarin: *const PROPVARIANT) -> windows_core: windows_link::link!("propsys.dll" "system" fn PropVariantToInt32(propvarin : *const PROPVARIANT, plret : *mut i32) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - PropVariantToInt32(core::mem::transmute(propvarin), &mut result__).map(|| core::mem::transmute(result__)) + PropVariantToInt32(core::mem::transmute(propvarin), &mut result__).map(|| result__) } } #[cfg(feature = "Win32_System_Variant")] @@ -584,7 +584,7 @@ pub unsafe fn PropVariantToInt64(propvarin: *const PROPVARIANT) -> windows_core: windows_link::link!("propsys.dll" "system" fn PropVariantToInt64(propvarin : *const PROPVARIANT, pllret : *mut i64) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - PropVariantToInt64(core::mem::transmute(propvarin), &mut result__).map(|| core::mem::transmute(result__)) + PropVariantToInt64(core::mem::transmute(propvarin), &mut result__).map(|| result__) } } #[cfg(feature = "Win32_System_Variant")] @@ -617,7 +617,7 @@ pub unsafe fn PropVariantToStringAlloc(propvar: *const PROPVARIANT) -> windows_c windows_link::link!("propsys.dll" "system" fn PropVariantToStringAlloc(propvar : *const PROPVARIANT, ppszout : *mut windows_core::PWSTR) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - PropVariantToStringAlloc(core::mem::transmute(propvar), &mut result__).map(|| core::mem::transmute(result__)) + PropVariantToStringAlloc(core::mem::transmute(propvar), &mut result__).map(|| result__) } } #[cfg(feature = "Win32_System_Variant")] @@ -647,7 +647,7 @@ pub unsafe fn PropVariantToUInt16(propvarin: *const PROPVARIANT) -> windows_core windows_link::link!("propsys.dll" "system" fn PropVariantToUInt16(propvarin : *const PROPVARIANT, puiret : *mut u16) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - PropVariantToUInt16(core::mem::transmute(propvarin), &mut result__).map(|| core::mem::transmute(result__)) + PropVariantToUInt16(core::mem::transmute(propvarin), &mut result__).map(|| result__) } } #[cfg(feature = "Win32_System_Variant")] @@ -674,7 +674,7 @@ pub unsafe fn PropVariantToUInt32(propvarin: *const PROPVARIANT) -> windows_core windows_link::link!("propsys.dll" "system" fn PropVariantToUInt32(propvarin : *const PROPVARIANT, pulret : *mut u32) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - PropVariantToUInt32(core::mem::transmute(propvarin), &mut result__).map(|| core::mem::transmute(result__)) + PropVariantToUInt32(core::mem::transmute(propvarin), &mut result__).map(|| result__) } } #[cfg(feature = "Win32_System_Variant")] @@ -701,7 +701,7 @@ pub unsafe fn PropVariantToUInt64(propvarin: *const PROPVARIANT) -> windows_core windows_link::link!("propsys.dll" "system" fn PropVariantToUInt64(propvarin : *const PROPVARIANT, pullret : *mut u64) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - PropVariantToUInt64(core::mem::transmute(propvarin), &mut result__).map(|| core::mem::transmute(result__)) + PropVariantToUInt64(core::mem::transmute(propvarin), &mut result__).map(|| result__) } } #[cfg(feature = "Win32_System_Variant")] @@ -749,7 +749,7 @@ where windows_link::link!("ole32.dll" "system" fn ReadClassStg(pstg : * mut core::ffi::c_void, pclsid : *mut windows_core::GUID) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - ReadClassStg(pstg.param().abi(), &mut result__).map(|| core::mem::transmute(result__)) + ReadClassStg(pstg.param().abi(), &mut result__).map(|| result__) } } #[inline] @@ -760,7 +760,7 @@ where windows_link::link!("ole32.dll" "system" fn ReadClassStm(pstm : * mut core::ffi::c_void, pclsid : *mut windows_core::GUID) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - ReadClassStm(pstm.param().abi(), &mut result__).map(|| core::mem::transmute(result__)) + ReadClassStm(pstm.param().abi(), &mut result__).map(|| result__) } } #[inline] 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 a7527e4bc8..88e499d22d 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 @@ -249,7 +249,7 @@ where windows_link::link!("urlmon.dll" "system" fn FindMediaType(rgsztypes : windows_core::PCSTR, rgcftypes : *mut u16) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - FindMediaType(rgsztypes.param().abi(), &mut result__).map(|| core::mem::transmute(result__)) + FindMediaType(rgsztypes.param().abi(), &mut result__).map(|| result__) } } #[inline] @@ -281,7 +281,7 @@ where windows_link::link!("urlmon.dll" "system" fn GetClassFileOrMime(pbc : * mut core::ffi::c_void, szfilename : windows_core::PCWSTR, pbuffer : *const core::ffi::c_void, cbsize : u32, szmime : windows_core::PCWSTR, dwreserved : u32, pclsid : *mut windows_core::GUID) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - GetClassFileOrMime(pbc.param().abi(), szfilename.param().abi(), pbuffer.unwrap_or(core::mem::zeroed()) as _, cbsize, szmime.param().abi(), dwreserved, &mut result__).map(|| core::mem::transmute(result__)) + GetClassFileOrMime(pbc.param().abi(), szfilename.param().abi(), pbuffer.unwrap_or(core::mem::zeroed()) as _, cbsize, szmime.param().abi(), dwreserved, &mut result__).map(|| result__) } } #[inline] @@ -292,7 +292,7 @@ where windows_link::link!("urlmon.dll" "system" fn GetClassURL(szurl : windows_core::PCWSTR, pclsid : *mut windows_core::GUID) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - GetClassURL(szurl.param().abi(), &mut result__).map(|| core::mem::transmute(result__)) + GetClassURL(szurl.param().abi(), &mut result__).map(|| result__) } } #[inline] @@ -300,7 +300,7 @@ pub unsafe fn GetComponentIDFromCLSSPEC(pclassspec: *const super::uCLSSPEC) -> w windows_link::link!("urlmon.dll" "system" fn GetComponentIDFromCLSSPEC(pclassspec : *const super:: uCLSSPEC, ppszcomponentid : *mut windows_core::PSTR) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - GetComponentIDFromCLSSPEC(pclassspec, &mut result__).map(|| core::mem::transmute(result__)) + GetComponentIDFromCLSSPEC(pclassspec, &mut result__).map(|| result__) } } #[inline] @@ -381,7 +381,7 @@ pub unsafe fn IEInstallScope() -> windows_core::Result { windows_link::link!("urlmon.dll" "system" fn IEInstallScope(pdwscope : *mut u32) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - IEInstallScope(&mut result__).map(|| core::mem::transmute(result__)) + IEInstallScope(&mut result__).map(|| result__) } } #[inline] 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 06994e5205..61b29cb6a9 100644 --- a/crates/libs/windows/src/Windows/Win32/System/Com/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/Com/mod.rs @@ -30,7 +30,7 @@ where windows_link::link!("ole32.dll" "system" fn CLSIDFromProgID(lpszprogid : windows_core::PCWSTR, lpclsid : *mut windows_core::GUID) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - CLSIDFromProgID(lpszprogid.param().abi(), &mut result__).map(|| core::mem::transmute(result__)) + CLSIDFromProgID(lpszprogid.param().abi(), &mut result__).map(|| result__) } } #[inline] @@ -41,7 +41,7 @@ where windows_link::link!("ole32.dll" "system" fn CLSIDFromProgIDEx(lpszprogid : windows_core::PCWSTR, lpclsid : *mut windows_core::GUID) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - CLSIDFromProgIDEx(lpszprogid.param().abi(), &mut result__).map(|| core::mem::transmute(result__)) + CLSIDFromProgIDEx(lpszprogid.param().abi(), &mut result__).map(|| result__) } } #[inline] @@ -52,7 +52,7 @@ where windows_link::link!("ole32.dll" "system" fn CLSIDFromString(lpsz : windows_core::PCWSTR, pclsid : *mut windows_core::GUID) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - CLSIDFromString(lpsz.param().abi(), &mut result__).map(|| core::mem::transmute(result__)) + CLSIDFromString(lpsz.param().abi(), &mut result__).map(|| result__) } } #[inline] @@ -110,7 +110,7 @@ pub unsafe fn CoCreateGuid() -> windows_core::Result { windows_link::link!("ole32.dll" "system" fn CoCreateGuid(pguid : *mut windows_core::GUID) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - CoCreateGuid(&mut result__).map(|| core::mem::transmute(result__)) + CoCreateGuid(&mut result__).map(|| result__) } } #[inline] @@ -177,7 +177,7 @@ pub unsafe fn CoFileTimeNow() -> windows_core::Result windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - CoFileTimeNow(&mut result__).map(|| core::mem::transmute(result__)) + CoFileTimeNow(&mut result__).map(|| result__) } } #[inline] @@ -224,7 +224,7 @@ pub unsafe fn CoGetCallerTID() -> windows_core::Result { windows_link::link!("ole32.dll" "system" fn CoGetCallerTID(lpdwtid : *mut u32) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - CoGetCallerTID(&mut result__).map(|| core::mem::transmute(result__)) + CoGetCallerTID(&mut result__).map(|| result__) } } #[inline] @@ -250,7 +250,7 @@ pub unsafe fn CoGetContextToken() -> windows_core::Result { windows_link::link!("ole32.dll" "system" fn CoGetContextToken(ptoken : *mut usize) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - CoGetContextToken(&mut result__).map(|| core::mem::transmute(result__)) + CoGetContextToken(&mut result__).map(|| result__) } } #[inline] @@ -258,7 +258,7 @@ pub unsafe fn CoGetCurrentLogicalThreadId() -> windows_core::Result windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - CoGetCurrentLogicalThreadId(&mut result__).map(|| core::mem::transmute(result__)) + CoGetCurrentLogicalThreadId(&mut result__).map(|| result__) } } #[inline] @@ -298,7 +298,7 @@ pub unsafe fn CoGetPSClsid(riid: *const windows_core::GUID) -> windows_core::Res windows_link::link!("ole32.dll" "system" fn CoGetPSClsid(riid : *const windows_core::GUID, pclsid : *mut windows_core::GUID) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - CoGetPSClsid(riid, &mut result__).map(|| core::mem::transmute(result__)) + CoGetPSClsid(riid, &mut result__).map(|| result__) } } #[cfg(feature = "Win32_Security")] @@ -322,7 +322,7 @@ pub unsafe fn CoIncrementMTAUsage() -> windows_core::Result windows_link::link!("ole32.dll" "system" fn CoIncrementMTAUsage(pcookie : *mut CO_MTA_USAGE_COOKIE) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - CoIncrementMTAUsage(&mut result__).map(|| core::mem::transmute(result__)) + CoIncrementMTAUsage(&mut result__).map(|| result__) } } #[inline] @@ -429,7 +429,7 @@ where windows_link::link!("ole32.dll" "system" fn CoRegisterClassObject(rclsid : *const windows_core::GUID, punk : * mut core::ffi::c_void, dwclscontext : CLSCTX, flags : u32, lpdwregister : *mut u32) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - CoRegisterClassObject(rclsid, punk.param().abi(), dwclscontext, flags.0 as _, &mut result__).map(|| core::mem::transmute(result__)) + CoRegisterClassObject(rclsid, punk.param().abi(), dwclscontext, flags.0 as _, &mut result__).map(|| result__) } } #[inline] @@ -440,7 +440,7 @@ where windows_link::link!("ole32.dll" "system" fn CoRegisterDeviceCatalog(deviceinstanceid : windows_core::PCWSTR, cookie : *mut CO_DEVICE_CATALOG_COOKIE) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - CoRegisterDeviceCatalog(deviceinstanceid.param().abi(), &mut result__).map(|| core::mem::transmute(result__)) + CoRegisterDeviceCatalog(deviceinstanceid.param().abi(), &mut result__).map(|| result__) } } #[inline] @@ -451,7 +451,7 @@ where windows_link::link!("ole32.dll" "system" fn CoRegisterInitializeSpy(pspy : * mut core::ffi::c_void, pulicookie : *mut u64) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - CoRegisterInitializeSpy(pspy.param().abi(), &mut result__).map(|| core::mem::transmute(result__)) + CoRegisterInitializeSpy(pspy.param().abi(), &mut result__).map(|| result__) } } #[inline] @@ -578,7 +578,7 @@ pub unsafe fn CoWaitForMultipleHandles(dwflags: u32, dwtimeout: u32, phandles: & windows_link::link!("ole32.dll" "system" fn CoWaitForMultipleHandles(dwflags : u32, dwtimeout : u32, chandles : u32, phandles : *const super::super::Foundation:: HANDLE, lpdwindex : *mut u32) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - CoWaitForMultipleHandles(dwflags, dwtimeout, phandles.len().try_into().unwrap(), core::mem::transmute(phandles.as_ptr()), &mut result__).map(|| core::mem::transmute(result__)) + CoWaitForMultipleHandles(dwflags, dwtimeout, phandles.len().try_into().unwrap(), core::mem::transmute(phandles.as_ptr()), &mut result__).map(|| result__) } } #[inline] @@ -586,7 +586,7 @@ pub unsafe fn CoWaitForMultipleObjects(dwflags: u32, dwtimeout: u32, phandles: & windows_link::link!("ole32.dll" "system" fn CoWaitForMultipleObjects(dwflags : u32, dwtimeout : u32, chandles : u32, phandles : *const super::super::Foundation:: HANDLE, lpdwindex : *mut u32) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - CoWaitForMultipleObjects(dwflags, dwtimeout, phandles.len().try_into().unwrap(), core::mem::transmute(phandles.as_ptr()), &mut result__).map(|| core::mem::transmute(result__)) + CoWaitForMultipleObjects(dwflags, dwtimeout, phandles.len().try_into().unwrap(), core::mem::transmute(phandles.as_ptr()), &mut result__).map(|| result__) } } #[inline] @@ -758,7 +758,7 @@ where windows_link::link!("ole32.dll" "system" fn GetClassFile(szfilename : windows_core::PCWSTR, pclsid : *mut windows_core::GUID) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - GetClassFile(szfilename.param().abi(), &mut result__).map(|| core::mem::transmute(result__)) + GetClassFile(szfilename.param().abi(), &mut result__).map(|| result__) } } #[inline] @@ -785,7 +785,7 @@ where windows_link::link!("ole32.dll" "system" fn IIDFromString(lpsz : windows_core::PCWSTR, lpiid : *mut windows_core::GUID) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - IIDFromString(lpsz.param().abi(), &mut result__).map(|| core::mem::transmute(result__)) + IIDFromString(lpsz.param().abi(), &mut result__).map(|| result__) } } #[inline] @@ -823,7 +823,7 @@ pub unsafe fn ProgIDFromCLSID(clsid: *const windows_core::GUID) -> windows_core: windows_link::link!("ole32.dll" "system" fn ProgIDFromCLSID(clsid : *const windows_core::GUID, lplpszprogid : *mut windows_core::PWSTR) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - ProgIDFromCLSID(clsid, &mut result__).map(|| core::mem::transmute(result__)) + ProgIDFromCLSID(clsid, &mut result__).map(|| result__) } } #[inline] @@ -839,7 +839,7 @@ pub unsafe fn StringFromCLSID(rclsid: *const windows_core::GUID) -> windows_core windows_link::link!("ole32.dll" "system" fn StringFromCLSID(rclsid : *const windows_core::GUID, lplpsz : *mut windows_core::PWSTR) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - StringFromCLSID(rclsid, &mut result__).map(|| core::mem::transmute(result__)) + StringFromCLSID(rclsid, &mut result__).map(|| result__) } } #[inline] @@ -852,7 +852,7 @@ pub unsafe fn StringFromIID(rclsid: *const windows_core::GUID) -> windows_core:: windows_link::link!("ole32.dll" "system" fn StringFromIID(rclsid : *const windows_core::GUID, lplpsz : *mut windows_core::PWSTR) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - StringFromIID(rclsid, &mut result__).map(|| core::mem::transmute(result__)) + StringFromIID(rclsid, &mut result__).map(|| result__) } } #[repr(transparent)] 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 c2bee2398e..3eb1347b82 100644 --- a/crates/libs/windows/src/Windows/Win32/System/Console/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/Console/mod.rs @@ -50,7 +50,7 @@ pub unsafe fn CreatePseudoConsole(size: COORD, hinput: super::super::Foundation: windows_link::link!("kernel32.dll" "system" fn CreatePseudoConsole(size : COORD, hinput : super::super::Foundation:: HANDLE, houtput : super::super::Foundation:: HANDLE, dwflags : u32, phpc : *mut HPCON) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - CreatePseudoConsole(core::mem::transmute(size), hinput, houtput, dwflags, &mut result__).map(|| core::mem::transmute(result__)) + CreatePseudoConsole(core::mem::transmute(size), hinput, houtput, dwflags, &mut result__).map(|| result__) } } #[inline] 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 bf4b7c88a2..432ed42284 100644 --- a/crates/libs/windows/src/Windows/Win32/System/DeploymentServices/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/DeploymentServices/mod.rs @@ -228,7 +228,7 @@ where windows_link::link!("wdsclientapi.dll" "system" fn WdsCliCreateSession(pwszserver : windows_core::PCWSTR, pcred : *const WDS_CLI_CRED, phsession : *mut super::super::Foundation:: HANDLE) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - WdsCliCreateSession(pwszserver.param().abi(), pcred.unwrap_or(core::mem::zeroed()) as _, &mut result__).map(|| core::mem::transmute(result__)) + WdsCliCreateSession(pwszserver.param().abi(), pcred.unwrap_or(core::mem::zeroed()) as _, &mut result__).map(|| result__) } } #[inline] @@ -236,7 +236,7 @@ pub unsafe fn WdsCliFindFirstImage(hsession: super::super::Foundation::HANDLE) - windows_link::link!("wdsclientapi.dll" "system" fn WdsCliFindFirstImage(hsession : super::super::Foundation:: HANDLE, phfindhandle : *mut super::super::Foundation:: HANDLE) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - WdsCliFindFirstImage(hsession, &mut result__).map(|| core::mem::transmute(result__)) + WdsCliFindFirstImage(hsession, &mut result__).map(|| result__) } } #[inline] @@ -257,7 +257,7 @@ where windows_link::link!("wdsclientapi.dll" "system" fn WdsCliGetDriverQueryXml(pwszwindirpath : windows_core::PCWSTR, ppwszdriverquery : *mut windows_core::PWSTR) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - WdsCliGetDriverQueryXml(pwszwindirpath.param().abi(), &mut result__).map(|| core::mem::transmute(result__)) + WdsCliGetDriverQueryXml(pwszwindirpath.param().abi(), &mut result__).map(|| result__) } } #[inline] @@ -265,7 +265,7 @@ pub unsafe fn WdsCliGetEnumerationFlags(handle: super::super::Foundation::HANDLE windows_link::link!("wdsclientapi.dll" "system" fn WdsCliGetEnumerationFlags(handle : super::super::Foundation:: HANDLE, pdwflags : *mut u32) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - WdsCliGetEnumerationFlags(handle, &mut result__).map(|| core::mem::transmute(result__)) + WdsCliGetEnumerationFlags(handle, &mut result__).map(|| result__) } } #[inline] @@ -273,7 +273,7 @@ pub unsafe fn WdsCliGetImageArchitecture(hifh: super::super::Foundation::HANDLE) windows_link::link!("wdsclientapi.dll" "system" fn WdsCliGetImageArchitecture(hifh : super::super::Foundation:: HANDLE, pdwvalue : *mut CPU_ARCHITECTURE) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - WdsCliGetImageArchitecture(hifh, &mut result__).map(|| core::mem::transmute(result__)) + WdsCliGetImageArchitecture(hifh, &mut result__).map(|| result__) } } #[inline] @@ -281,7 +281,7 @@ pub unsafe fn WdsCliGetImageDescription(hifh: super::super::Foundation::HANDLE) windows_link::link!("wdsclientapi.dll" "system" fn WdsCliGetImageDescription(hifh : super::super::Foundation:: HANDLE, ppwszvalue : *mut windows_core::PWSTR) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - WdsCliGetImageDescription(hifh, &mut result__).map(|| core::mem::transmute(result__)) + WdsCliGetImageDescription(hifh, &mut result__).map(|| result__) } } #[inline] @@ -294,7 +294,7 @@ pub unsafe fn WdsCliGetImageGroup(hifh: super::super::Foundation::HANDLE) -> win windows_link::link!("wdsclientapi.dll" "system" fn WdsCliGetImageGroup(hifh : super::super::Foundation:: HANDLE, ppwszvalue : *mut windows_core::PWSTR) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - WdsCliGetImageGroup(hifh, &mut result__).map(|| core::mem::transmute(result__)) + WdsCliGetImageGroup(hifh, &mut result__).map(|| result__) } } #[inline] @@ -302,7 +302,7 @@ pub unsafe fn WdsCliGetImageHalName(hifh: super::super::Foundation::HANDLE) -> w windows_link::link!("wdsclientapi.dll" "system" fn WdsCliGetImageHalName(hifh : super::super::Foundation:: HANDLE, ppwszvalue : *mut windows_core::PWSTR) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - WdsCliGetImageHalName(hifh, &mut result__).map(|| core::mem::transmute(result__)) + WdsCliGetImageHalName(hifh, &mut result__).map(|| result__) } } #[inline] @@ -310,7 +310,7 @@ pub unsafe fn WdsCliGetImageHandleFromFindHandle(findhandle: super::super::Found windows_link::link!("wdsclientapi.dll" "system" fn WdsCliGetImageHandleFromFindHandle(findhandle : super::super::Foundation:: HANDLE, phimagehandle : *mut super::super::Foundation:: HANDLE) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - WdsCliGetImageHandleFromFindHandle(findhandle, &mut result__).map(|| core::mem::transmute(result__)) + WdsCliGetImageHandleFromFindHandle(findhandle, &mut result__).map(|| result__) } } #[inline] @@ -318,7 +318,7 @@ pub unsafe fn WdsCliGetImageHandleFromTransferHandle(htransfer: super::super::Fo windows_link::link!("wdsclientapi.dll" "system" fn WdsCliGetImageHandleFromTransferHandle(htransfer : super::super::Foundation:: HANDLE, phimagehandle : *mut super::super::Foundation:: HANDLE) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - WdsCliGetImageHandleFromTransferHandle(htransfer, &mut result__).map(|| core::mem::transmute(result__)) + WdsCliGetImageHandleFromTransferHandle(htransfer, &mut result__).map(|| result__) } } #[inline] @@ -326,7 +326,7 @@ pub unsafe fn WdsCliGetImageIndex(hifh: super::super::Foundation::HANDLE) -> win windows_link::link!("wdsclientapi.dll" "system" fn WdsCliGetImageIndex(hifh : super::super::Foundation:: HANDLE, pdwvalue : *mut u32) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - WdsCliGetImageIndex(hifh, &mut result__).map(|| core::mem::transmute(result__)) + WdsCliGetImageIndex(hifh, &mut result__).map(|| result__) } } #[inline] @@ -334,7 +334,7 @@ pub unsafe fn WdsCliGetImageLanguage(hifh: super::super::Foundation::HANDLE) -> windows_link::link!("wdsclientapi.dll" "system" fn WdsCliGetImageLanguage(hifh : super::super::Foundation:: HANDLE, ppwszvalue : *mut windows_core::PWSTR) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - WdsCliGetImageLanguage(hifh, &mut result__).map(|| core::mem::transmute(result__)) + WdsCliGetImageLanguage(hifh, &mut result__).map(|| result__) } } #[inline] @@ -347,7 +347,7 @@ pub unsafe fn WdsCliGetImageLastModifiedTime(hifh: super::super::Foundation::HAN windows_link::link!("wdsclientapi.dll" "system" fn WdsCliGetImageLastModifiedTime(hifh : super::super::Foundation:: HANDLE, ppsystimevalue : *mut *mut super::super::Foundation:: SYSTEMTIME) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - WdsCliGetImageLastModifiedTime(hifh, &mut result__).map(|| core::mem::transmute(result__)) + WdsCliGetImageLastModifiedTime(hifh, &mut result__).map(|| result__) } } #[inline] @@ -355,7 +355,7 @@ pub unsafe fn WdsCliGetImageName(hifh: super::super::Foundation::HANDLE) -> wind windows_link::link!("wdsclientapi.dll" "system" fn WdsCliGetImageName(hifh : super::super::Foundation:: HANDLE, ppwszvalue : *mut windows_core::PWSTR) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - WdsCliGetImageName(hifh, &mut result__).map(|| core::mem::transmute(result__)) + WdsCliGetImageName(hifh, &mut result__).map(|| result__) } } #[inline] @@ -363,7 +363,7 @@ pub unsafe fn WdsCliGetImageNamespace(hifh: super::super::Foundation::HANDLE) -> windows_link::link!("wdsclientapi.dll" "system" fn WdsCliGetImageNamespace(hifh : super::super::Foundation:: HANDLE, ppwszvalue : *mut windows_core::PWSTR) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - WdsCliGetImageNamespace(hifh, &mut result__).map(|| core::mem::transmute(result__)) + WdsCliGetImageNamespace(hifh, &mut result__).map(|| result__) } } #[inline] @@ -376,7 +376,7 @@ pub unsafe fn WdsCliGetImagePath(hifh: super::super::Foundation::HANDLE) -> wind windows_link::link!("wdsclientapi.dll" "system" fn WdsCliGetImagePath(hifh : super::super::Foundation:: HANDLE, ppwszvalue : *mut windows_core::PWSTR) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - WdsCliGetImagePath(hifh, &mut result__).map(|| core::mem::transmute(result__)) + WdsCliGetImagePath(hifh, &mut result__).map(|| result__) } } #[inline] @@ -384,7 +384,7 @@ pub unsafe fn WdsCliGetImageSize(hifh: super::super::Foundation::HANDLE) -> wind windows_link::link!("wdsclientapi.dll" "system" fn WdsCliGetImageSize(hifh : super::super::Foundation:: HANDLE, pullvalue : *mut u64) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - WdsCliGetImageSize(hifh, &mut result__).map(|| core::mem::transmute(result__)) + WdsCliGetImageSize(hifh, &mut result__).map(|| result__) } } #[inline] @@ -392,7 +392,7 @@ pub unsafe fn WdsCliGetImageType(hifh: super::super::Foundation::HANDLE) -> wind windows_link::link!("wdsclientapi.dll" "system" fn WdsCliGetImageType(hifh : super::super::Foundation:: HANDLE, pimagetype : *mut WDS_CLI_IMAGE_TYPE) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - WdsCliGetImageType(hifh, &mut result__).map(|| core::mem::transmute(result__)) + WdsCliGetImageType(hifh, &mut result__).map(|| result__) } } #[inline] @@ -400,7 +400,7 @@ pub unsafe fn WdsCliGetImageVersion(hifh: super::super::Foundation::HANDLE) -> w windows_link::link!("wdsclientapi.dll" "system" fn WdsCliGetImageVersion(hifh : super::super::Foundation:: HANDLE, ppwszvalue : *mut windows_core::PWSTR) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - WdsCliGetImageVersion(hifh, &mut result__).map(|| core::mem::transmute(result__)) + WdsCliGetImageVersion(hifh, &mut result__).map(|| result__) } } #[inline] @@ -408,7 +408,7 @@ pub unsafe fn WdsCliGetTransferSize(hifh: super::super::Foundation::HANDLE) -> w windows_link::link!("wdsclientapi.dll" "system" fn WdsCliGetTransferSize(hifh : super::super::Foundation:: HANDLE, pullvalue : *mut u64) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - WdsCliGetTransferSize(hifh, &mut result__).map(|| core::mem::transmute(result__)) + WdsCliGetTransferSize(hifh, &mut result__).map(|| result__) } } #[inline] @@ -459,7 +459,7 @@ where windows_link::link!("wdsclientapi.dll" "system" fn WdsCliTransferFile(pwszserver : windows_core::PCWSTR, pwsznamespace : windows_core::PCWSTR, pwszremotefilepath : windows_core::PCWSTR, pwszlocalfilepath : windows_core::PCWSTR, dwflags : u32, dwreserved : u32, pfnwdsclicallback : PFN_WdsCliCallback, pvuserdata : *const core::ffi::c_void, phtransfer : *mut super::super::Foundation:: HANDLE) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - WdsCliTransferFile(pwszserver.param().abi(), pwsznamespace.param().abi(), pwszremotefilepath.param().abi(), pwszlocalfilepath.param().abi(), dwflags, dwreserved, pfnwdsclicallback, pvuserdata.unwrap_or(core::mem::zeroed()) as _, &mut result__).map(|| core::mem::transmute(result__)) + WdsCliTransferFile(pwszserver.param().abi(), pwsznamespace.param().abi(), pwszremotefilepath.param().abi(), pwszlocalfilepath.param().abi(), dwflags, dwreserved, pfnwdsclicallback, pvuserdata.unwrap_or(core::mem::zeroed()) as _, &mut result__).map(|| result__) } } #[inline] @@ -470,7 +470,7 @@ where windows_link::link!("wdsclientapi.dll" "system" fn WdsCliTransferImage(himage : super::super::Foundation:: HANDLE, pwszlocalpath : windows_core::PCWSTR, dwflags : u32, dwreserved : u32, pfnwdsclicallback : PFN_WdsCliCallback, pvuserdata : *const core::ffi::c_void, phtransfer : *mut super::super::Foundation:: HANDLE) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - WdsCliTransferImage(himage, pwszlocalpath.param().abi(), dwflags, dwreserved, pfnwdsclicallback, pvuserdata.unwrap_or(core::mem::zeroed()) as _, &mut result__).map(|| core::mem::transmute(result__)) + WdsCliTransferImage(himage, pwszlocalpath.param().abi(), dwflags, dwreserved, pfnwdsclicallback, pvuserdata.unwrap_or(core::mem::zeroed()) as _, &mut result__).map(|| result__) } } #[inline] diff --git a/crates/libs/windows/src/Windows/Win32/System/DeveloperLicensing/mod.rs b/crates/libs/windows/src/Windows/Win32/System/DeveloperLicensing/mod.rs index 00ac0e9f1f..c822a70ec8 100644 --- a/crates/libs/windows/src/Windows/Win32/System/DeveloperLicensing/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/DeveloperLicensing/mod.rs @@ -3,7 +3,7 @@ pub unsafe fn AcquireDeveloperLicense(hwndparent: Option windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - AcquireDeveloperLicense(hwndparent.unwrap_or(core::mem::zeroed()) as _, &mut result__).map(|| core::mem::transmute(result__)) + AcquireDeveloperLicense(hwndparent.unwrap_or(core::mem::zeroed()) as _, &mut result__).map(|| result__) } } #[inline] @@ -11,7 +11,7 @@ pub unsafe fn CheckDeveloperLicense() -> windows_core::Result windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - CheckDeveloperLicense(&mut result__).map(|| core::mem::transmute(result__)) + CheckDeveloperLicense(&mut result__).map(|| result__) } } #[inline] 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 6fe2ef5ad5..c798fba917 100644 --- a/crates/libs/windows/src/Windows/Win32/System/ErrorReporting/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/ErrorReporting/mod.rs @@ -41,7 +41,7 @@ pub unsafe fn WerGetFlags(hprocess: super::super::Foundation::HANDLE) -> windows windows_link::link!("kernel32.dll" "system" fn WerGetFlags(hprocess : super::super::Foundation:: HANDLE, pdwflags : *mut WER_FAULT_REPORTING) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - WerGetFlags(hprocess, &mut result__).map(|| core::mem::transmute(result__)) + WerGetFlags(hprocess, &mut result__).map(|| result__) } } #[inline] @@ -127,7 +127,7 @@ where windows_link::link!("wer.dll" "system" fn WerReportCreate(pwzeventtype : windows_core::PCWSTR, reptype : WER_REPORT_TYPE, preportinformation : *const WER_REPORT_INFORMATION, phreporthandle : *mut HREPORT) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - WerReportCreate(pwzeventtype.param().abi(), reptype, preportinformation.unwrap_or(core::mem::zeroed()) as _, &mut result__).map(|| core::mem::transmute(result__)) + WerReportCreate(pwzeventtype.param().abi(), reptype, preportinformation.unwrap_or(core::mem::zeroed()) as _, &mut result__).map(|| result__) } } #[inline] @@ -185,7 +185,7 @@ pub unsafe fn WerStoreGetReportCount(hreportstore: HREPORTSTORE) -> windows_core windows_link::link!("wer.dll" "system" fn WerStoreGetReportCount(hreportstore : HREPORTSTORE, pdwreportcount : *mut u32) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - WerStoreGetReportCount(hreportstore, &mut result__).map(|| core::mem::transmute(result__)) + WerStoreGetReportCount(hreportstore, &mut result__).map(|| result__) } } #[inline] @@ -193,7 +193,7 @@ pub unsafe fn WerStoreGetSizeOnDisk(hreportstore: HREPORTSTORE) -> windows_core: windows_link::link!("wer.dll" "system" fn WerStoreGetSizeOnDisk(hreportstore : HREPORTSTORE, pqwsizeinbytes : *mut u64) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - WerStoreGetSizeOnDisk(hreportstore, &mut result__).map(|| core::mem::transmute(result__)) + WerStoreGetSizeOnDisk(hreportstore, &mut result__).map(|| result__) } } #[inline] @@ -201,7 +201,7 @@ pub unsafe fn WerStoreOpen(repstoretype: REPORT_STORE_TYPES) -> windows_core::Re windows_link::link!("wer.dll" "system" fn WerStoreOpen(repstoretype : REPORT_STORE_TYPES, phreportstore : *mut HREPORTSTORE) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - WerStoreOpen(repstoretype, &mut result__).map(|| core::mem::transmute(result__)) + WerStoreOpen(repstoretype, &mut result__).map(|| result__) } } #[inline] diff --git a/crates/libs/windows/src/Windows/Win32/System/HostComputeNetwork/mod.rs b/crates/libs/windows/src/Windows/Win32/System/HostComputeNetwork/mod.rs index a7d6ea009a..6f09ded04d 100644 --- a/crates/libs/windows/src/Windows/Win32/System/HostComputeNetwork/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/HostComputeNetwork/mod.rs @@ -258,7 +258,7 @@ pub unsafe fn HcnReserveGuestNetworkServicePort(guestnetworkservice: *const core windows_link::link!("computenetwork.dll" "system" fn HcnReserveGuestNetworkServicePort(guestnetworkservice : *const core::ffi::c_void, protocol : HCN_PORT_PROTOCOL, access : HCN_PORT_ACCESS, port : u16, portreservationhandle : *mut super::super::Foundation:: HANDLE) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - HcnReserveGuestNetworkServicePort(guestnetworkservice, protocol, access, port, &mut result__).map(|| core::mem::transmute(result__)) + HcnReserveGuestNetworkServicePort(guestnetworkservice, protocol, access, port, &mut result__).map(|| result__) } } #[inline] diff --git a/crates/libs/windows/src/Windows/Win32/System/HostComputeSystem/mod.rs b/crates/libs/windows/src/Windows/Win32/System/HostComputeSystem/mod.rs index 2558cf7dff..de15039087 100644 --- a/crates/libs/windows/src/Windows/Win32/System/HostComputeSystem/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/HostComputeSystem/mod.rs @@ -53,7 +53,7 @@ where windows_link::link!("computecore.dll" "system" fn HcsCreateComputeSystem(id : windows_core::PCWSTR, configuration : windows_core::PCWSTR, operation : HCS_OPERATION, securitydescriptor : *const super::super::Security:: SECURITY_DESCRIPTOR, computesystem : *mut HCS_SYSTEM) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - HcsCreateComputeSystem(id.param().abi(), configuration.param().abi(), operation, securitydescriptor.unwrap_or(core::mem::zeroed()) as _, &mut result__).map(|| core::mem::transmute(result__)) + HcsCreateComputeSystem(id.param().abi(), configuration.param().abi(), operation, securitydescriptor.unwrap_or(core::mem::zeroed()) as _, &mut result__).map(|| result__) } } #[inline] @@ -66,7 +66,7 @@ where windows_link::link!("computecore.dll" "system" fn HcsCreateComputeSystemInNamespace(idnamespace : windows_core::PCWSTR, id : windows_core::PCWSTR, configuration : windows_core::PCWSTR, operation : HCS_OPERATION, options : *const HCS_CREATE_OPTIONS, computesystem : *mut HCS_SYSTEM) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - HcsCreateComputeSystemInNamespace(idnamespace.param().abi(), id.param().abi(), configuration.param().abi(), operation, options.unwrap_or(core::mem::zeroed()) as _, &mut result__).map(|| core::mem::transmute(result__)) + HcsCreateComputeSystemInNamespace(idnamespace.param().abi(), id.param().abi(), configuration.param().abi(), operation, options.unwrap_or(core::mem::zeroed()) as _, &mut result__).map(|| result__) } } #[inline] @@ -104,7 +104,7 @@ where windows_link::link!("computecore.dll" "system" fn HcsCreateProcess(computesystem : HCS_SYSTEM, processparameters : windows_core::PCWSTR, operation : HCS_OPERATION, securitydescriptor : *const super::super::Security:: SECURITY_DESCRIPTOR, process : *mut HCS_PROCESS) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - HcsCreateProcess(computesystem, processparameters.param().abi(), operation, securitydescriptor.unwrap_or(core::mem::zeroed()) as _, &mut result__).map(|| core::mem::transmute(result__)) + HcsCreateProcess(computesystem, processparameters.param().abi(), operation, securitydescriptor.unwrap_or(core::mem::zeroed()) as _, &mut result__).map(|| result__) } } #[inline] @@ -185,7 +185,7 @@ pub unsafe fn HcsGetLayerVhdMountPath(vhdhandle: super::super::Foundation::HANDL windows_link::link!("computestorage.dll" "system" fn HcsGetLayerVhdMountPath(vhdhandle : super::super::Foundation:: HANDLE, mountpath : *mut windows_core::PWSTR) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - HcsGetLayerVhdMountPath(vhdhandle, &mut result__).map(|| core::mem::transmute(result__)) + HcsGetLayerVhdMountPath(vhdhandle, &mut result__).map(|| result__) } } #[inline] @@ -247,7 +247,7 @@ where windows_link::link!("computecore.dll" "system" fn HcsGetServiceProperties(propertyquery : windows_core::PCWSTR, result : *mut windows_core::PWSTR) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - HcsGetServiceProperties(propertyquery.param().abi(), &mut result__).map(|| core::mem::transmute(result__)) + HcsGetServiceProperties(propertyquery.param().abi(), &mut result__).map(|| result__) } } #[inline] @@ -330,7 +330,7 @@ where windows_link::link!("computecore.dll" "system" fn HcsOpenComputeSystem(id : windows_core::PCWSTR, requestedaccess : u32, computesystem : *mut HCS_SYSTEM) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - HcsOpenComputeSystem(id.param().abi(), requestedaccess, &mut result__).map(|| core::mem::transmute(result__)) + HcsOpenComputeSystem(id.param().abi(), requestedaccess, &mut result__).map(|| result__) } } #[inline] @@ -342,7 +342,7 @@ where windows_link::link!("computecore.dll" "system" fn HcsOpenComputeSystemInNamespace(idnamespace : windows_core::PCWSTR, id : windows_core::PCWSTR, requestedaccess : u32, computesystem : *mut HCS_SYSTEM) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - HcsOpenComputeSystemInNamespace(idnamespace.param().abi(), id.param().abi(), requestedaccess, &mut result__).map(|| core::mem::transmute(result__)) + HcsOpenComputeSystemInNamespace(idnamespace.param().abi(), id.param().abi(), requestedaccess, &mut result__).map(|| result__) } } #[inline] @@ -350,7 +350,7 @@ pub unsafe fn HcsOpenProcess(computesystem: HCS_SYSTEM, processid: u32, requeste windows_link::link!("computecore.dll" "system" fn HcsOpenProcess(computesystem : HCS_SYSTEM, processid : u32, requestedaccess : u32, process : *mut HCS_PROCESS) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - HcsOpenProcess(computesystem, processid, requestedaccess, &mut result__).map(|| core::mem::transmute(result__)) + HcsOpenProcess(computesystem, processid, requestedaccess, &mut result__).map(|| result__) } } #[inline] 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 6c1bb9be6c..e66fd1660f 100644 --- a/crates/libs/windows/src/Windows/Win32/System/Hypervisor/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/Hypervisor/mod.rs @@ -326,7 +326,7 @@ pub unsafe fn WHvAcceptPartitionMigration(migrationhandle: super::super::Foundat windows_link::link!("winhvplatform.dll" "system" fn WHvAcceptPartitionMigration(migrationhandle : super::super::Foundation:: HANDLE, partition : *mut WHV_PARTITION_HANDLE) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - WHvAcceptPartitionMigration(migrationhandle, &mut result__).map(|| core::mem::transmute(result__)) + WHvAcceptPartitionMigration(migrationhandle, &mut result__).map(|| result__) } } #[inline] @@ -339,7 +339,7 @@ pub unsafe fn WHvAllocateVpciResource(providerid: Option<*const windows_core::GU windows_link::link!("winhvplatform.dll" "system" fn WHvAllocateVpciResource(providerid : *const windows_core::GUID, flags : WHV_ALLOCATE_VPCI_RESOURCE_FLAGS, resourcedescriptor : *const core::ffi::c_void, resourcedescriptorsizeinbytes : u32, vpciresource : *mut super::super::Foundation:: HANDLE) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - WHvAllocateVpciResource(providerid.unwrap_or(core::mem::zeroed()) as _, flags, core::mem::transmute(resourcedescriptor.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), resourcedescriptor.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), &mut result__).map(|| core::mem::transmute(result__)) + WHvAllocateVpciResource(providerid.unwrap_or(core::mem::zeroed()) as _, flags, core::mem::transmute(resourcedescriptor.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), resourcedescriptor.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), &mut result__).map(|| result__) } } #[inline] @@ -367,7 +367,7 @@ pub unsafe fn WHvCreatePartition() -> windows_core::Result windows_link::link!("winhvplatform.dll" "system" fn WHvCreatePartition(partition : *mut WHV_PARTITION_HANDLE) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - WHvCreatePartition(&mut result__).map(|| core::mem::transmute(result__)) + WHvCreatePartition(&mut result__).map(|| result__) } } #[inline] @@ -430,7 +430,7 @@ pub unsafe fn WHvEmulatorTryIoEmulation(emulator: *const core::ffi::c_void, cont windows_link::link!("winhvemulation.dll" "system" fn WHvEmulatorTryIoEmulation(emulator : *const core::ffi::c_void, context : *const core::ffi::c_void, vpcontext : *const WHV_VP_EXIT_CONTEXT, ioinstructioncontext : *const WHV_X64_IO_PORT_ACCESS_CONTEXT, emulatorreturnstatus : *mut WHV_EMULATOR_STATUS) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - WHvEmulatorTryIoEmulation(emulator, context, vpcontext, ioinstructioncontext, &mut result__).map(|| core::mem::transmute(result__)) + WHvEmulatorTryIoEmulation(emulator, context, vpcontext, ioinstructioncontext, &mut result__).map(|| result__) } } #[inline] @@ -438,7 +438,7 @@ pub unsafe fn WHvEmulatorTryMmioEmulation(emulator: *const core::ffi::c_void, co windows_link::link!("winhvemulation.dll" "system" fn WHvEmulatorTryMmioEmulation(emulator : *const core::ffi::c_void, context : *const core::ffi::c_void, vpcontext : *const WHV_VP_EXIT_CONTEXT, mmioinstructioncontext : *const WHV_MEMORY_ACCESS_CONTEXT, emulatorreturnstatus : *mut WHV_EMULATOR_STATUS) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - WHvEmulatorTryMmioEmulation(emulator, context, vpcontext, mmioinstructioncontext, &mut result__).map(|| core::mem::transmute(result__)) + WHvEmulatorTryMmioEmulation(emulator, context, vpcontext, mmioinstructioncontext, &mut result__).map(|| result__) } } #[inline] @@ -471,7 +471,7 @@ pub unsafe fn WHvGetVirtualProcessorCpuidOutput(partition: WHV_PARTITION_HANDLE, windows_link::link!("winhvplatform.dll" "system" fn WHvGetVirtualProcessorCpuidOutput(partition : WHV_PARTITION_HANDLE, vpindex : u32, eax : u32, ecx : u32, cpuidoutput : *mut WHV_CPUID_OUTPUT) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - WHvGetVirtualProcessorCpuidOutput(partition, vpindex, eax, ecx, &mut result__).map(|| core::mem::transmute(result__)) + WHvGetVirtualProcessorCpuidOutput(partition, vpindex, eax, ecx, &mut result__).map(|| result__) } } #[inline] @@ -645,7 +645,7 @@ pub unsafe fn WHvStartPartitionMigration(partition: WHV_PARTITION_HANDLE) -> win windows_link::link!("winhvplatform.dll" "system" fn WHvStartPartitionMigration(partition : WHV_PARTITION_HANDLE, migrationhandle : *mut super::super::Foundation:: HANDLE) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - WHvStartPartitionMigration(partition, &mut result__).map(|| core::mem::transmute(result__)) + WHvStartPartitionMigration(partition, &mut result__).map(|| result__) } } #[inline] diff --git a/crates/libs/windows/src/Windows/Win32/System/MessageQueuing/mod.rs b/crates/libs/windows/src/Windows/Win32/System/MessageQueuing/mod.rs index eece346bca..c43d9da42b 100644 --- a/crates/libs/windows/src/Windows/Win32/System/MessageQueuing/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/MessageQueuing/mod.rs @@ -30,7 +30,7 @@ pub unsafe fn MQCreateCursor(hqueue: isize) -> windows_core::Result windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - MQCreateCursor(hqueue, &mut result__).map(|| core::mem::transmute(result__)) + MQCreateCursor(hqueue, &mut result__).map(|| result__) } } #[cfg(all(feature = "Win32_Security", feature = "Win32_System_Com_StructuredStorage", feature = "Win32_System_Variant"))] @@ -104,7 +104,7 @@ pub unsafe fn MQGetSecurityContext(lpcertbuffer: Option<*const core::ffi::c_void windows_link::link!("mqrt.dll" "system" fn MQGetSecurityContext(lpcertbuffer : *const core::ffi::c_void, dwcertbufferlength : u32, phsecuritycontext : *mut super::super::Foundation:: HANDLE) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - MQGetSecurityContext(lpcertbuffer.unwrap_or(core::mem::zeroed()) as _, dwcertbufferlength, &mut result__).map(|| core::mem::transmute(result__)) + MQGetSecurityContext(lpcertbuffer.unwrap_or(core::mem::zeroed()) as _, dwcertbufferlength, &mut result__).map(|| result__) } } #[inline] @@ -112,7 +112,7 @@ pub unsafe fn MQGetSecurityContextEx(lpcertbuffer: Option<*const core::ffi::c_vo windows_link::link!("mqrt.dll" "system" fn MQGetSecurityContextEx(lpcertbuffer : *const core::ffi::c_void, dwcertbufferlength : u32, phsecuritycontext : *mut super::super::Foundation:: HANDLE) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - MQGetSecurityContextEx(lpcertbuffer.unwrap_or(core::mem::zeroed()) as _, dwcertbufferlength, &mut result__).map(|| core::mem::transmute(result__)) + MQGetSecurityContextEx(lpcertbuffer.unwrap_or(core::mem::zeroed()) as _, dwcertbufferlength, &mut result__).map(|| result__) } } #[inline] @@ -134,7 +134,7 @@ where windows_link::link!("mqrt.dll" "system" fn MQLocateBegin(lpwcscontext : windows_core::PCWSTR, prestriction : *const MQRESTRICTION, pcolumns : *const MQCOLUMNSET, psort : *const MQSORTSET, phenum : *mut super::super::Foundation:: HANDLE) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - MQLocateBegin(lpwcscontext.param().abi(), prestriction.unwrap_or(core::mem::zeroed()) as _, pcolumns, psort, &mut result__).map(|| core::mem::transmute(result__)) + MQLocateBegin(lpwcscontext.param().abi(), prestriction.unwrap_or(core::mem::zeroed()) as _, pcolumns, psort, &mut result__).map(|| result__) } } #[inline] @@ -190,7 +190,7 @@ where windows_link::link!("mqrt.dll" "system" fn MQOpenQueue(lpwcsformatname : windows_core::PCWSTR, dwaccess : u32, dwsharemode : u32, phqueue : *mut isize) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - MQOpenQueue(lpwcsformatname.param().abi(), dwaccess, dwsharemode, &mut result__).map(|| core::mem::transmute(result__)) + MQOpenQueue(lpwcsformatname.param().abi(), dwaccess, dwsharemode, &mut result__).map(|| result__) } } #[inline] 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 bb773807a5..8e05000e57 100644 --- a/crates/libs/windows/src/Windows/Win32/System/Ole/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/Ole/mod.rs @@ -122,7 +122,7 @@ pub unsafe fn GetAltMonthNames(lcid: u32) -> windows_core::Result<*mut windows_c windows_link::link!("oleaut32.dll" "system" fn GetAltMonthNames(lcid : u32, prgp : *mut *mut windows_core::PWSTR) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - GetAltMonthNames(lcid, &mut result__).map(|| core::mem::transmute(result__)) + GetAltMonthNames(lcid, &mut result__).map(|| result__) } } #[inline] @@ -497,7 +497,7 @@ where windows_link::link!("ole32.dll" "system" fn OleDoAutoConvert(pstg : * mut core::ffi::c_void, pclsidnew : *mut windows_core::GUID) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - OleDoAutoConvert(pstg.param().abi(), &mut result__).map(|| core::mem::transmute(result__)) + OleDoAutoConvert(pstg.param().abi(), &mut result__).map(|| result__) } } #[cfg(feature = "Win32_Graphics_Gdi")] @@ -525,7 +525,7 @@ pub unsafe fn OleGetAutoConvert(clsidold: *const windows_core::GUID) -> windows_ windows_link::link!("ole32.dll" "system" fn OleGetAutoConvert(clsidold : *const windows_core::GUID, pclsidnew : *mut windows_core::GUID) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - OleGetAutoConvert(clsidold, &mut result__).map(|| core::mem::transmute(result__)) + OleGetAutoConvert(clsidold, &mut result__).map(|| result__) } } #[cfg(feature = "Win32_System_Com")] @@ -718,7 +718,7 @@ pub unsafe fn OleRegGetMiscStatus(clsid: *const windows_core::GUID, dwaspect: u3 windows_link::link!("ole32.dll" "system" fn OleRegGetMiscStatus(clsid : *const windows_core::GUID, dwaspect : u32, pdwstatus : *mut u32) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - OleRegGetMiscStatus(clsid, dwaspect, &mut result__).map(|| core::mem::transmute(result__)) + OleRegGetMiscStatus(clsid, dwaspect, &mut result__).map(|| result__) } } #[inline] @@ -726,7 +726,7 @@ pub unsafe fn OleRegGetUserType(clsid: *const windows_core::GUID, dwformoftype: windows_link::link!("ole32.dll" "system" fn OleRegGetUserType(clsid : *const windows_core::GUID, dwformoftype : u32, pszusertype : *mut windows_core::PWSTR) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - OleRegGetUserType(clsid, dwformoftype.0 as _, &mut result__).map(|| core::mem::transmute(result__)) + OleRegGetUserType(clsid, dwformoftype.0 as _, &mut result__).map(|| result__) } } #[inline] @@ -812,7 +812,7 @@ pub unsafe fn OleTranslateColor(clr: u32, hpal: super::super::Graphics::Gdi::HPA windows_link::link!("oleaut32.dll" "system" fn OleTranslateColor(clr : u32, hpal : super::super::Graphics::Gdi:: HPALETTE, lpcolorref : *mut super::super::Foundation:: COLORREF) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - OleTranslateColor(clr, hpal, &mut result__).map(|| core::mem::transmute(result__)) + OleTranslateColor(clr, hpal, &mut result__).map(|| result__) } } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] @@ -1049,7 +1049,7 @@ pub unsafe fn SafeArrayAllocDescriptor(cdims: u32) -> windows_core::Result<*mut windows_link::link!("oleaut32.dll" "system" fn SafeArrayAllocDescriptor(cdims : u32, ppsaout : *mut *mut super::Com:: SAFEARRAY) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - SafeArrayAllocDescriptor(cdims, &mut result__).map(|| core::mem::transmute(result__)) + SafeArrayAllocDescriptor(cdims, &mut result__).map(|| result__) } } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Variant"))] @@ -1058,7 +1058,7 @@ pub unsafe fn SafeArrayAllocDescriptorEx(vt: super::Variant::VARENUM, cdims: u32 windows_link::link!("oleaut32.dll" "system" fn SafeArrayAllocDescriptorEx(vt : super::Variant:: VARENUM, cdims : u32, ppsaout : *mut *mut super::Com:: SAFEARRAY) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - SafeArrayAllocDescriptorEx(vt, cdims, &mut result__).map(|| core::mem::transmute(result__)) + SafeArrayAllocDescriptorEx(vt, cdims, &mut result__).map(|| result__) } } #[cfg(feature = "Win32_System_Com")] @@ -1067,7 +1067,7 @@ pub unsafe fn SafeArrayCopy(psa: *const super::Com::SAFEARRAY) -> windows_core:: windows_link::link!("oleaut32.dll" "system" fn SafeArrayCopy(psa : *const super::Com:: SAFEARRAY, ppsaout : *mut *mut super::Com:: SAFEARRAY) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - SafeArrayCopy(psa, &mut result__).map(|| core::mem::transmute(result__)) + SafeArrayCopy(psa, &mut result__).map(|| result__) } } #[cfg(feature = "Win32_System_Com")] @@ -1142,7 +1142,7 @@ pub unsafe fn SafeArrayGetIID(psa: *const super::Com::SAFEARRAY) -> windows_core windows_link::link!("oleaut32.dll" "system" fn SafeArrayGetIID(psa : *const super::Com:: SAFEARRAY, pguid : *mut windows_core::GUID) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - SafeArrayGetIID(psa, &mut result__).map(|| core::mem::transmute(result__)) + SafeArrayGetIID(psa, &mut result__).map(|| result__) } } #[cfg(feature = "Win32_System_Com")] @@ -1151,7 +1151,7 @@ pub unsafe fn SafeArrayGetLBound(psa: *const super::Com::SAFEARRAY, ndim: u32) - windows_link::link!("oleaut32.dll" "system" fn SafeArrayGetLBound(psa : *const super::Com:: SAFEARRAY, ndim : u32, pllbound : *mut i32) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - SafeArrayGetLBound(psa, ndim, &mut result__).map(|| core::mem::transmute(result__)) + SafeArrayGetLBound(psa, ndim, &mut result__).map(|| result__) } } #[cfg(feature = "Win32_System_Com")] @@ -1169,7 +1169,7 @@ pub unsafe fn SafeArrayGetUBound(psa: *const super::Com::SAFEARRAY, ndim: u32) - windows_link::link!("oleaut32.dll" "system" fn SafeArrayGetUBound(psa : *const super::Com:: SAFEARRAY, ndim : u32, plubound : *mut i32) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - SafeArrayGetUBound(psa, ndim, &mut result__).map(|| core::mem::transmute(result__)) + SafeArrayGetUBound(psa, ndim, &mut result__).map(|| result__) } } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Variant"))] @@ -1178,7 +1178,7 @@ pub unsafe fn SafeArrayGetVartype(psa: *const super::Com::SAFEARRAY) -> windows_ windows_link::link!("oleaut32.dll" "system" fn SafeArrayGetVartype(psa : *const super::Com:: SAFEARRAY, pvt : *mut super::Variant:: VARENUM) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - SafeArrayGetVartype(psa, &mut result__).map(|| core::mem::transmute(result__)) + SafeArrayGetVartype(psa, &mut result__).map(|| result__) } } #[cfg(feature = "Win32_System_Com")] @@ -1288,7 +1288,7 @@ pub unsafe fn VarBoolFromCy(cyin: super::Com::CY) -> windows_core::Result windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - VarBoolFromCy(core::mem::transmute(cyin), &mut result__).map(|| core::mem::transmute(result__)) + VarBoolFromCy(core::mem::transmute(cyin), &mut result__).map(|| result__) } } #[inline] @@ -1296,7 +1296,7 @@ pub unsafe fn VarBoolFromDate(datein: f64) -> windows_core::Result windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - VarBoolFromDate(datein, &mut result__).map(|| core::mem::transmute(result__)) + VarBoolFromDate(datein, &mut result__).map(|| result__) } } #[inline] @@ -1304,7 +1304,7 @@ pub unsafe fn VarBoolFromDec(pdecin: *const super::super::Foundation::DECIMAL) - windows_link::link!("oleaut32.dll" "system" fn VarBoolFromDec(pdecin : *const super::super::Foundation:: DECIMAL, pboolout : *mut super::super::Foundation:: VARIANT_BOOL) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - VarBoolFromDec(pdecin, &mut result__).map(|| core::mem::transmute(result__)) + VarBoolFromDec(pdecin, &mut result__).map(|| result__) } } #[cfg(feature = "Win32_System_Com")] @@ -1316,7 +1316,7 @@ where windows_link::link!("oleaut32.dll" "system" fn VarBoolFromDisp(pdispin : * mut core::ffi::c_void, lcid : u32, pboolout : *mut super::super::Foundation:: VARIANT_BOOL) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - VarBoolFromDisp(pdispin.param().abi(), lcid, &mut result__).map(|| core::mem::transmute(result__)) + VarBoolFromDisp(pdispin.param().abi(), lcid, &mut result__).map(|| result__) } } #[inline] @@ -1324,7 +1324,7 @@ pub unsafe fn VarBoolFromI1(cin: i8) -> windows_core::Result windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - VarBoolFromI1(cin, &mut result__).map(|| core::mem::transmute(result__)) + VarBoolFromI1(cin, &mut result__).map(|| result__) } } #[inline] @@ -1332,7 +1332,7 @@ pub unsafe fn VarBoolFromI2(sin: i16) -> windows_core::Result windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - VarBoolFromI2(sin, &mut result__).map(|| core::mem::transmute(result__)) + VarBoolFromI2(sin, &mut result__).map(|| result__) } } #[inline] @@ -1340,7 +1340,7 @@ pub unsafe fn VarBoolFromI4(lin: i32) -> windows_core::Result windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - VarBoolFromI4(lin, &mut result__).map(|| core::mem::transmute(result__)) + VarBoolFromI4(lin, &mut result__).map(|| result__) } } #[inline] @@ -1348,7 +1348,7 @@ pub unsafe fn VarBoolFromI8(i64in: i64) -> windows_core::Result windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - VarBoolFromI8(i64in, &mut result__).map(|| core::mem::transmute(result__)) + VarBoolFromI8(i64in, &mut result__).map(|| result__) } } #[inline] @@ -1356,7 +1356,7 @@ pub unsafe fn VarBoolFromR4(fltin: f32) -> windows_core::Result windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - VarBoolFromR4(fltin, &mut result__).map(|| core::mem::transmute(result__)) + VarBoolFromR4(fltin, &mut result__).map(|| result__) } } #[inline] @@ -1364,7 +1364,7 @@ pub unsafe fn VarBoolFromR8(dblin: f64) -> windows_core::Result windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - VarBoolFromR8(dblin, &mut result__).map(|| core::mem::transmute(result__)) + VarBoolFromR8(dblin, &mut result__).map(|| result__) } } #[inline] @@ -1375,7 +1375,7 @@ where windows_link::link!("oleaut32.dll" "system" fn VarBoolFromStr(strin : windows_core::PCWSTR, lcid : u32, dwflags : u32, pboolout : *mut super::super::Foundation:: VARIANT_BOOL) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - VarBoolFromStr(strin.param().abi(), lcid, dwflags, &mut result__).map(|| core::mem::transmute(result__)) + VarBoolFromStr(strin.param().abi(), lcid, dwflags, &mut result__).map(|| result__) } } #[inline] @@ -1383,7 +1383,7 @@ pub unsafe fn VarBoolFromUI1(bin: u8) -> windows_core::Result windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - VarBoolFromUI1(bin, &mut result__).map(|| core::mem::transmute(result__)) + VarBoolFromUI1(bin, &mut result__).map(|| result__) } } #[inline] @@ -1391,7 +1391,7 @@ pub unsafe fn VarBoolFromUI2(uiin: u16) -> windows_core::Result windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - VarBoolFromUI2(uiin, &mut result__).map(|| core::mem::transmute(result__)) + VarBoolFromUI2(uiin, &mut result__).map(|| result__) } } #[inline] @@ -1399,7 +1399,7 @@ pub unsafe fn VarBoolFromUI4(ulin: u32) -> windows_core::Result windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - VarBoolFromUI4(ulin, &mut result__).map(|| core::mem::transmute(result__)) + VarBoolFromUI4(ulin, &mut result__).map(|| result__) } } #[inline] @@ -1407,7 +1407,7 @@ pub unsafe fn VarBoolFromUI8(i64in: u64) -> windows_core::Result windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - VarBoolFromUI8(i64in, &mut result__).map(|| core::mem::transmute(result__)) + VarBoolFromUI8(i64in, &mut result__).map(|| result__) } } #[inline] @@ -1569,7 +1569,7 @@ pub unsafe fn VarCyAbs(cyin: super::Com::CY) -> windows_core::Result windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - VarCyAbs(core::mem::transmute(cyin), &mut result__).map(|| core::mem::transmute(result__)) + VarCyAbs(core::mem::transmute(cyin), &mut result__).map(|| result__) } } #[cfg(feature = "Win32_System_Com")] @@ -1578,7 +1578,7 @@ pub unsafe fn VarCyAdd(cyleft: super::Com::CY, cyright: super::Com::CY) -> windo windows_link::link!("oleaut32.dll" "system" fn VarCyAdd(cyleft : super::Com:: CY, cyright : super::Com:: CY, pcyresult : *mut super::Com:: CY) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - VarCyAdd(core::mem::transmute(cyleft), core::mem::transmute(cyright), &mut result__).map(|| core::mem::transmute(result__)) + VarCyAdd(core::mem::transmute(cyleft), core::mem::transmute(cyright), &mut result__).map(|| result__) } } #[cfg(feature = "Win32_System_Com")] @@ -1599,7 +1599,7 @@ pub unsafe fn VarCyFix(cyin: super::Com::CY) -> windows_core::Result windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - VarCyFix(core::mem::transmute(cyin), &mut result__).map(|| core::mem::transmute(result__)) + VarCyFix(core::mem::transmute(cyin), &mut result__).map(|| result__) } } #[cfg(feature = "Win32_System_Com")] @@ -1608,7 +1608,7 @@ pub unsafe fn VarCyFromBool(boolin: super::super::Foundation::VARIANT_BOOL) -> w windows_link::link!("oleaut32.dll" "system" fn VarCyFromBool(boolin : super::super::Foundation:: VARIANT_BOOL, pcyout : *mut super::Com:: CY) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - VarCyFromBool(boolin, &mut result__).map(|| core::mem::transmute(result__)) + VarCyFromBool(boolin, &mut result__).map(|| result__) } } #[cfg(feature = "Win32_System_Com")] @@ -1617,7 +1617,7 @@ pub unsafe fn VarCyFromDate(datein: f64) -> windows_core::Result windows_link::link!("oleaut32.dll" "system" fn VarCyFromDate(datein : f64, pcyout : *mut super::Com:: CY) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - VarCyFromDate(datein, &mut result__).map(|| core::mem::transmute(result__)) + VarCyFromDate(datein, &mut result__).map(|| result__) } } #[cfg(feature = "Win32_System_Com")] @@ -1626,7 +1626,7 @@ pub unsafe fn VarCyFromDec(pdecin: *const super::super::Foundation::DECIMAL) -> windows_link::link!("oleaut32.dll" "system" fn VarCyFromDec(pdecin : *const super::super::Foundation:: DECIMAL, pcyout : *mut super::Com:: CY) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - VarCyFromDec(pdecin, &mut result__).map(|| core::mem::transmute(result__)) + VarCyFromDec(pdecin, &mut result__).map(|| result__) } } #[cfg(feature = "Win32_System_Com")] @@ -1638,7 +1638,7 @@ where windows_link::link!("oleaut32.dll" "system" fn VarCyFromDisp(pdispin : * mut core::ffi::c_void, lcid : u32, pcyout : *mut super::Com:: CY) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - VarCyFromDisp(pdispin.param().abi(), lcid, &mut result__).map(|| core::mem::transmute(result__)) + VarCyFromDisp(pdispin.param().abi(), lcid, &mut result__).map(|| result__) } } #[cfg(feature = "Win32_System_Com")] @@ -1647,7 +1647,7 @@ pub unsafe fn VarCyFromI1(cin: i8) -> windows_core::Result { windows_link::link!("oleaut32.dll" "system" fn VarCyFromI1(cin : i8, pcyout : *mut super::Com:: CY) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - VarCyFromI1(cin, &mut result__).map(|| core::mem::transmute(result__)) + VarCyFromI1(cin, &mut result__).map(|| result__) } } #[cfg(feature = "Win32_System_Com")] @@ -1656,7 +1656,7 @@ pub unsafe fn VarCyFromI2(sin: i16) -> windows_core::Result { windows_link::link!("oleaut32.dll" "system" fn VarCyFromI2(sin : i16, pcyout : *mut super::Com:: CY) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - VarCyFromI2(sin, &mut result__).map(|| core::mem::transmute(result__)) + VarCyFromI2(sin, &mut result__).map(|| result__) } } #[cfg(feature = "Win32_System_Com")] @@ -1665,7 +1665,7 @@ pub unsafe fn VarCyFromI4(lin: i32) -> windows_core::Result { windows_link::link!("oleaut32.dll" "system" fn VarCyFromI4(lin : i32, pcyout : *mut super::Com:: CY) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - VarCyFromI4(lin, &mut result__).map(|| core::mem::transmute(result__)) + VarCyFromI4(lin, &mut result__).map(|| result__) } } #[cfg(feature = "Win32_System_Com")] @@ -1674,7 +1674,7 @@ pub unsafe fn VarCyFromI8(i64in: i64) -> windows_core::Result { windows_link::link!("oleaut32.dll" "system" fn VarCyFromI8(i64in : i64, pcyout : *mut super::Com:: CY) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - VarCyFromI8(i64in, &mut result__).map(|| core::mem::transmute(result__)) + VarCyFromI8(i64in, &mut result__).map(|| result__) } } #[cfg(feature = "Win32_System_Com")] @@ -1683,7 +1683,7 @@ pub unsafe fn VarCyFromR4(fltin: f32) -> windows_core::Result { windows_link::link!("oleaut32.dll" "system" fn VarCyFromR4(fltin : f32, pcyout : *mut super::Com:: CY) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - VarCyFromR4(fltin, &mut result__).map(|| core::mem::transmute(result__)) + VarCyFromR4(fltin, &mut result__).map(|| result__) } } #[cfg(feature = "Win32_System_Com")] @@ -1692,7 +1692,7 @@ pub unsafe fn VarCyFromR8(dblin: f64) -> windows_core::Result { windows_link::link!("oleaut32.dll" "system" fn VarCyFromR8(dblin : f64, pcyout : *mut super::Com:: CY) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - VarCyFromR8(dblin, &mut result__).map(|| core::mem::transmute(result__)) + VarCyFromR8(dblin, &mut result__).map(|| result__) } } #[cfg(feature = "Win32_System_Com")] @@ -1704,7 +1704,7 @@ where windows_link::link!("oleaut32.dll" "system" fn VarCyFromStr(strin : windows_core::PCWSTR, lcid : u32, dwflags : u32, pcyout : *mut super::Com:: CY) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - VarCyFromStr(strin.param().abi(), lcid, dwflags, &mut result__).map(|| core::mem::transmute(result__)) + VarCyFromStr(strin.param().abi(), lcid, dwflags, &mut result__).map(|| result__) } } #[cfg(feature = "Win32_System_Com")] @@ -1713,7 +1713,7 @@ pub unsafe fn VarCyFromUI1(bin: u8) -> windows_core::Result { windows_link::link!("oleaut32.dll" "system" fn VarCyFromUI1(bin : u8, pcyout : *mut super::Com:: CY) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - VarCyFromUI1(bin, &mut result__).map(|| core::mem::transmute(result__)) + VarCyFromUI1(bin, &mut result__).map(|| result__) } } #[cfg(feature = "Win32_System_Com")] @@ -1722,7 +1722,7 @@ pub unsafe fn VarCyFromUI2(uiin: u16) -> windows_core::Result { windows_link::link!("oleaut32.dll" "system" fn VarCyFromUI2(uiin : u16, pcyout : *mut super::Com:: CY) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - VarCyFromUI2(uiin, &mut result__).map(|| core::mem::transmute(result__)) + VarCyFromUI2(uiin, &mut result__).map(|| result__) } } #[cfg(feature = "Win32_System_Com")] @@ -1731,7 +1731,7 @@ pub unsafe fn VarCyFromUI4(ulin: u32) -> windows_core::Result { windows_link::link!("oleaut32.dll" "system" fn VarCyFromUI4(ulin : u32, pcyout : *mut super::Com:: CY) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - VarCyFromUI4(ulin, &mut result__).map(|| core::mem::transmute(result__)) + VarCyFromUI4(ulin, &mut result__).map(|| result__) } } #[cfg(feature = "Win32_System_Com")] @@ -1740,7 +1740,7 @@ pub unsafe fn VarCyFromUI8(ui64in: u64) -> windows_core::Result windows_link::link!("oleaut32.dll" "system" fn VarCyFromUI8(ui64in : u64, pcyout : *mut super::Com:: CY) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - VarCyFromUI8(ui64in, &mut result__).map(|| core::mem::transmute(result__)) + VarCyFromUI8(ui64in, &mut result__).map(|| result__) } } #[cfg(feature = "Win32_System_Com")] @@ -1749,7 +1749,7 @@ pub unsafe fn VarCyInt(cyin: super::Com::CY) -> windows_core::Result windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - VarCyInt(core::mem::transmute(cyin), &mut result__).map(|| core::mem::transmute(result__)) + VarCyInt(core::mem::transmute(cyin), &mut result__).map(|| result__) } } #[cfg(feature = "Win32_System_Com")] @@ -1758,7 +1758,7 @@ pub unsafe fn VarCyMul(cyleft: super::Com::CY, cyright: super::Com::CY) -> windo windows_link::link!("oleaut32.dll" "system" fn VarCyMul(cyleft : super::Com:: CY, cyright : super::Com:: CY, pcyresult : *mut super::Com:: CY) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - VarCyMul(core::mem::transmute(cyleft), core::mem::transmute(cyright), &mut result__).map(|| core::mem::transmute(result__)) + VarCyMul(core::mem::transmute(cyleft), core::mem::transmute(cyright), &mut result__).map(|| result__) } } #[cfg(feature = "Win32_System_Com")] @@ -1767,7 +1767,7 @@ pub unsafe fn VarCyMulI4(cyleft: super::Com::CY, lright: i32) -> windows_core::R windows_link::link!("oleaut32.dll" "system" fn VarCyMulI4(cyleft : super::Com:: CY, lright : i32, pcyresult : *mut super::Com:: CY) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - VarCyMulI4(core::mem::transmute(cyleft), lright, &mut result__).map(|| core::mem::transmute(result__)) + VarCyMulI4(core::mem::transmute(cyleft), lright, &mut result__).map(|| result__) } } #[cfg(feature = "Win32_System_Com")] @@ -1776,7 +1776,7 @@ pub unsafe fn VarCyMulI8(cyleft: super::Com::CY, lright: i64) -> windows_core::R windows_link::link!("oleaut32.dll" "system" fn VarCyMulI8(cyleft : super::Com:: CY, lright : i64, pcyresult : *mut super::Com:: CY) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - VarCyMulI8(core::mem::transmute(cyleft), lright, &mut result__).map(|| core::mem::transmute(result__)) + VarCyMulI8(core::mem::transmute(cyleft), lright, &mut result__).map(|| result__) } } #[cfg(feature = "Win32_System_Com")] @@ -1785,7 +1785,7 @@ pub unsafe fn VarCyNeg(cyin: super::Com::CY) -> windows_core::Result windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - VarCyNeg(core::mem::transmute(cyin), &mut result__).map(|| core::mem::transmute(result__)) + VarCyNeg(core::mem::transmute(cyin), &mut result__).map(|| result__) } } #[cfg(feature = "Win32_System_Com")] @@ -1794,7 +1794,7 @@ pub unsafe fn VarCyRound(cyin: super::Com::CY, cdecimals: i32) -> windows_core:: windows_link::link!("oleaut32.dll" "system" fn VarCyRound(cyin : super::Com:: CY, cdecimals : i32, pcyresult : *mut super::Com:: CY) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - VarCyRound(core::mem::transmute(cyin), cdecimals, &mut result__).map(|| core::mem::transmute(result__)) + VarCyRound(core::mem::transmute(cyin), cdecimals, &mut result__).map(|| result__) } } #[cfg(feature = "Win32_System_Com")] @@ -1803,7 +1803,7 @@ pub unsafe fn VarCySub(cyleft: super::Com::CY, cyright: super::Com::CY) -> windo windows_link::link!("oleaut32.dll" "system" fn VarCySub(cyleft : super::Com:: CY, cyright : super::Com:: CY, pcyresult : *mut super::Com:: CY) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - VarCySub(core::mem::transmute(cyleft), core::mem::transmute(cyright), &mut result__).map(|| core::mem::transmute(result__)) + VarCySub(core::mem::transmute(cyleft), core::mem::transmute(cyright), &mut result__).map(|| result__) } } #[inline] @@ -1811,7 +1811,7 @@ pub unsafe fn VarDateFromBool(boolin: super::super::Foundation::VARIANT_BOOL) -> windows_link::link!("oleaut32.dll" "system" fn VarDateFromBool(boolin : super::super::Foundation:: VARIANT_BOOL, pdateout : *mut f64) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - VarDateFromBool(boolin, &mut result__).map(|| core::mem::transmute(result__)) + VarDateFromBool(boolin, &mut result__).map(|| result__) } } #[cfg(feature = "Win32_System_Com")] @@ -1820,7 +1820,7 @@ pub unsafe fn VarDateFromCy(cyin: super::Com::CY) -> windows_core::Result { windows_link::link!("oleaut32.dll" "system" fn VarDateFromCy(cyin : super::Com:: CY, pdateout : *mut f64) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - VarDateFromCy(core::mem::transmute(cyin), &mut result__).map(|| core::mem::transmute(result__)) + VarDateFromCy(core::mem::transmute(cyin), &mut result__).map(|| result__) } } #[inline] @@ -1828,7 +1828,7 @@ pub unsafe fn VarDateFromDec(pdecin: *const super::super::Foundation::DECIMAL) - windows_link::link!("oleaut32.dll" "system" fn VarDateFromDec(pdecin : *const super::super::Foundation:: DECIMAL, pdateout : *mut f64) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - VarDateFromDec(pdecin, &mut result__).map(|| core::mem::transmute(result__)) + VarDateFromDec(pdecin, &mut result__).map(|| result__) } } #[cfg(feature = "Win32_System_Com")] @@ -1840,7 +1840,7 @@ where windows_link::link!("oleaut32.dll" "system" fn VarDateFromDisp(pdispin : * mut core::ffi::c_void, lcid : u32, pdateout : *mut f64) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - VarDateFromDisp(pdispin.param().abi(), lcid, &mut result__).map(|| core::mem::transmute(result__)) + VarDateFromDisp(pdispin.param().abi(), lcid, &mut result__).map(|| result__) } } #[inline] @@ -1848,7 +1848,7 @@ pub unsafe fn VarDateFromI1(cin: i8) -> windows_core::Result { windows_link::link!("oleaut32.dll" "system" fn VarDateFromI1(cin : i8, pdateout : *mut f64) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - VarDateFromI1(cin, &mut result__).map(|| core::mem::transmute(result__)) + VarDateFromI1(cin, &mut result__).map(|| result__) } } #[inline] @@ -1856,7 +1856,7 @@ pub unsafe fn VarDateFromI2(sin: i16) -> windows_core::Result { windows_link::link!("oleaut32.dll" "system" fn VarDateFromI2(sin : i16, pdateout : *mut f64) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - VarDateFromI2(sin, &mut result__).map(|| core::mem::transmute(result__)) + VarDateFromI2(sin, &mut result__).map(|| result__) } } #[inline] @@ -1864,7 +1864,7 @@ pub unsafe fn VarDateFromI4(lin: i32) -> windows_core::Result { windows_link::link!("oleaut32.dll" "system" fn VarDateFromI4(lin : i32, pdateout : *mut f64) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - VarDateFromI4(lin, &mut result__).map(|| core::mem::transmute(result__)) + VarDateFromI4(lin, &mut result__).map(|| result__) } } #[inline] @@ -1872,7 +1872,7 @@ pub unsafe fn VarDateFromI8(i64in: i64) -> windows_core::Result { windows_link::link!("oleaut32.dll" "system" fn VarDateFromI8(i64in : i64, pdateout : *mut f64) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - VarDateFromI8(i64in, &mut result__).map(|| core::mem::transmute(result__)) + VarDateFromI8(i64in, &mut result__).map(|| result__) } } #[inline] @@ -1880,7 +1880,7 @@ pub unsafe fn VarDateFromR4(fltin: f32) -> windows_core::Result { windows_link::link!("oleaut32.dll" "system" fn VarDateFromR4(fltin : f32, pdateout : *mut f64) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - VarDateFromR4(fltin, &mut result__).map(|| core::mem::transmute(result__)) + VarDateFromR4(fltin, &mut result__).map(|| result__) } } #[inline] @@ -1888,7 +1888,7 @@ pub unsafe fn VarDateFromR8(dblin: f64) -> windows_core::Result { windows_link::link!("oleaut32.dll" "system" fn VarDateFromR8(dblin : f64, pdateout : *mut f64) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - VarDateFromR8(dblin, &mut result__).map(|| core::mem::transmute(result__)) + VarDateFromR8(dblin, &mut result__).map(|| result__) } } #[inline] @@ -1899,7 +1899,7 @@ where windows_link::link!("oleaut32.dll" "system" fn VarDateFromStr(strin : windows_core::PCWSTR, lcid : u32, dwflags : u32, pdateout : *mut f64) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - VarDateFromStr(strin.param().abi(), lcid, dwflags, &mut result__).map(|| core::mem::transmute(result__)) + VarDateFromStr(strin.param().abi(), lcid, dwflags, &mut result__).map(|| result__) } } #[inline] @@ -1907,7 +1907,7 @@ pub unsafe fn VarDateFromUI1(bin: u8) -> windows_core::Result { windows_link::link!("oleaut32.dll" "system" fn VarDateFromUI1(bin : u8, pdateout : *mut f64) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - VarDateFromUI1(bin, &mut result__).map(|| core::mem::transmute(result__)) + VarDateFromUI1(bin, &mut result__).map(|| result__) } } #[inline] @@ -1915,7 +1915,7 @@ pub unsafe fn VarDateFromUI2(uiin: u16) -> windows_core::Result { windows_link::link!("oleaut32.dll" "system" fn VarDateFromUI2(uiin : u16, pdateout : *mut f64) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - VarDateFromUI2(uiin, &mut result__).map(|| core::mem::transmute(result__)) + VarDateFromUI2(uiin, &mut result__).map(|| result__) } } #[inline] @@ -1923,7 +1923,7 @@ pub unsafe fn VarDateFromUI4(ulin: u32) -> windows_core::Result { windows_link::link!("oleaut32.dll" "system" fn VarDateFromUI4(ulin : u32, pdateout : *mut f64) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - VarDateFromUI4(ulin, &mut result__).map(|| core::mem::transmute(result__)) + VarDateFromUI4(ulin, &mut result__).map(|| result__) } } #[inline] @@ -1931,7 +1931,7 @@ pub unsafe fn VarDateFromUI8(ui64in: u64) -> windows_core::Result { windows_link::link!("oleaut32.dll" "system" fn VarDateFromUI8(ui64in : u64, pdateout : *mut f64) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - VarDateFromUI8(ui64in, &mut result__).map(|| core::mem::transmute(result__)) + VarDateFromUI8(ui64in, &mut result__).map(|| result__) } } #[inline] @@ -1939,7 +1939,7 @@ pub unsafe fn VarDateFromUdate(pudatein: *const UDATE, dwflags: u32) -> windows_ windows_link::link!("oleaut32.dll" "system" fn VarDateFromUdate(pudatein : *const UDATE, dwflags : u32, pdateout : *mut f64) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - VarDateFromUdate(pudatein, dwflags, &mut result__).map(|| core::mem::transmute(result__)) + VarDateFromUdate(pudatein, dwflags, &mut result__).map(|| result__) } } #[inline] @@ -1947,7 +1947,7 @@ pub unsafe fn VarDateFromUdateEx(pudatein: *const UDATE, lcid: u32, dwflags: u32 windows_link::link!("oleaut32.dll" "system" fn VarDateFromUdateEx(pudatein : *const UDATE, lcid : u32, dwflags : u32, pdateout : *mut f64) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - VarDateFromUdateEx(pudatein, lcid, dwflags, &mut result__).map(|| core::mem::transmute(result__)) + VarDateFromUdateEx(pudatein, lcid, dwflags, &mut result__).map(|| result__) } } #[inline] @@ -1955,7 +1955,7 @@ pub unsafe fn VarDecAbs(pdecin: *const super::super::Foundation::DECIMAL) -> win windows_link::link!("oleaut32.dll" "system" fn VarDecAbs(pdecin : *const super::super::Foundation:: DECIMAL, pdecresult : *mut super::super::Foundation:: DECIMAL) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - VarDecAbs(pdecin, &mut result__).map(|| core::mem::transmute(result__)) + VarDecAbs(pdecin, &mut result__).map(|| result__) } } #[inline] @@ -1963,7 +1963,7 @@ pub unsafe fn VarDecAdd(pdecleft: *const super::super::Foundation::DECIMAL, pdec windows_link::link!("oleaut32.dll" "system" fn VarDecAdd(pdecleft : *const super::super::Foundation:: DECIMAL, pdecright : *const super::super::Foundation:: DECIMAL, pdecresult : *mut super::super::Foundation:: DECIMAL) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - VarDecAdd(pdecleft, pdecright, &mut result__).map(|| core::mem::transmute(result__)) + VarDecAdd(pdecleft, pdecright, &mut result__).map(|| result__) } } #[inline] @@ -1981,7 +1981,7 @@ pub unsafe fn VarDecDiv(pdecleft: *const super::super::Foundation::DECIMAL, pdec windows_link::link!("oleaut32.dll" "system" fn VarDecDiv(pdecleft : *const super::super::Foundation:: DECIMAL, pdecright : *const super::super::Foundation:: DECIMAL, pdecresult : *mut super::super::Foundation:: DECIMAL) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - VarDecDiv(pdecleft, pdecright, &mut result__).map(|| core::mem::transmute(result__)) + VarDecDiv(pdecleft, pdecright, &mut result__).map(|| result__) } } #[inline] @@ -1989,7 +1989,7 @@ pub unsafe fn VarDecFix(pdecin: *const super::super::Foundation::DECIMAL) -> win windows_link::link!("oleaut32.dll" "system" fn VarDecFix(pdecin : *const super::super::Foundation:: DECIMAL, pdecresult : *mut super::super::Foundation:: DECIMAL) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - VarDecFix(pdecin, &mut result__).map(|| core::mem::transmute(result__)) + VarDecFix(pdecin, &mut result__).map(|| result__) } } #[inline] @@ -1997,7 +1997,7 @@ pub unsafe fn VarDecFromBool(boolin: super::super::Foundation::VARIANT_BOOL) -> windows_link::link!("oleaut32.dll" "system" fn VarDecFromBool(boolin : super::super::Foundation:: VARIANT_BOOL, pdecout : *mut super::super::Foundation:: DECIMAL) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - VarDecFromBool(boolin, &mut result__).map(|| core::mem::transmute(result__)) + VarDecFromBool(boolin, &mut result__).map(|| result__) } } #[cfg(feature = "Win32_System_Com")] @@ -2006,7 +2006,7 @@ pub unsafe fn VarDecFromCy(cyin: super::Com::CY) -> windows_core::Result windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - VarDecFromCy(core::mem::transmute(cyin), &mut result__).map(|| core::mem::transmute(result__)) + VarDecFromCy(core::mem::transmute(cyin), &mut result__).map(|| result__) } } #[inline] @@ -2014,7 +2014,7 @@ pub unsafe fn VarDecFromDate(datein: f64) -> windows_core::Result windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - VarDecFromDate(datein, &mut result__).map(|| core::mem::transmute(result__)) + VarDecFromDate(datein, &mut result__).map(|| result__) } } #[cfg(feature = "Win32_System_Com")] @@ -2026,7 +2026,7 @@ where windows_link::link!("oleaut32.dll" "system" fn VarDecFromDisp(pdispin : * mut core::ffi::c_void, lcid : u32, pdecout : *mut super::super::Foundation:: DECIMAL) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - VarDecFromDisp(pdispin.param().abi(), lcid, &mut result__).map(|| core::mem::transmute(result__)) + VarDecFromDisp(pdispin.param().abi(), lcid, &mut result__).map(|| result__) } } #[inline] @@ -2034,7 +2034,7 @@ pub unsafe fn VarDecFromI1(cin: i8) -> windows_core::Result windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - VarDecFromI1(cin, &mut result__).map(|| core::mem::transmute(result__)) + VarDecFromI1(cin, &mut result__).map(|| result__) } } #[inline] @@ -2042,7 +2042,7 @@ pub unsafe fn VarDecFromI2(uiin: i16) -> windows_core::Result windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - VarDecFromI2(uiin, &mut result__).map(|| core::mem::transmute(result__)) + VarDecFromI2(uiin, &mut result__).map(|| result__) } } #[inline] @@ -2050,7 +2050,7 @@ pub unsafe fn VarDecFromI4(lin: i32) -> windows_core::Result windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - VarDecFromI4(lin, &mut result__).map(|| core::mem::transmute(result__)) + VarDecFromI4(lin, &mut result__).map(|| result__) } } #[inline] @@ -2058,7 +2058,7 @@ pub unsafe fn VarDecFromI8(i64in: i64) -> windows_core::Result windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - VarDecFromI8(i64in, &mut result__).map(|| core::mem::transmute(result__)) + VarDecFromI8(i64in, &mut result__).map(|| result__) } } #[inline] @@ -2066,7 +2066,7 @@ pub unsafe fn VarDecFromR4(fltin: f32) -> windows_core::Result windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - VarDecFromR4(fltin, &mut result__).map(|| core::mem::transmute(result__)) + VarDecFromR4(fltin, &mut result__).map(|| result__) } } #[inline] @@ -2074,7 +2074,7 @@ pub unsafe fn VarDecFromR8(dblin: f64) -> windows_core::Result windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - VarDecFromR8(dblin, &mut result__).map(|| core::mem::transmute(result__)) + VarDecFromR8(dblin, &mut result__).map(|| result__) } } #[inline] @@ -2085,7 +2085,7 @@ where windows_link::link!("oleaut32.dll" "system" fn VarDecFromStr(strin : windows_core::PCWSTR, lcid : u32, dwflags : u32, pdecout : *mut super::super::Foundation:: DECIMAL) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - VarDecFromStr(strin.param().abi(), lcid, dwflags, &mut result__).map(|| core::mem::transmute(result__)) + VarDecFromStr(strin.param().abi(), lcid, dwflags, &mut result__).map(|| result__) } } #[inline] @@ -2093,7 +2093,7 @@ pub unsafe fn VarDecFromUI1(bin: u8) -> windows_core::Result windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - VarDecFromUI1(bin, &mut result__).map(|| core::mem::transmute(result__)) + VarDecFromUI1(bin, &mut result__).map(|| result__) } } #[inline] @@ -2101,7 +2101,7 @@ pub unsafe fn VarDecFromUI2(uiin: u16) -> windows_core::Result windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - VarDecFromUI2(uiin, &mut result__).map(|| core::mem::transmute(result__)) + VarDecFromUI2(uiin, &mut result__).map(|| result__) } } #[inline] @@ -2109,7 +2109,7 @@ pub unsafe fn VarDecFromUI4(ulin: u32) -> windows_core::Result windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - VarDecFromUI4(ulin, &mut result__).map(|| core::mem::transmute(result__)) + VarDecFromUI4(ulin, &mut result__).map(|| result__) } } #[inline] @@ -2117,7 +2117,7 @@ pub unsafe fn VarDecFromUI8(ui64in: u64) -> windows_core::Result windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - VarDecFromUI8(ui64in, &mut result__).map(|| core::mem::transmute(result__)) + VarDecFromUI8(ui64in, &mut result__).map(|| result__) } } #[inline] @@ -2125,7 +2125,7 @@ pub unsafe fn VarDecInt(pdecin: *const super::super::Foundation::DECIMAL) -> win windows_link::link!("oleaut32.dll" "system" fn VarDecInt(pdecin : *const super::super::Foundation:: DECIMAL, pdecresult : *mut super::super::Foundation:: DECIMAL) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - VarDecInt(pdecin, &mut result__).map(|| core::mem::transmute(result__)) + VarDecInt(pdecin, &mut result__).map(|| result__) } } #[inline] @@ -2133,7 +2133,7 @@ pub unsafe fn VarDecMul(pdecleft: *const super::super::Foundation::DECIMAL, pdec windows_link::link!("oleaut32.dll" "system" fn VarDecMul(pdecleft : *const super::super::Foundation:: DECIMAL, pdecright : *const super::super::Foundation:: DECIMAL, pdecresult : *mut super::super::Foundation:: DECIMAL) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - VarDecMul(pdecleft, pdecright, &mut result__).map(|| core::mem::transmute(result__)) + VarDecMul(pdecleft, pdecright, &mut result__).map(|| result__) } } #[inline] @@ -2141,7 +2141,7 @@ pub unsafe fn VarDecNeg(pdecin: *const super::super::Foundation::DECIMAL) -> win windows_link::link!("oleaut32.dll" "system" fn VarDecNeg(pdecin : *const super::super::Foundation:: DECIMAL, pdecresult : *mut super::super::Foundation:: DECIMAL) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - VarDecNeg(pdecin, &mut result__).map(|| core::mem::transmute(result__)) + VarDecNeg(pdecin, &mut result__).map(|| result__) } } #[inline] @@ -2149,7 +2149,7 @@ pub unsafe fn VarDecRound(pdecin: *const super::super::Foundation::DECIMAL, cdec windows_link::link!("oleaut32.dll" "system" fn VarDecRound(pdecin : *const super::super::Foundation:: DECIMAL, cdecimals : i32, pdecresult : *mut super::super::Foundation:: DECIMAL) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - VarDecRound(pdecin, cdecimals, &mut result__).map(|| core::mem::transmute(result__)) + VarDecRound(pdecin, cdecimals, &mut result__).map(|| result__) } } #[inline] @@ -2157,7 +2157,7 @@ pub unsafe fn VarDecSub(pdecleft: *const super::super::Foundation::DECIMAL, pdec windows_link::link!("oleaut32.dll" "system" fn VarDecSub(pdecleft : *const super::super::Foundation:: DECIMAL, pdecright : *const super::super::Foundation:: DECIMAL, pdecresult : *mut super::super::Foundation:: DECIMAL) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - VarDecSub(pdecleft, pdecright, &mut result__).map(|| core::mem::transmute(result__)) + VarDecSub(pdecleft, pdecright, &mut result__).map(|| result__) } } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Variant"))] @@ -2332,7 +2332,7 @@ pub unsafe fn VarI2FromBool(boolin: super::super::Foundation::VARIANT_BOOL) -> w windows_link::link!("oleaut32.dll" "system" fn VarI2FromBool(boolin : super::super::Foundation:: VARIANT_BOOL, psout : *mut i16) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - VarI2FromBool(boolin, &mut result__).map(|| core::mem::transmute(result__)) + VarI2FromBool(boolin, &mut result__).map(|| result__) } } #[cfg(feature = "Win32_System_Com")] @@ -2346,7 +2346,7 @@ pub unsafe fn VarI2FromDate(datein: f64) -> windows_core::Result { windows_link::link!("oleaut32.dll" "system" fn VarI2FromDate(datein : f64, psout : *mut i16) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - VarI2FromDate(datein, &mut result__).map(|| core::mem::transmute(result__)) + VarI2FromDate(datein, &mut result__).map(|| result__) } } #[inline] @@ -2354,7 +2354,7 @@ pub unsafe fn VarI2FromDec(pdecin: *const super::super::Foundation::DECIMAL) -> windows_link::link!("oleaut32.dll" "system" fn VarI2FromDec(pdecin : *const super::super::Foundation:: DECIMAL, psout : *mut i16) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - VarI2FromDec(pdecin, &mut result__).map(|| core::mem::transmute(result__)) + VarI2FromDec(pdecin, &mut result__).map(|| result__) } } #[cfg(feature = "Win32_System_Com")] @@ -2366,7 +2366,7 @@ where windows_link::link!("oleaut32.dll" "system" fn VarI2FromDisp(pdispin : * mut core::ffi::c_void, lcid : u32, psout : *mut i16) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - VarI2FromDisp(pdispin.param().abi(), lcid, &mut result__).map(|| core::mem::transmute(result__)) + VarI2FromDisp(pdispin.param().abi(), lcid, &mut result__).map(|| result__) } } #[inline] @@ -2374,7 +2374,7 @@ pub unsafe fn VarI2FromI1(cin: i8) -> windows_core::Result { windows_link::link!("oleaut32.dll" "system" fn VarI2FromI1(cin : i8, psout : *mut i16) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - VarI2FromI1(cin, &mut result__).map(|| core::mem::transmute(result__)) + VarI2FromI1(cin, &mut result__).map(|| result__) } } #[inline] @@ -2382,7 +2382,7 @@ pub unsafe fn VarI2FromI4(lin: i32) -> windows_core::Result { windows_link::link!("oleaut32.dll" "system" fn VarI2FromI4(lin : i32, psout : *mut i16) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - VarI2FromI4(lin, &mut result__).map(|| core::mem::transmute(result__)) + VarI2FromI4(lin, &mut result__).map(|| result__) } } #[inline] @@ -2390,7 +2390,7 @@ pub unsafe fn VarI2FromI8(i64in: i64) -> windows_core::Result { windows_link::link!("oleaut32.dll" "system" fn VarI2FromI8(i64in : i64, psout : *mut i16) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - VarI2FromI8(i64in, &mut result__).map(|| core::mem::transmute(result__)) + VarI2FromI8(i64in, &mut result__).map(|| result__) } } #[inline] @@ -2398,7 +2398,7 @@ pub unsafe fn VarI2FromR4(fltin: f32) -> windows_core::Result { windows_link::link!("oleaut32.dll" "system" fn VarI2FromR4(fltin : f32, psout : *mut i16) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - VarI2FromR4(fltin, &mut result__).map(|| core::mem::transmute(result__)) + VarI2FromR4(fltin, &mut result__).map(|| result__) } } #[inline] @@ -2406,7 +2406,7 @@ pub unsafe fn VarI2FromR8(dblin: f64) -> windows_core::Result { windows_link::link!("oleaut32.dll" "system" fn VarI2FromR8(dblin : f64, psout : *mut i16) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - VarI2FromR8(dblin, &mut result__).map(|| core::mem::transmute(result__)) + VarI2FromR8(dblin, &mut result__).map(|| result__) } } #[inline] @@ -2417,7 +2417,7 @@ where windows_link::link!("oleaut32.dll" "system" fn VarI2FromStr(strin : windows_core::PCWSTR, lcid : u32, dwflags : u32, psout : *mut i16) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - VarI2FromStr(strin.param().abi(), lcid, dwflags, &mut result__).map(|| core::mem::transmute(result__)) + VarI2FromStr(strin.param().abi(), lcid, dwflags, &mut result__).map(|| result__) } } #[inline] @@ -2425,7 +2425,7 @@ pub unsafe fn VarI2FromUI1(bin: u8) -> windows_core::Result { windows_link::link!("oleaut32.dll" "system" fn VarI2FromUI1(bin : u8, psout : *mut i16) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - VarI2FromUI1(bin, &mut result__).map(|| core::mem::transmute(result__)) + VarI2FromUI1(bin, &mut result__).map(|| result__) } } #[inline] @@ -2433,7 +2433,7 @@ pub unsafe fn VarI2FromUI2(uiin: u16) -> windows_core::Result { windows_link::link!("oleaut32.dll" "system" fn VarI2FromUI2(uiin : u16, psout : *mut i16) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - VarI2FromUI2(uiin, &mut result__).map(|| core::mem::transmute(result__)) + VarI2FromUI2(uiin, &mut result__).map(|| result__) } } #[inline] @@ -2441,7 +2441,7 @@ pub unsafe fn VarI2FromUI4(ulin: u32) -> windows_core::Result { windows_link::link!("oleaut32.dll" "system" fn VarI2FromUI4(ulin : u32, psout : *mut i16) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - VarI2FromUI4(ulin, &mut result__).map(|| core::mem::transmute(result__)) + VarI2FromUI4(ulin, &mut result__).map(|| result__) } } #[inline] @@ -2449,7 +2449,7 @@ pub unsafe fn VarI2FromUI8(ui64in: u64) -> windows_core::Result { windows_link::link!("oleaut32.dll" "system" fn VarI2FromUI8(ui64in : u64, psout : *mut i16) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - VarI2FromUI8(ui64in, &mut result__).map(|| core::mem::transmute(result__)) + VarI2FromUI8(ui64in, &mut result__).map(|| result__) } } #[inline] @@ -2457,7 +2457,7 @@ pub unsafe fn VarI4FromBool(boolin: super::super::Foundation::VARIANT_BOOL) -> w windows_link::link!("oleaut32.dll" "system" fn VarI4FromBool(boolin : super::super::Foundation:: VARIANT_BOOL, plout : *mut i32) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - VarI4FromBool(boolin, &mut result__).map(|| core::mem::transmute(result__)) + VarI4FromBool(boolin, &mut result__).map(|| result__) } } #[cfg(feature = "Win32_System_Com")] @@ -2466,7 +2466,7 @@ pub unsafe fn VarI4FromCy(cyin: super::Com::CY) -> windows_core::Result { windows_link::link!("oleaut32.dll" "system" fn VarI4FromCy(cyin : super::Com:: CY, plout : *mut i32) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - VarI4FromCy(core::mem::transmute(cyin), &mut result__).map(|| core::mem::transmute(result__)) + VarI4FromCy(core::mem::transmute(cyin), &mut result__).map(|| result__) } } #[inline] @@ -2474,7 +2474,7 @@ pub unsafe fn VarI4FromDate(datein: f64) -> windows_core::Result { windows_link::link!("oleaut32.dll" "system" fn VarI4FromDate(datein : f64, plout : *mut i32) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - VarI4FromDate(datein, &mut result__).map(|| core::mem::transmute(result__)) + VarI4FromDate(datein, &mut result__).map(|| result__) } } #[inline] @@ -2482,7 +2482,7 @@ pub unsafe fn VarI4FromDec(pdecin: *const super::super::Foundation::DECIMAL) -> windows_link::link!("oleaut32.dll" "system" fn VarI4FromDec(pdecin : *const super::super::Foundation:: DECIMAL, plout : *mut i32) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - VarI4FromDec(pdecin, &mut result__).map(|| core::mem::transmute(result__)) + VarI4FromDec(pdecin, &mut result__).map(|| result__) } } #[cfg(feature = "Win32_System_Com")] @@ -2494,7 +2494,7 @@ where windows_link::link!("oleaut32.dll" "system" fn VarI4FromDisp(pdispin : * mut core::ffi::c_void, lcid : u32, plout : *mut i32) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - VarI4FromDisp(pdispin.param().abi(), lcid, &mut result__).map(|| core::mem::transmute(result__)) + VarI4FromDisp(pdispin.param().abi(), lcid, &mut result__).map(|| result__) } } #[inline] @@ -2502,7 +2502,7 @@ pub unsafe fn VarI4FromI1(cin: i8) -> windows_core::Result { windows_link::link!("oleaut32.dll" "system" fn VarI4FromI1(cin : i8, plout : *mut i32) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - VarI4FromI1(cin, &mut result__).map(|| core::mem::transmute(result__)) + VarI4FromI1(cin, &mut result__).map(|| result__) } } #[inline] @@ -2510,7 +2510,7 @@ pub unsafe fn VarI4FromI2(sin: i16) -> windows_core::Result { windows_link::link!("oleaut32.dll" "system" fn VarI4FromI2(sin : i16, plout : *mut i32) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - VarI4FromI2(sin, &mut result__).map(|| core::mem::transmute(result__)) + VarI4FromI2(sin, &mut result__).map(|| result__) } } #[inline] @@ -2518,7 +2518,7 @@ pub unsafe fn VarI4FromI8(i64in: i64) -> windows_core::Result { windows_link::link!("oleaut32.dll" "system" fn VarI4FromI8(i64in : i64, plout : *mut i32) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - VarI4FromI8(i64in, &mut result__).map(|| core::mem::transmute(result__)) + VarI4FromI8(i64in, &mut result__).map(|| result__) } } #[inline] @@ -2526,7 +2526,7 @@ pub unsafe fn VarI4FromR4(fltin: f32) -> windows_core::Result { windows_link::link!("oleaut32.dll" "system" fn VarI4FromR4(fltin : f32, plout : *mut i32) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - VarI4FromR4(fltin, &mut result__).map(|| core::mem::transmute(result__)) + VarI4FromR4(fltin, &mut result__).map(|| result__) } } #[inline] @@ -2534,7 +2534,7 @@ pub unsafe fn VarI4FromR8(dblin: f64) -> windows_core::Result { windows_link::link!("oleaut32.dll" "system" fn VarI4FromR8(dblin : f64, plout : *mut i32) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - VarI4FromR8(dblin, &mut result__).map(|| core::mem::transmute(result__)) + VarI4FromR8(dblin, &mut result__).map(|| result__) } } #[inline] @@ -2545,7 +2545,7 @@ where windows_link::link!("oleaut32.dll" "system" fn VarI4FromStr(strin : windows_core::PCWSTR, lcid : u32, dwflags : u32, plout : *mut i32) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - VarI4FromStr(strin.param().abi(), lcid, dwflags, &mut result__).map(|| core::mem::transmute(result__)) + VarI4FromStr(strin.param().abi(), lcid, dwflags, &mut result__).map(|| result__) } } #[inline] @@ -2553,7 +2553,7 @@ pub unsafe fn VarI4FromUI1(bin: u8) -> windows_core::Result { windows_link::link!("oleaut32.dll" "system" fn VarI4FromUI1(bin : u8, plout : *mut i32) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - VarI4FromUI1(bin, &mut result__).map(|| core::mem::transmute(result__)) + VarI4FromUI1(bin, &mut result__).map(|| result__) } } #[inline] @@ -2561,7 +2561,7 @@ pub unsafe fn VarI4FromUI2(uiin: u16) -> windows_core::Result { windows_link::link!("oleaut32.dll" "system" fn VarI4FromUI2(uiin : u16, plout : *mut i32) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - VarI4FromUI2(uiin, &mut result__).map(|| core::mem::transmute(result__)) + VarI4FromUI2(uiin, &mut result__).map(|| result__) } } #[inline] @@ -2569,7 +2569,7 @@ pub unsafe fn VarI4FromUI4(ulin: u32) -> windows_core::Result { windows_link::link!("oleaut32.dll" "system" fn VarI4FromUI4(ulin : u32, plout : *mut i32) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - VarI4FromUI4(ulin, &mut result__).map(|| core::mem::transmute(result__)) + VarI4FromUI4(ulin, &mut result__).map(|| result__) } } #[inline] @@ -2577,7 +2577,7 @@ pub unsafe fn VarI4FromUI8(ui64in: u64) -> windows_core::Result { windows_link::link!("oleaut32.dll" "system" fn VarI4FromUI8(ui64in : u64, plout : *mut i32) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - VarI4FromUI8(ui64in, &mut result__).map(|| core::mem::transmute(result__)) + VarI4FromUI8(ui64in, &mut result__).map(|| result__) } } #[inline] @@ -2585,7 +2585,7 @@ pub unsafe fn VarI8FromBool(boolin: super::super::Foundation::VARIANT_BOOL) -> w windows_link::link!("oleaut32.dll" "system" fn VarI8FromBool(boolin : super::super::Foundation:: VARIANT_BOOL, pi64out : *mut i64) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - VarI8FromBool(boolin, &mut result__).map(|| core::mem::transmute(result__)) + VarI8FromBool(boolin, &mut result__).map(|| result__) } } #[cfg(feature = "Win32_System_Com")] @@ -2594,7 +2594,7 @@ pub unsafe fn VarI8FromCy(cyin: super::Com::CY) -> windows_core::Result { windows_link::link!("oleaut32.dll" "system" fn VarI8FromCy(cyin : super::Com:: CY, pi64out : *mut i64) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - VarI8FromCy(core::mem::transmute(cyin), &mut result__).map(|| core::mem::transmute(result__)) + VarI8FromCy(core::mem::transmute(cyin), &mut result__).map(|| result__) } } #[inline] @@ -2602,7 +2602,7 @@ pub unsafe fn VarI8FromDate(datein: f64) -> windows_core::Result { windows_link::link!("oleaut32.dll" "system" fn VarI8FromDate(datein : f64, pi64out : *mut i64) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - VarI8FromDate(datein, &mut result__).map(|| core::mem::transmute(result__)) + VarI8FromDate(datein, &mut result__).map(|| result__) } } #[inline] @@ -2610,7 +2610,7 @@ pub unsafe fn VarI8FromDec(pdecin: *const super::super::Foundation::DECIMAL) -> windows_link::link!("oleaut32.dll" "system" fn VarI8FromDec(pdecin : *const super::super::Foundation:: DECIMAL, pi64out : *mut i64) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - VarI8FromDec(pdecin, &mut result__).map(|| core::mem::transmute(result__)) + VarI8FromDec(pdecin, &mut result__).map(|| result__) } } #[cfg(feature = "Win32_System_Com")] @@ -2622,7 +2622,7 @@ where windows_link::link!("oleaut32.dll" "system" fn VarI8FromDisp(pdispin : * mut core::ffi::c_void, lcid : u32, pi64out : *mut i64) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - VarI8FromDisp(pdispin.param().abi(), lcid, &mut result__).map(|| core::mem::transmute(result__)) + VarI8FromDisp(pdispin.param().abi(), lcid, &mut result__).map(|| result__) } } #[inline] @@ -2630,7 +2630,7 @@ pub unsafe fn VarI8FromI1(cin: i8) -> windows_core::Result { windows_link::link!("oleaut32.dll" "system" fn VarI8FromI1(cin : i8, pi64out : *mut i64) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - VarI8FromI1(cin, &mut result__).map(|| core::mem::transmute(result__)) + VarI8FromI1(cin, &mut result__).map(|| result__) } } #[inline] @@ -2638,7 +2638,7 @@ pub unsafe fn VarI8FromI2(sin: i16) -> windows_core::Result { windows_link::link!("oleaut32.dll" "system" fn VarI8FromI2(sin : i16, pi64out : *mut i64) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - VarI8FromI2(sin, &mut result__).map(|| core::mem::transmute(result__)) + VarI8FromI2(sin, &mut result__).map(|| result__) } } #[inline] @@ -2646,7 +2646,7 @@ pub unsafe fn VarI8FromR4(fltin: f32) -> windows_core::Result { windows_link::link!("oleaut32.dll" "system" fn VarI8FromR4(fltin : f32, pi64out : *mut i64) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - VarI8FromR4(fltin, &mut result__).map(|| core::mem::transmute(result__)) + VarI8FromR4(fltin, &mut result__).map(|| result__) } } #[inline] @@ -2654,7 +2654,7 @@ pub unsafe fn VarI8FromR8(dblin: f64) -> windows_core::Result { windows_link::link!("oleaut32.dll" "system" fn VarI8FromR8(dblin : f64, pi64out : *mut i64) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - VarI8FromR8(dblin, &mut result__).map(|| core::mem::transmute(result__)) + VarI8FromR8(dblin, &mut result__).map(|| result__) } } #[inline] @@ -2665,7 +2665,7 @@ where windows_link::link!("oleaut32.dll" "system" fn VarI8FromStr(strin : windows_core::PCWSTR, lcid : u32, dwflags : u32, pi64out : *mut i64) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - VarI8FromStr(strin.param().abi(), lcid, dwflags, &mut result__).map(|| core::mem::transmute(result__)) + VarI8FromStr(strin.param().abi(), lcid, dwflags, &mut result__).map(|| result__) } } #[inline] @@ -2673,7 +2673,7 @@ pub unsafe fn VarI8FromUI1(bin: u8) -> windows_core::Result { windows_link::link!("oleaut32.dll" "system" fn VarI8FromUI1(bin : u8, pi64out : *mut i64) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - VarI8FromUI1(bin, &mut result__).map(|| core::mem::transmute(result__)) + VarI8FromUI1(bin, &mut result__).map(|| result__) } } #[inline] @@ -2681,7 +2681,7 @@ pub unsafe fn VarI8FromUI2(uiin: u16) -> windows_core::Result { windows_link::link!("oleaut32.dll" "system" fn VarI8FromUI2(uiin : u16, pi64out : *mut i64) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - VarI8FromUI2(uiin, &mut result__).map(|| core::mem::transmute(result__)) + VarI8FromUI2(uiin, &mut result__).map(|| result__) } } #[inline] @@ -2689,7 +2689,7 @@ pub unsafe fn VarI8FromUI4(ulin: u32) -> windows_core::Result { windows_link::link!("oleaut32.dll" "system" fn VarI8FromUI4(ulin : u32, pi64out : *mut i64) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - VarI8FromUI4(ulin, &mut result__).map(|| core::mem::transmute(result__)) + VarI8FromUI4(ulin, &mut result__).map(|| result__) } } #[inline] @@ -2697,7 +2697,7 @@ pub unsafe fn VarI8FromUI8(ui64in: u64) -> windows_core::Result { windows_link::link!("oleaut32.dll" "system" fn VarI8FromUI8(ui64in : u64, pi64out : *mut i64) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - VarI8FromUI8(ui64in, &mut result__).map(|| core::mem::transmute(result__)) + VarI8FromUI8(ui64in, &mut result__).map(|| result__) } } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Variant"))] @@ -2816,7 +2816,7 @@ pub unsafe fn VarR4FromBool(boolin: super::super::Foundation::VARIANT_BOOL) -> w windows_link::link!("oleaut32.dll" "system" fn VarR4FromBool(boolin : super::super::Foundation:: VARIANT_BOOL, pfltout : *mut f32) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - VarR4FromBool(boolin, &mut result__).map(|| core::mem::transmute(result__)) + VarR4FromBool(boolin, &mut result__).map(|| result__) } } #[cfg(feature = "Win32_System_Com")] @@ -2830,7 +2830,7 @@ pub unsafe fn VarR4FromDate(datein: f64) -> windows_core::Result { windows_link::link!("oleaut32.dll" "system" fn VarR4FromDate(datein : f64, pfltout : *mut f32) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - VarR4FromDate(datein, &mut result__).map(|| core::mem::transmute(result__)) + VarR4FromDate(datein, &mut result__).map(|| result__) } } #[inline] @@ -2838,7 +2838,7 @@ pub unsafe fn VarR4FromDec(pdecin: *const super::super::Foundation::DECIMAL) -> windows_link::link!("oleaut32.dll" "system" fn VarR4FromDec(pdecin : *const super::super::Foundation:: DECIMAL, pfltout : *mut f32) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - VarR4FromDec(pdecin, &mut result__).map(|| core::mem::transmute(result__)) + VarR4FromDec(pdecin, &mut result__).map(|| result__) } } #[cfg(feature = "Win32_System_Com")] @@ -2850,7 +2850,7 @@ where windows_link::link!("oleaut32.dll" "system" fn VarR4FromDisp(pdispin : * mut core::ffi::c_void, lcid : u32, pfltout : *mut f32) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - VarR4FromDisp(pdispin.param().abi(), lcid, &mut result__).map(|| core::mem::transmute(result__)) + VarR4FromDisp(pdispin.param().abi(), lcid, &mut result__).map(|| result__) } } #[inline] @@ -2858,7 +2858,7 @@ pub unsafe fn VarR4FromI1(cin: i8) -> windows_core::Result { windows_link::link!("oleaut32.dll" "system" fn VarR4FromI1(cin : i8, pfltout : *mut f32) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - VarR4FromI1(cin, &mut result__).map(|| core::mem::transmute(result__)) + VarR4FromI1(cin, &mut result__).map(|| result__) } } #[inline] @@ -2866,7 +2866,7 @@ pub unsafe fn VarR4FromI2(sin: i16) -> windows_core::Result { windows_link::link!("oleaut32.dll" "system" fn VarR4FromI2(sin : i16, pfltout : *mut f32) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - VarR4FromI2(sin, &mut result__).map(|| core::mem::transmute(result__)) + VarR4FromI2(sin, &mut result__).map(|| result__) } } #[inline] @@ -2874,7 +2874,7 @@ pub unsafe fn VarR4FromI4(lin: i32) -> windows_core::Result { windows_link::link!("oleaut32.dll" "system" fn VarR4FromI4(lin : i32, pfltout : *mut f32) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - VarR4FromI4(lin, &mut result__).map(|| core::mem::transmute(result__)) + VarR4FromI4(lin, &mut result__).map(|| result__) } } #[inline] @@ -2882,7 +2882,7 @@ pub unsafe fn VarR4FromI8(i64in: i64) -> windows_core::Result { windows_link::link!("oleaut32.dll" "system" fn VarR4FromI8(i64in : i64, pfltout : *mut f32) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - VarR4FromI8(i64in, &mut result__).map(|| core::mem::transmute(result__)) + VarR4FromI8(i64in, &mut result__).map(|| result__) } } #[inline] @@ -2890,7 +2890,7 @@ pub unsafe fn VarR4FromR8(dblin: f64) -> windows_core::Result { windows_link::link!("oleaut32.dll" "system" fn VarR4FromR8(dblin : f64, pfltout : *mut f32) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - VarR4FromR8(dblin, &mut result__).map(|| core::mem::transmute(result__)) + VarR4FromR8(dblin, &mut result__).map(|| result__) } } #[inline] @@ -2901,7 +2901,7 @@ where windows_link::link!("oleaut32.dll" "system" fn VarR4FromStr(strin : windows_core::PCWSTR, lcid : u32, dwflags : u32, pfltout : *mut f32) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - VarR4FromStr(strin.param().abi(), lcid, dwflags, &mut result__).map(|| core::mem::transmute(result__)) + VarR4FromStr(strin.param().abi(), lcid, dwflags, &mut result__).map(|| result__) } } #[inline] @@ -2909,7 +2909,7 @@ pub unsafe fn VarR4FromUI1(bin: u8) -> windows_core::Result { windows_link::link!("oleaut32.dll" "system" fn VarR4FromUI1(bin : u8, pfltout : *mut f32) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - VarR4FromUI1(bin, &mut result__).map(|| core::mem::transmute(result__)) + VarR4FromUI1(bin, &mut result__).map(|| result__) } } #[inline] @@ -2917,7 +2917,7 @@ pub unsafe fn VarR4FromUI2(uiin: u16) -> windows_core::Result { windows_link::link!("oleaut32.dll" "system" fn VarR4FromUI2(uiin : u16, pfltout : *mut f32) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - VarR4FromUI2(uiin, &mut result__).map(|| core::mem::transmute(result__)) + VarR4FromUI2(uiin, &mut result__).map(|| result__) } } #[inline] @@ -2925,7 +2925,7 @@ pub unsafe fn VarR4FromUI4(ulin: u32) -> windows_core::Result { windows_link::link!("oleaut32.dll" "system" fn VarR4FromUI4(ulin : u32, pfltout : *mut f32) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - VarR4FromUI4(ulin, &mut result__).map(|| core::mem::transmute(result__)) + VarR4FromUI4(ulin, &mut result__).map(|| result__) } } #[inline] @@ -2933,7 +2933,7 @@ pub unsafe fn VarR4FromUI8(ui64in: u64) -> windows_core::Result { windows_link::link!("oleaut32.dll" "system" fn VarR4FromUI8(ui64in : u64, pfltout : *mut f32) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - VarR4FromUI8(ui64in, &mut result__).map(|| core::mem::transmute(result__)) + VarR4FromUI8(ui64in, &mut result__).map(|| result__) } } #[inline] @@ -2941,7 +2941,7 @@ pub unsafe fn VarR8FromBool(boolin: super::super::Foundation::VARIANT_BOOL) -> w windows_link::link!("oleaut32.dll" "system" fn VarR8FromBool(boolin : super::super::Foundation:: VARIANT_BOOL, pdblout : *mut f64) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - VarR8FromBool(boolin, &mut result__).map(|| core::mem::transmute(result__)) + VarR8FromBool(boolin, &mut result__).map(|| result__) } } #[cfg(feature = "Win32_System_Com")] @@ -2955,7 +2955,7 @@ pub unsafe fn VarR8FromDate(datein: f64) -> windows_core::Result { windows_link::link!("oleaut32.dll" "system" fn VarR8FromDate(datein : f64, pdblout : *mut f64) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - VarR8FromDate(datein, &mut result__).map(|| core::mem::transmute(result__)) + VarR8FromDate(datein, &mut result__).map(|| result__) } } #[inline] @@ -2963,7 +2963,7 @@ pub unsafe fn VarR8FromDec(pdecin: *const super::super::Foundation::DECIMAL) -> windows_link::link!("oleaut32.dll" "system" fn VarR8FromDec(pdecin : *const super::super::Foundation:: DECIMAL, pdblout : *mut f64) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - VarR8FromDec(pdecin, &mut result__).map(|| core::mem::transmute(result__)) + VarR8FromDec(pdecin, &mut result__).map(|| result__) } } #[cfg(feature = "Win32_System_Com")] @@ -2975,7 +2975,7 @@ where windows_link::link!("oleaut32.dll" "system" fn VarR8FromDisp(pdispin : * mut core::ffi::c_void, lcid : u32, pdblout : *mut f64) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - VarR8FromDisp(pdispin.param().abi(), lcid, &mut result__).map(|| core::mem::transmute(result__)) + VarR8FromDisp(pdispin.param().abi(), lcid, &mut result__).map(|| result__) } } #[inline] @@ -2988,7 +2988,7 @@ pub unsafe fn VarR8FromI2(sin: i16) -> windows_core::Result { windows_link::link!("oleaut32.dll" "system" fn VarR8FromI2(sin : i16, pdblout : *mut f64) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - VarR8FromI2(sin, &mut result__).map(|| core::mem::transmute(result__)) + VarR8FromI2(sin, &mut result__).map(|| result__) } } #[inline] @@ -2996,7 +2996,7 @@ pub unsafe fn VarR8FromI4(lin: i32) -> windows_core::Result { windows_link::link!("oleaut32.dll" "system" fn VarR8FromI4(lin : i32, pdblout : *mut f64) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - VarR8FromI4(lin, &mut result__).map(|| core::mem::transmute(result__)) + VarR8FromI4(lin, &mut result__).map(|| result__) } } #[inline] @@ -3004,7 +3004,7 @@ pub unsafe fn VarR8FromI8(i64in: i64) -> windows_core::Result { windows_link::link!("oleaut32.dll" "system" fn VarR8FromI8(i64in : i64, pdblout : *mut f64) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - VarR8FromI8(i64in, &mut result__).map(|| core::mem::transmute(result__)) + VarR8FromI8(i64in, &mut result__).map(|| result__) } } #[inline] @@ -3012,7 +3012,7 @@ pub unsafe fn VarR8FromR4(fltin: f32) -> windows_core::Result { windows_link::link!("oleaut32.dll" "system" fn VarR8FromR4(fltin : f32, pdblout : *mut f64) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - VarR8FromR4(fltin, &mut result__).map(|| core::mem::transmute(result__)) + VarR8FromR4(fltin, &mut result__).map(|| result__) } } #[inline] @@ -3023,7 +3023,7 @@ where windows_link::link!("oleaut32.dll" "system" fn VarR8FromStr(strin : windows_core::PCWSTR, lcid : u32, dwflags : u32, pdblout : *mut f64) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - VarR8FromStr(strin.param().abi(), lcid, dwflags, &mut result__).map(|| core::mem::transmute(result__)) + VarR8FromStr(strin.param().abi(), lcid, dwflags, &mut result__).map(|| result__) } } #[inline] @@ -3031,7 +3031,7 @@ pub unsafe fn VarR8FromUI1(bin: u8) -> windows_core::Result { windows_link::link!("oleaut32.dll" "system" fn VarR8FromUI1(bin : u8, pdblout : *mut f64) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - VarR8FromUI1(bin, &mut result__).map(|| core::mem::transmute(result__)) + VarR8FromUI1(bin, &mut result__).map(|| result__) } } #[inline] @@ -3039,7 +3039,7 @@ pub unsafe fn VarR8FromUI2(uiin: u16) -> windows_core::Result { windows_link::link!("oleaut32.dll" "system" fn VarR8FromUI2(uiin : u16, pdblout : *mut f64) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - VarR8FromUI2(uiin, &mut result__).map(|| core::mem::transmute(result__)) + VarR8FromUI2(uiin, &mut result__).map(|| result__) } } #[inline] @@ -3047,7 +3047,7 @@ pub unsafe fn VarR8FromUI4(ulin: u32) -> windows_core::Result { windows_link::link!("oleaut32.dll" "system" fn VarR8FromUI4(ulin : u32, pdblout : *mut f64) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - VarR8FromUI4(ulin, &mut result__).map(|| core::mem::transmute(result__)) + VarR8FromUI4(ulin, &mut result__).map(|| result__) } } #[inline] @@ -3055,7 +3055,7 @@ pub unsafe fn VarR8FromUI8(ui64in: u64) -> windows_core::Result { windows_link::link!("oleaut32.dll" "system" fn VarR8FromUI8(ui64in : u64, pdblout : *mut f64) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - VarR8FromUI8(ui64in, &mut result__).map(|| core::mem::transmute(result__)) + VarR8FromUI8(ui64in, &mut result__).map(|| result__) } } #[inline] @@ -3063,7 +3063,7 @@ pub unsafe fn VarR8Pow(dblleft: f64, dblright: f64) -> windows_core::Result windows_link::link!("oleaut32.dll" "system" fn VarR8Pow(dblleft : f64, dblright : f64, pdblresult : *mut f64) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - VarR8Pow(dblleft, dblright, &mut result__).map(|| core::mem::transmute(result__)) + VarR8Pow(dblleft, dblright, &mut result__).map(|| result__) } } #[inline] @@ -3071,7 +3071,7 @@ pub unsafe fn VarR8Round(dblin: f64, cdecimals: i32) -> windows_core::Result windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - VarR8Round(dblin, cdecimals, &mut result__).map(|| core::mem::transmute(result__)) + VarR8Round(dblin, cdecimals, &mut result__).map(|| result__) } } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Variant"))] @@ -3105,7 +3105,7 @@ pub unsafe fn VarUI1FromBool(boolin: super::super::Foundation::VARIANT_BOOL) -> windows_link::link!("oleaut32.dll" "system" fn VarUI1FromBool(boolin : super::super::Foundation:: VARIANT_BOOL, pbout : *mut u8) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - VarUI1FromBool(boolin, &mut result__).map(|| core::mem::transmute(result__)) + VarUI1FromBool(boolin, &mut result__).map(|| result__) } } #[cfg(feature = "Win32_System_Com")] @@ -3114,7 +3114,7 @@ pub unsafe fn VarUI1FromCy(cyin: super::Com::CY) -> windows_core::Result { windows_link::link!("oleaut32.dll" "system" fn VarUI1FromCy(cyin : super::Com:: CY, pbout : *mut u8) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - VarUI1FromCy(core::mem::transmute(cyin), &mut result__).map(|| core::mem::transmute(result__)) + VarUI1FromCy(core::mem::transmute(cyin), &mut result__).map(|| result__) } } #[inline] @@ -3122,7 +3122,7 @@ pub unsafe fn VarUI1FromDate(datein: f64) -> windows_core::Result { windows_link::link!("oleaut32.dll" "system" fn VarUI1FromDate(datein : f64, pbout : *mut u8) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - VarUI1FromDate(datein, &mut result__).map(|| core::mem::transmute(result__)) + VarUI1FromDate(datein, &mut result__).map(|| result__) } } #[inline] @@ -3130,7 +3130,7 @@ pub unsafe fn VarUI1FromDec(pdecin: *const super::super::Foundation::DECIMAL) -> windows_link::link!("oleaut32.dll" "system" fn VarUI1FromDec(pdecin : *const super::super::Foundation:: DECIMAL, pbout : *mut u8) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - VarUI1FromDec(pdecin, &mut result__).map(|| core::mem::transmute(result__)) + VarUI1FromDec(pdecin, &mut result__).map(|| result__) } } #[cfg(feature = "Win32_System_Com")] @@ -3142,7 +3142,7 @@ where windows_link::link!("oleaut32.dll" "system" fn VarUI1FromDisp(pdispin : * mut core::ffi::c_void, lcid : u32, pbout : *mut u8) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - VarUI1FromDisp(pdispin.param().abi(), lcid, &mut result__).map(|| core::mem::transmute(result__)) + VarUI1FromDisp(pdispin.param().abi(), lcid, &mut result__).map(|| result__) } } #[inline] @@ -3150,7 +3150,7 @@ pub unsafe fn VarUI1FromI1(cin: i8) -> windows_core::Result { windows_link::link!("oleaut32.dll" "system" fn VarUI1FromI1(cin : i8, pbout : *mut u8) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - VarUI1FromI1(cin, &mut result__).map(|| core::mem::transmute(result__)) + VarUI1FromI1(cin, &mut result__).map(|| result__) } } #[inline] @@ -3158,7 +3158,7 @@ pub unsafe fn VarUI1FromI2(sin: i16) -> windows_core::Result { windows_link::link!("oleaut32.dll" "system" fn VarUI1FromI2(sin : i16, pbout : *mut u8) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - VarUI1FromI2(sin, &mut result__).map(|| core::mem::transmute(result__)) + VarUI1FromI2(sin, &mut result__).map(|| result__) } } #[inline] @@ -3166,7 +3166,7 @@ pub unsafe fn VarUI1FromI4(lin: i32) -> windows_core::Result { windows_link::link!("oleaut32.dll" "system" fn VarUI1FromI4(lin : i32, pbout : *mut u8) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - VarUI1FromI4(lin, &mut result__).map(|| core::mem::transmute(result__)) + VarUI1FromI4(lin, &mut result__).map(|| result__) } } #[inline] @@ -3174,7 +3174,7 @@ pub unsafe fn VarUI1FromI8(i64in: i64) -> windows_core::Result { windows_link::link!("oleaut32.dll" "system" fn VarUI1FromI8(i64in : i64, pbout : *mut u8) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - VarUI1FromI8(i64in, &mut result__).map(|| core::mem::transmute(result__)) + VarUI1FromI8(i64in, &mut result__).map(|| result__) } } #[inline] @@ -3182,7 +3182,7 @@ pub unsafe fn VarUI1FromR4(fltin: f32) -> windows_core::Result { windows_link::link!("oleaut32.dll" "system" fn VarUI1FromR4(fltin : f32, pbout : *mut u8) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - VarUI1FromR4(fltin, &mut result__).map(|| core::mem::transmute(result__)) + VarUI1FromR4(fltin, &mut result__).map(|| result__) } } #[inline] @@ -3190,7 +3190,7 @@ pub unsafe fn VarUI1FromR8(dblin: f64) -> windows_core::Result { windows_link::link!("oleaut32.dll" "system" fn VarUI1FromR8(dblin : f64, pbout : *mut u8) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - VarUI1FromR8(dblin, &mut result__).map(|| core::mem::transmute(result__)) + VarUI1FromR8(dblin, &mut result__).map(|| result__) } } #[inline] @@ -3201,7 +3201,7 @@ where windows_link::link!("oleaut32.dll" "system" fn VarUI1FromStr(strin : windows_core::PCWSTR, lcid : u32, dwflags : u32, pbout : *mut u8) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - VarUI1FromStr(strin.param().abi(), lcid, dwflags, &mut result__).map(|| core::mem::transmute(result__)) + VarUI1FromStr(strin.param().abi(), lcid, dwflags, &mut result__).map(|| result__) } } #[inline] @@ -3209,7 +3209,7 @@ pub unsafe fn VarUI1FromUI2(uiin: u16) -> windows_core::Result { windows_link::link!("oleaut32.dll" "system" fn VarUI1FromUI2(uiin : u16, pbout : *mut u8) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - VarUI1FromUI2(uiin, &mut result__).map(|| core::mem::transmute(result__)) + VarUI1FromUI2(uiin, &mut result__).map(|| result__) } } #[inline] @@ -3217,7 +3217,7 @@ pub unsafe fn VarUI1FromUI4(ulin: u32) -> windows_core::Result { windows_link::link!("oleaut32.dll" "system" fn VarUI1FromUI4(ulin : u32, pbout : *mut u8) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - VarUI1FromUI4(ulin, &mut result__).map(|| core::mem::transmute(result__)) + VarUI1FromUI4(ulin, &mut result__).map(|| result__) } } #[inline] @@ -3225,7 +3225,7 @@ pub unsafe fn VarUI1FromUI8(ui64in: u64) -> windows_core::Result { windows_link::link!("oleaut32.dll" "system" fn VarUI1FromUI8(ui64in : u64, pbout : *mut u8) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - VarUI1FromUI8(ui64in, &mut result__).map(|| core::mem::transmute(result__)) + VarUI1FromUI8(ui64in, &mut result__).map(|| result__) } } #[inline] @@ -3233,7 +3233,7 @@ pub unsafe fn VarUI2FromBool(boolin: super::super::Foundation::VARIANT_BOOL) -> windows_link::link!("oleaut32.dll" "system" fn VarUI2FromBool(boolin : super::super::Foundation:: VARIANT_BOOL, puiout : *mut u16) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - VarUI2FromBool(boolin, &mut result__).map(|| core::mem::transmute(result__)) + VarUI2FromBool(boolin, &mut result__).map(|| result__) } } #[cfg(feature = "Win32_System_Com")] @@ -3242,7 +3242,7 @@ pub unsafe fn VarUI2FromCy(cyin: super::Com::CY) -> windows_core::Result { windows_link::link!("oleaut32.dll" "system" fn VarUI2FromCy(cyin : super::Com:: CY, puiout : *mut u16) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - VarUI2FromCy(core::mem::transmute(cyin), &mut result__).map(|| core::mem::transmute(result__)) + VarUI2FromCy(core::mem::transmute(cyin), &mut result__).map(|| result__) } } #[inline] @@ -3250,7 +3250,7 @@ pub unsafe fn VarUI2FromDate(datein: f64) -> windows_core::Result { windows_link::link!("oleaut32.dll" "system" fn VarUI2FromDate(datein : f64, puiout : *mut u16) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - VarUI2FromDate(datein, &mut result__).map(|| core::mem::transmute(result__)) + VarUI2FromDate(datein, &mut result__).map(|| result__) } } #[inline] @@ -3258,7 +3258,7 @@ pub unsafe fn VarUI2FromDec(pdecin: *const super::super::Foundation::DECIMAL) -> windows_link::link!("oleaut32.dll" "system" fn VarUI2FromDec(pdecin : *const super::super::Foundation:: DECIMAL, puiout : *mut u16) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - VarUI2FromDec(pdecin, &mut result__).map(|| core::mem::transmute(result__)) + VarUI2FromDec(pdecin, &mut result__).map(|| result__) } } #[cfg(feature = "Win32_System_Com")] @@ -3270,7 +3270,7 @@ where windows_link::link!("oleaut32.dll" "system" fn VarUI2FromDisp(pdispin : * mut core::ffi::c_void, lcid : u32, puiout : *mut u16) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - VarUI2FromDisp(pdispin.param().abi(), lcid, &mut result__).map(|| core::mem::transmute(result__)) + VarUI2FromDisp(pdispin.param().abi(), lcid, &mut result__).map(|| result__) } } #[inline] @@ -3278,7 +3278,7 @@ pub unsafe fn VarUI2FromI1(cin: i8) -> windows_core::Result { windows_link::link!("oleaut32.dll" "system" fn VarUI2FromI1(cin : i8, puiout : *mut u16) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - VarUI2FromI1(cin, &mut result__).map(|| core::mem::transmute(result__)) + VarUI2FromI1(cin, &mut result__).map(|| result__) } } #[inline] @@ -3286,7 +3286,7 @@ pub unsafe fn VarUI2FromI2(uiin: i16) -> windows_core::Result { windows_link::link!("oleaut32.dll" "system" fn VarUI2FromI2(uiin : i16, puiout : *mut u16) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - VarUI2FromI2(uiin, &mut result__).map(|| core::mem::transmute(result__)) + VarUI2FromI2(uiin, &mut result__).map(|| result__) } } #[inline] @@ -3294,7 +3294,7 @@ pub unsafe fn VarUI2FromI4(lin: i32) -> windows_core::Result { windows_link::link!("oleaut32.dll" "system" fn VarUI2FromI4(lin : i32, puiout : *mut u16) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - VarUI2FromI4(lin, &mut result__).map(|| core::mem::transmute(result__)) + VarUI2FromI4(lin, &mut result__).map(|| result__) } } #[inline] @@ -3302,7 +3302,7 @@ pub unsafe fn VarUI2FromI8(i64in: i64) -> windows_core::Result { windows_link::link!("oleaut32.dll" "system" fn VarUI2FromI8(i64in : i64, puiout : *mut u16) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - VarUI2FromI8(i64in, &mut result__).map(|| core::mem::transmute(result__)) + VarUI2FromI8(i64in, &mut result__).map(|| result__) } } #[inline] @@ -3310,7 +3310,7 @@ pub unsafe fn VarUI2FromR4(fltin: f32) -> windows_core::Result { windows_link::link!("oleaut32.dll" "system" fn VarUI2FromR4(fltin : f32, puiout : *mut u16) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - VarUI2FromR4(fltin, &mut result__).map(|| core::mem::transmute(result__)) + VarUI2FromR4(fltin, &mut result__).map(|| result__) } } #[inline] @@ -3326,7 +3326,7 @@ where windows_link::link!("oleaut32.dll" "system" fn VarUI2FromStr(strin : windows_core::PCWSTR, lcid : u32, dwflags : u32, puiout : *mut u16) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - VarUI2FromStr(strin.param().abi(), lcid, dwflags, &mut result__).map(|| core::mem::transmute(result__)) + VarUI2FromStr(strin.param().abi(), lcid, dwflags, &mut result__).map(|| result__) } } #[inline] @@ -3334,7 +3334,7 @@ pub unsafe fn VarUI2FromUI1(bin: u8) -> windows_core::Result { windows_link::link!("oleaut32.dll" "system" fn VarUI2FromUI1(bin : u8, puiout : *mut u16) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - VarUI2FromUI1(bin, &mut result__).map(|| core::mem::transmute(result__)) + VarUI2FromUI1(bin, &mut result__).map(|| result__) } } #[inline] @@ -3342,7 +3342,7 @@ pub unsafe fn VarUI2FromUI4(ulin: u32) -> windows_core::Result { windows_link::link!("oleaut32.dll" "system" fn VarUI2FromUI4(ulin : u32, puiout : *mut u16) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - VarUI2FromUI4(ulin, &mut result__).map(|| core::mem::transmute(result__)) + VarUI2FromUI4(ulin, &mut result__).map(|| result__) } } #[inline] @@ -3350,7 +3350,7 @@ pub unsafe fn VarUI2FromUI8(i64in: u64) -> windows_core::Result { windows_link::link!("oleaut32.dll" "system" fn VarUI2FromUI8(i64in : u64, puiout : *mut u16) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - VarUI2FromUI8(i64in, &mut result__).map(|| core::mem::transmute(result__)) + VarUI2FromUI8(i64in, &mut result__).map(|| result__) } } #[inline] @@ -3358,7 +3358,7 @@ pub unsafe fn VarUI4FromBool(boolin: super::super::Foundation::VARIANT_BOOL) -> windows_link::link!("oleaut32.dll" "system" fn VarUI4FromBool(boolin : super::super::Foundation:: VARIANT_BOOL, pulout : *mut u32) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - VarUI4FromBool(boolin, &mut result__).map(|| core::mem::transmute(result__)) + VarUI4FromBool(boolin, &mut result__).map(|| result__) } } #[cfg(feature = "Win32_System_Com")] @@ -3367,7 +3367,7 @@ pub unsafe fn VarUI4FromCy(cyin: super::Com::CY) -> windows_core::Result { windows_link::link!("oleaut32.dll" "system" fn VarUI4FromCy(cyin : super::Com:: CY, pulout : *mut u32) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - VarUI4FromCy(core::mem::transmute(cyin), &mut result__).map(|| core::mem::transmute(result__)) + VarUI4FromCy(core::mem::transmute(cyin), &mut result__).map(|| result__) } } #[inline] @@ -3375,7 +3375,7 @@ pub unsafe fn VarUI4FromDate(datein: f64) -> windows_core::Result { windows_link::link!("oleaut32.dll" "system" fn VarUI4FromDate(datein : f64, pulout : *mut u32) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - VarUI4FromDate(datein, &mut result__).map(|| core::mem::transmute(result__)) + VarUI4FromDate(datein, &mut result__).map(|| result__) } } #[inline] @@ -3383,7 +3383,7 @@ pub unsafe fn VarUI4FromDec(pdecin: *const super::super::Foundation::DECIMAL) -> windows_link::link!("oleaut32.dll" "system" fn VarUI4FromDec(pdecin : *const super::super::Foundation:: DECIMAL, pulout : *mut u32) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - VarUI4FromDec(pdecin, &mut result__).map(|| core::mem::transmute(result__)) + VarUI4FromDec(pdecin, &mut result__).map(|| result__) } } #[cfg(feature = "Win32_System_Com")] @@ -3395,7 +3395,7 @@ where windows_link::link!("oleaut32.dll" "system" fn VarUI4FromDisp(pdispin : * mut core::ffi::c_void, lcid : u32, pulout : *mut u32) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - VarUI4FromDisp(pdispin.param().abi(), lcid, &mut result__).map(|| core::mem::transmute(result__)) + VarUI4FromDisp(pdispin.param().abi(), lcid, &mut result__).map(|| result__) } } #[inline] @@ -3403,7 +3403,7 @@ pub unsafe fn VarUI4FromI1(cin: i8) -> windows_core::Result { windows_link::link!("oleaut32.dll" "system" fn VarUI4FromI1(cin : i8, pulout : *mut u32) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - VarUI4FromI1(cin, &mut result__).map(|| core::mem::transmute(result__)) + VarUI4FromI1(cin, &mut result__).map(|| result__) } } #[inline] @@ -3411,7 +3411,7 @@ pub unsafe fn VarUI4FromI2(uiin: i16) -> windows_core::Result { windows_link::link!("oleaut32.dll" "system" fn VarUI4FromI2(uiin : i16, pulout : *mut u32) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - VarUI4FromI2(uiin, &mut result__).map(|| core::mem::transmute(result__)) + VarUI4FromI2(uiin, &mut result__).map(|| result__) } } #[inline] @@ -3419,7 +3419,7 @@ pub unsafe fn VarUI4FromI4(lin: i32) -> windows_core::Result { windows_link::link!("oleaut32.dll" "system" fn VarUI4FromI4(lin : i32, pulout : *mut u32) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - VarUI4FromI4(lin, &mut result__).map(|| core::mem::transmute(result__)) + VarUI4FromI4(lin, &mut result__).map(|| result__) } } #[inline] @@ -3427,7 +3427,7 @@ pub unsafe fn VarUI4FromI8(i64in: i64) -> windows_core::Result { windows_link::link!("oleaut32.dll" "system" fn VarUI4FromI8(i64in : i64, plout : *mut u32) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - VarUI4FromI8(i64in, &mut result__).map(|| core::mem::transmute(result__)) + VarUI4FromI8(i64in, &mut result__).map(|| result__) } } #[inline] @@ -3435,7 +3435,7 @@ pub unsafe fn VarUI4FromR4(fltin: f32) -> windows_core::Result { windows_link::link!("oleaut32.dll" "system" fn VarUI4FromR4(fltin : f32, pulout : *mut u32) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - VarUI4FromR4(fltin, &mut result__).map(|| core::mem::transmute(result__)) + VarUI4FromR4(fltin, &mut result__).map(|| result__) } } #[inline] @@ -3443,7 +3443,7 @@ pub unsafe fn VarUI4FromR8(dblin: f64) -> windows_core::Result { windows_link::link!("oleaut32.dll" "system" fn VarUI4FromR8(dblin : f64, pulout : *mut u32) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - VarUI4FromR8(dblin, &mut result__).map(|| core::mem::transmute(result__)) + VarUI4FromR8(dblin, &mut result__).map(|| result__) } } #[inline] @@ -3454,7 +3454,7 @@ where windows_link::link!("oleaut32.dll" "system" fn VarUI4FromStr(strin : windows_core::PCWSTR, lcid : u32, dwflags : u32, pulout : *mut u32) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - VarUI4FromStr(strin.param().abi(), lcid, dwflags, &mut result__).map(|| core::mem::transmute(result__)) + VarUI4FromStr(strin.param().abi(), lcid, dwflags, &mut result__).map(|| result__) } } #[inline] @@ -3462,7 +3462,7 @@ pub unsafe fn VarUI4FromUI1(bin: u8) -> windows_core::Result { windows_link::link!("oleaut32.dll" "system" fn VarUI4FromUI1(bin : u8, pulout : *mut u32) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - VarUI4FromUI1(bin, &mut result__).map(|| core::mem::transmute(result__)) + VarUI4FromUI1(bin, &mut result__).map(|| result__) } } #[inline] @@ -3470,7 +3470,7 @@ pub unsafe fn VarUI4FromUI2(uiin: u16) -> windows_core::Result { windows_link::link!("oleaut32.dll" "system" fn VarUI4FromUI2(uiin : u16, pulout : *mut u32) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - VarUI4FromUI2(uiin, &mut result__).map(|| core::mem::transmute(result__)) + VarUI4FromUI2(uiin, &mut result__).map(|| result__) } } #[inline] @@ -3478,7 +3478,7 @@ pub unsafe fn VarUI4FromUI8(ui64in: u64) -> windows_core::Result { windows_link::link!("oleaut32.dll" "system" fn VarUI4FromUI8(ui64in : u64, plout : *mut u32) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - VarUI4FromUI8(ui64in, &mut result__).map(|| core::mem::transmute(result__)) + VarUI4FromUI8(ui64in, &mut result__).map(|| result__) } } #[inline] @@ -3486,7 +3486,7 @@ pub unsafe fn VarUI8FromBool(boolin: super::super::Foundation::VARIANT_BOOL) -> windows_link::link!("oleaut32.dll" "system" fn VarUI8FromBool(boolin : super::super::Foundation:: VARIANT_BOOL, pi64out : *mut u64) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - VarUI8FromBool(boolin, &mut result__).map(|| core::mem::transmute(result__)) + VarUI8FromBool(boolin, &mut result__).map(|| result__) } } #[cfg(feature = "Win32_System_Com")] @@ -3495,7 +3495,7 @@ pub unsafe fn VarUI8FromCy(cyin: super::Com::CY) -> windows_core::Result { windows_link::link!("oleaut32.dll" "system" fn VarUI8FromCy(cyin : super::Com:: CY, pi64out : *mut u64) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - VarUI8FromCy(core::mem::transmute(cyin), &mut result__).map(|| core::mem::transmute(result__)) + VarUI8FromCy(core::mem::transmute(cyin), &mut result__).map(|| result__) } } #[inline] @@ -3503,7 +3503,7 @@ pub unsafe fn VarUI8FromDate(datein: f64) -> windows_core::Result { windows_link::link!("oleaut32.dll" "system" fn VarUI8FromDate(datein : f64, pi64out : *mut u64) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - VarUI8FromDate(datein, &mut result__).map(|| core::mem::transmute(result__)) + VarUI8FromDate(datein, &mut result__).map(|| result__) } } #[inline] @@ -3511,7 +3511,7 @@ pub unsafe fn VarUI8FromDec(pdecin: *const super::super::Foundation::DECIMAL) -> windows_link::link!("oleaut32.dll" "system" fn VarUI8FromDec(pdecin : *const super::super::Foundation:: DECIMAL, pi64out : *mut u64) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - VarUI8FromDec(pdecin, &mut result__).map(|| core::mem::transmute(result__)) + VarUI8FromDec(pdecin, &mut result__).map(|| result__) } } #[cfg(feature = "Win32_System_Com")] @@ -3523,7 +3523,7 @@ where windows_link::link!("oleaut32.dll" "system" fn VarUI8FromDisp(pdispin : * mut core::ffi::c_void, lcid : u32, pi64out : *mut u64) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - VarUI8FromDisp(pdispin.param().abi(), lcid, &mut result__).map(|| core::mem::transmute(result__)) + VarUI8FromDisp(pdispin.param().abi(), lcid, &mut result__).map(|| result__) } } #[inline] @@ -3531,7 +3531,7 @@ pub unsafe fn VarUI8FromI1(cin: i8) -> windows_core::Result { windows_link::link!("oleaut32.dll" "system" fn VarUI8FromI1(cin : i8, pi64out : *mut u64) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - VarUI8FromI1(cin, &mut result__).map(|| core::mem::transmute(result__)) + VarUI8FromI1(cin, &mut result__).map(|| result__) } } #[inline] @@ -3539,7 +3539,7 @@ pub unsafe fn VarUI8FromI2(sin: i16) -> windows_core::Result { windows_link::link!("oleaut32.dll" "system" fn VarUI8FromI2(sin : i16, pi64out : *mut u64) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - VarUI8FromI2(sin, &mut result__).map(|| core::mem::transmute(result__)) + VarUI8FromI2(sin, &mut result__).map(|| result__) } } #[inline] @@ -3547,7 +3547,7 @@ pub unsafe fn VarUI8FromI8(ui64in: i64) -> windows_core::Result { windows_link::link!("oleaut32.dll" "system" fn VarUI8FromI8(ui64in : i64, pi64out : *mut u64) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - VarUI8FromI8(ui64in, &mut result__).map(|| core::mem::transmute(result__)) + VarUI8FromI8(ui64in, &mut result__).map(|| result__) } } #[inline] @@ -3555,7 +3555,7 @@ pub unsafe fn VarUI8FromR4(fltin: f32) -> windows_core::Result { windows_link::link!("oleaut32.dll" "system" fn VarUI8FromR4(fltin : f32, pi64out : *mut u64) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - VarUI8FromR4(fltin, &mut result__).map(|| core::mem::transmute(result__)) + VarUI8FromR4(fltin, &mut result__).map(|| result__) } } #[inline] @@ -3563,7 +3563,7 @@ pub unsafe fn VarUI8FromR8(dblin: f64) -> windows_core::Result { windows_link::link!("oleaut32.dll" "system" fn VarUI8FromR8(dblin : f64, pi64out : *mut u64) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - VarUI8FromR8(dblin, &mut result__).map(|| core::mem::transmute(result__)) + VarUI8FromR8(dblin, &mut result__).map(|| result__) } } #[inline] @@ -3574,7 +3574,7 @@ where windows_link::link!("oleaut32.dll" "system" fn VarUI8FromStr(strin : windows_core::PCWSTR, lcid : u32, dwflags : u32, pi64out : *mut u64) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - VarUI8FromStr(strin.param().abi(), lcid, dwflags, &mut result__).map(|| core::mem::transmute(result__)) + VarUI8FromStr(strin.param().abi(), lcid, dwflags, &mut result__).map(|| result__) } } #[inline] @@ -3582,7 +3582,7 @@ pub unsafe fn VarUI8FromUI1(bin: u8) -> windows_core::Result { windows_link::link!("oleaut32.dll" "system" fn VarUI8FromUI1(bin : u8, pi64out : *mut u64) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - VarUI8FromUI1(bin, &mut result__).map(|| core::mem::transmute(result__)) + VarUI8FromUI1(bin, &mut result__).map(|| result__) } } #[inline] @@ -3590,7 +3590,7 @@ pub unsafe fn VarUI8FromUI2(uiin: u16) -> windows_core::Result { windows_link::link!("oleaut32.dll" "system" fn VarUI8FromUI2(uiin : u16, pi64out : *mut u64) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - VarUI8FromUI2(uiin, &mut result__).map(|| core::mem::transmute(result__)) + VarUI8FromUI2(uiin, &mut result__).map(|| result__) } } #[inline] @@ -3598,7 +3598,7 @@ pub unsafe fn VarUI8FromUI4(ulin: u32) -> windows_core::Result { windows_link::link!("oleaut32.dll" "system" fn VarUI8FromUI4(ulin : u32, pi64out : *mut u64) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - VarUI8FromUI4(ulin, &mut result__).map(|| core::mem::transmute(result__)) + VarUI8FromUI4(ulin, &mut result__).map(|| result__) } } #[inline] @@ -3629,7 +3629,7 @@ pub unsafe fn VectorFromBstr(bstr: &windows_core::BSTR) -> windows_core::Result< windows_link::link!("oleaut32.dll" "system" fn VectorFromBstr(bstr : * mut core::ffi::c_void, ppsa : *mut *mut super::Com:: SAFEARRAY) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - VectorFromBstr(core::mem::transmute_copy(bstr), &mut result__).map(|| core::mem::transmute(result__)) + VectorFromBstr(core::mem::transmute_copy(bstr), &mut result__).map(|| result__) } } #[repr(transparent)] 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 eeabdb4068..3466a1d0bc 100644 --- a/crates/libs/windows/src/Windows/Win32/System/Recovery/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/Recovery/mod.rs @@ -8,7 +8,7 @@ pub unsafe fn ApplicationRecoveryInProgress() -> windows_core::Result windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - ApplicationRecoveryInProgress(&mut result__).map(|| core::mem::transmute(result__)) + ApplicationRecoveryInProgress(&mut result__).map(|| result__) } } #[cfg(feature = "Win32_System_WindowsProgramming")] 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 aba1926c7a..1d4d30c16e 100644 --- a/crates/libs/windows/src/Windows/Win32/System/SecurityCenter/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/SecurityCenter/mod.rs @@ -3,7 +3,7 @@ pub unsafe fn WscGetAntiMalwareUri() -> windows_core::Result windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - WscGetAntiMalwareUri(&mut result__).map(|| core::mem::transmute(result__)) + WscGetAntiMalwareUri(&mut result__).map(|| result__) } } #[inline] 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 490e34ebf9..0146ba03d4 100644 --- a/crates/libs/windows/src/Windows/Win32/System/SubsystemForLinux/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/SubsystemForLinux/mod.rs @@ -31,7 +31,7 @@ where windows_link::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__)) + WslLaunch(distributionname.param().abi(), command.param().abi(), usecurrentworkingdirectory.into(), stdin, stdout, stderr, &mut result__).map(|| result__) } } #[inline] @@ -43,7 +43,7 @@ where windows_link::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__)) + WslLaunchInteractive(distributionname.param().abi(), command.param().abi(), usecurrentworkingdirectory.into(), &mut result__).map(|| result__) } } #[inline] 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 1919e78194..69c0f097b1 100644 --- a/crates/libs/windows/src/Windows/Win32/System/SystemInformation/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/SystemInformation/mod.rs @@ -36,7 +36,7 @@ pub unsafe fn GetIntegratedDisplaySize() -> windows_core::Result { windows_link::link!("api-ms-win-core-sysinfo-l1-2-3.dll" "system" fn GetIntegratedDisplaySize(sizeininches : *mut f64) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - GetIntegratedDisplaySize(&mut result__).map(|| core::mem::transmute(result__)) + GetIntegratedDisplaySize(&mut result__).map(|| result__) } } #[inline] @@ -245,7 +245,7 @@ pub unsafe fn IsWow64GuestMachineSupported(wowguestmachine: IMAGE_FILE_MACHINE) windows_link::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__)) + IsWow64GuestMachineSupported(wowguestmachine, &mut result__).map(|| result__) } } #[inline] 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 e61693772c..4d5b1c71cf 100644 --- a/crates/libs/windows/src/Windows/Win32/System/Threading/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/Threading/mod.rs @@ -740,7 +740,7 @@ pub unsafe fn GetMachineTypeAttributes(machine: u16) -> windows_core::Result windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - GetMachineTypeAttributes(machine, &mut result__).map(|| core::mem::transmute(result__)) + GetMachineTypeAttributes(machine, &mut result__).map(|| result__) } } #[inline] @@ -927,7 +927,7 @@ pub unsafe fn GetThreadDescription(hthread: super::super::Foundation::HANDLE) -> windows_link::link!("kernel32.dll" "system" fn GetThreadDescription(hthread : super::super::Foundation:: HANDLE, ppszthreaddescription : *mut windows_core::PWSTR) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - GetThreadDescription(hthread, &mut result__).map(|| core::mem::transmute(result__)) + GetThreadDescription(hthread, &mut result__).map(|| result__) } } #[cfg(feature = "Win32_System_SystemInformation")] @@ -1352,7 +1352,7 @@ pub unsafe fn RtwqAllocateSerialWorkQueue(workqueueidin: u32) -> windows_core::R windows_link::link!("rtworkq.dll" "system" fn RtwqAllocateSerialWorkQueue(workqueueidin : u32, workqueueidout : *mut u32) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - RtwqAllocateSerialWorkQueue(workqueueidin, &mut result__).map(|| core::mem::transmute(result__)) + RtwqAllocateSerialWorkQueue(workqueueidin, &mut result__).map(|| result__) } } #[inline] @@ -1360,7 +1360,7 @@ pub unsafe fn RtwqAllocateWorkQueue(workqueuetype: RTWQ_WORKQUEUE_TYPE) -> windo windows_link::link!("rtworkq.dll" "system" fn RtwqAllocateWorkQueue(workqueuetype : RTWQ_WORKQUEUE_TYPE, workqueueid : *mut u32) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - RtwqAllocateWorkQueue(workqueuetype, &mut result__).map(|| core::mem::transmute(result__)) + RtwqAllocateWorkQueue(workqueuetype, &mut result__).map(|| result__) } } #[inline] @@ -1413,7 +1413,7 @@ where windows_link::link!("rtworkq.dll" "system" fn RtwqEndRegisterWorkQueueWithMMCSS(result : * mut core::ffi::c_void, taskid : *mut u32) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - RtwqEndRegisterWorkQueueWithMMCSS(result.param().abi(), &mut result__).map(|| core::mem::transmute(result__)) + RtwqEndRegisterWorkQueueWithMMCSS(result.param().abi(), &mut result__).map(|| result__) } } #[inline] @@ -1426,7 +1426,7 @@ pub unsafe fn RtwqGetWorkQueueMMCSSPriority(workqueueid: u32) -> windows_core::R windows_link::link!("rtworkq.dll" "system" fn RtwqGetWorkQueueMMCSSPriority(workqueueid : u32, priority : *mut i32) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - RtwqGetWorkQueueMMCSSPriority(workqueueid, &mut result__).map(|| core::mem::transmute(result__)) + RtwqGetWorkQueueMMCSSPriority(workqueueid, &mut result__).map(|| result__) } } #[inline] @@ -1434,7 +1434,7 @@ pub unsafe fn RtwqGetWorkQueueMMCSSTaskId(workqueueid: u32) -> windows_core::Res windows_link::link!("rtworkq.dll" "system" fn RtwqGetWorkQueueMMCSSTaskId(workqueueid : u32, taskid : *mut u32) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - RtwqGetWorkQueueMMCSSTaskId(workqueueid, &mut result__).map(|| core::mem::transmute(result__)) + RtwqGetWorkQueueMMCSSTaskId(workqueueid, &mut result__).map(|| result__) } } #[inline] @@ -1450,7 +1450,7 @@ pub unsafe fn RtwqJoinWorkQueue(workqueueid: u32, hfile: super::super::Foundatio windows_link::link!("rtworkq.dll" "system" fn RtwqJoinWorkQueue(workqueueid : u32, hfile : super::super::Foundation:: HANDLE, out : *mut super::super::Foundation:: HANDLE) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - RtwqJoinWorkQueue(workqueueid, hfile, &mut result__).map(|| core::mem::transmute(result__)) + RtwqJoinWorkQueue(workqueueid, hfile, &mut result__).map(|| result__) } } #[inline] @@ -1521,7 +1521,7 @@ pub unsafe fn RtwqSetDeadline(workqueueid: u32, deadlineinhns: i64) -> windows_c windows_link::link!("rtworkq.dll" "system" fn RtwqSetDeadline(workqueueid : u32, deadlineinhns : i64, prequest : *mut super::super::Foundation:: HANDLE) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - RtwqSetDeadline(workqueueid, deadlineinhns, &mut result__).map(|| core::mem::transmute(result__)) + RtwqSetDeadline(workqueueid, deadlineinhns, &mut result__).map(|| result__) } } #[inline] @@ -1529,7 +1529,7 @@ pub unsafe fn RtwqSetDeadline2(workqueueid: u32, deadlineinhns: i64, predeadline windows_link::link!("rtworkq.dll" "system" fn RtwqSetDeadline2(workqueueid : u32, deadlineinhns : i64, predeadlineinhns : i64, prequest : *mut super::super::Foundation:: HANDLE) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - RtwqSetDeadline2(workqueueid, deadlineinhns, predeadlineinhns, &mut result__).map(|| core::mem::transmute(result__)) + RtwqSetDeadline2(workqueueid, deadlineinhns, predeadlineinhns, &mut result__).map(|| result__) } } #[inline] diff --git a/crates/libs/windows/src/Windows/Win32/System/Variant/mod.rs b/crates/libs/windows/src/Windows/Win32/System/Variant/mod.rs index 5644825acf..69495fa791 100644 --- a/crates/libs/windows/src/Windows/Win32/System/Variant/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/Variant/mod.rs @@ -239,7 +239,7 @@ pub unsafe fn VariantGetBooleanElem(var: *const VARIANT, ielem: u32) -> windows_ windows_link::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__)) + VariantGetBooleanElem(core::mem::transmute(var), ielem, &mut result__).map(|| result__) } } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -248,7 +248,7 @@ pub unsafe fn VariantGetDoubleElem(var: *const VARIANT, ielem: u32) -> windows_c windows_link::link!("propsys.dll" "system" fn VariantGetDoubleElem(var : *const VARIANT, ielem : u32, pnval : *mut f64) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - VariantGetDoubleElem(core::mem::transmute(var), ielem, &mut result__).map(|| core::mem::transmute(result__)) + VariantGetDoubleElem(core::mem::transmute(var), ielem, &mut result__).map(|| result__) } } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -263,7 +263,7 @@ pub unsafe fn VariantGetInt16Elem(var: *const VARIANT, ielem: u32) -> windows_co windows_link::link!("propsys.dll" "system" fn VariantGetInt16Elem(var : *const VARIANT, ielem : u32, pnval : *mut i16) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - VariantGetInt16Elem(core::mem::transmute(var), ielem, &mut result__).map(|| core::mem::transmute(result__)) + VariantGetInt16Elem(core::mem::transmute(var), ielem, &mut result__).map(|| result__) } } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -272,7 +272,7 @@ pub unsafe fn VariantGetInt32Elem(var: *const VARIANT, ielem: u32) -> windows_co windows_link::link!("propsys.dll" "system" fn VariantGetInt32Elem(var : *const VARIANT, ielem : u32, pnval : *mut i32) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - VariantGetInt32Elem(core::mem::transmute(var), ielem, &mut result__).map(|| core::mem::transmute(result__)) + VariantGetInt32Elem(core::mem::transmute(var), ielem, &mut result__).map(|| result__) } } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -281,7 +281,7 @@ pub unsafe fn VariantGetInt64Elem(var: *const VARIANT, ielem: u32) -> windows_co windows_link::link!("propsys.dll" "system" fn VariantGetInt64Elem(var : *const VARIANT, ielem : u32, pnval : *mut i64) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - VariantGetInt64Elem(core::mem::transmute(var), ielem, &mut result__).map(|| core::mem::transmute(result__)) + VariantGetInt64Elem(core::mem::transmute(var), ielem, &mut result__).map(|| result__) } } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -290,7 +290,7 @@ pub unsafe fn VariantGetStringElem(var: *const VARIANT, ielem: u32) -> windows_c windows_link::link!("propsys.dll" "system" fn VariantGetStringElem(var : *const VARIANT, ielem : u32, ppszval : *mut windows_core::PWSTR) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - VariantGetStringElem(core::mem::transmute(var), ielem, &mut result__).map(|| core::mem::transmute(result__)) + VariantGetStringElem(core::mem::transmute(var), ielem, &mut result__).map(|| result__) } } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -299,7 +299,7 @@ pub unsafe fn VariantGetUInt16Elem(var: *const VARIANT, ielem: u32) -> windows_c windows_link::link!("propsys.dll" "system" fn VariantGetUInt16Elem(var : *const VARIANT, ielem : u32, pnval : *mut u16) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - VariantGetUInt16Elem(core::mem::transmute(var), ielem, &mut result__).map(|| core::mem::transmute(result__)) + VariantGetUInt16Elem(core::mem::transmute(var), ielem, &mut result__).map(|| result__) } } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -308,7 +308,7 @@ pub unsafe fn VariantGetUInt32Elem(var: *const VARIANT, ielem: u32) -> windows_c windows_link::link!("propsys.dll" "system" fn VariantGetUInt32Elem(var : *const VARIANT, ielem : u32, pnval : *mut u32) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - VariantGetUInt32Elem(core::mem::transmute(var), ielem, &mut result__).map(|| core::mem::transmute(result__)) + VariantGetUInt32Elem(core::mem::transmute(var), ielem, &mut result__).map(|| result__) } } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -317,7 +317,7 @@ pub unsafe fn VariantGetUInt64Elem(var: *const VARIANT, ielem: u32) -> windows_c windows_link::link!("propsys.dll" "system" fn VariantGetUInt64Elem(var : *const VARIANT, ielem : u32, pnval : *mut u64) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - VariantGetUInt64Elem(core::mem::transmute(var), ielem, &mut result__).map(|| core::mem::transmute(result__)) + VariantGetUInt64Elem(core::mem::transmute(var), ielem, &mut result__).map(|| result__) } } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -346,7 +346,7 @@ pub unsafe fn VariantToBoolean(varin: *const VARIANT) -> windows_core::Result windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - VariantToBoolean(core::mem::transmute(varin), &mut result__).map(|| core::mem::transmute(result__)) + VariantToBoolean(core::mem::transmute(varin), &mut result__).map(|| result__) } } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -385,7 +385,7 @@ pub unsafe fn VariantToDouble(varin: *const VARIANT) -> windows_core::Result windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - VariantToDouble(core::mem::transmute(varin), &mut result__).map(|| core::mem::transmute(result__)) + VariantToDouble(core::mem::transmute(varin), &mut result__).map(|| result__) } } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -412,7 +412,7 @@ pub unsafe fn VariantToFileTime(varin: *const VARIANT, stfout: PSTIME_FLAGS) -> windows_link::link!("propsys.dll" "system" fn VariantToFileTime(varin : *const VARIANT, stfout : PSTIME_FLAGS, pftout : *mut super::super::Foundation:: FILETIME) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - VariantToFileTime(core::mem::transmute(varin), stfout, &mut result__).map(|| core::mem::transmute(result__)) + VariantToFileTime(core::mem::transmute(varin), stfout, &mut result__).map(|| result__) } } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -421,7 +421,7 @@ pub unsafe fn VariantToGUID(varin: *const VARIANT) -> windows_core::Result windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - VariantToGUID(core::mem::transmute(varin), &mut result__).map(|| core::mem::transmute(result__)) + VariantToGUID(core::mem::transmute(varin), &mut result__).map(|| result__) } } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -430,7 +430,7 @@ pub unsafe fn VariantToInt16(varin: *const VARIANT) -> windows_core::Result windows_link::link!("propsys.dll" "system" fn VariantToInt16(varin : *const VARIANT, piret : *mut i16) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - VariantToInt16(core::mem::transmute(varin), &mut result__).map(|| core::mem::transmute(result__)) + VariantToInt16(core::mem::transmute(varin), &mut result__).map(|| result__) } } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -457,7 +457,7 @@ pub unsafe fn VariantToInt32(varin: *const VARIANT) -> windows_core::Result windows_link::link!("propsys.dll" "system" fn VariantToInt32(varin : *const VARIANT, plret : *mut i32) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - VariantToInt32(core::mem::transmute(varin), &mut result__).map(|| core::mem::transmute(result__)) + VariantToInt32(core::mem::transmute(varin), &mut result__).map(|| result__) } } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -484,7 +484,7 @@ pub unsafe fn VariantToInt64(varin: *const VARIANT) -> windows_core::Result windows_link::link!("propsys.dll" "system" fn VariantToInt64(varin : *const VARIANT, pllret : *mut i64) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - VariantToInt64(core::mem::transmute(varin), &mut result__).map(|| core::mem::transmute(result__)) + VariantToInt64(core::mem::transmute(varin), &mut result__).map(|| result__) } } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -517,7 +517,7 @@ pub unsafe fn VariantToStringAlloc(varin: *const VARIANT) -> windows_core::Resul windows_link::link!("propsys.dll" "system" fn VariantToStringAlloc(varin : *const VARIANT, ppszbuf : *mut windows_core::PWSTR) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - VariantToStringAlloc(core::mem::transmute(varin), &mut result__).map(|| core::mem::transmute(result__)) + VariantToStringAlloc(core::mem::transmute(varin), &mut result__).map(|| result__) } } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -547,7 +547,7 @@ pub unsafe fn VariantToUInt16(varin: *const VARIANT) -> windows_core::Result windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - VariantToUInt16(core::mem::transmute(varin), &mut result__).map(|| core::mem::transmute(result__)) + VariantToUInt16(core::mem::transmute(varin), &mut result__).map(|| result__) } } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -574,7 +574,7 @@ pub unsafe fn VariantToUInt32(varin: *const VARIANT) -> windows_core::Result windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - VariantToUInt32(core::mem::transmute(varin), &mut result__).map(|| core::mem::transmute(result__)) + VariantToUInt32(core::mem::transmute(varin), &mut result__).map(|| result__) } } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -601,7 +601,7 @@ pub unsafe fn VariantToUInt64(varin: *const VARIANT) -> windows_core::Result windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - VariantToUInt64(core::mem::transmute(varin), &mut result__).map(|| core::mem::transmute(result__)) + VariantToUInt64(core::mem::transmute(varin), &mut result__).map(|| result__) } } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole"))] 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 b281ed4987..b49753c129 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 @@ -50,7 +50,7 @@ where windows_link::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__)) + RoIsApiContractMajorVersionPresent(name.param().abi(), majorversion, &mut result__).map(|| result__) } } #[inline] @@ -61,7 +61,7 @@ where windows_link::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__)) + RoIsApiContractPresent(name.param().abi(), majorversion, minorversion, &mut result__).map(|| result__) } } #[inline] 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 516f32dc8a..1c9352faee 100644 --- a/crates/libs/windows/src/Windows/Win32/System/WinRT/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/WinRT/mod.rs @@ -33,7 +33,7 @@ pub unsafe fn CoDecodeProxy(dwclientpid: u32, ui64proxyaddress: u64) -> windows_ windows_link::link!("ole32.dll" "system" fn CoDecodeProxy(dwclientpid : u32, ui64proxyaddress : u64, pserverinformation : *mut ServerInformation) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - CoDecodeProxy(dwclientpid, ui64proxyaddress, &mut result__).map(|| core::mem::transmute(result__)) + CoDecodeProxy(dwclientpid, ui64proxyaddress, &mut result__).map(|| result__) } } #[inline] @@ -196,7 +196,7 @@ pub unsafe fn RoGetApartmentIdentifier() -> windows_core::Result { windows_link::link!("api-ms-win-core-winrt-l1-1-0.dll" "system" fn RoGetApartmentIdentifier(apartmentidentifier : *mut u64) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - RoGetApartmentIdentifier(&mut result__).map(|| core::mem::transmute(result__)) + RoGetApartmentIdentifier(&mut result__).map(|| result__) } } #[cfg(feature = "Win32_System_Com_Marshal")] @@ -213,7 +213,7 @@ pub unsafe fn RoGetErrorReportingFlags() -> windows_core::Result { windows_link::link!("api-ms-win-core-winrt-error-l1-1-0.dll" "system" fn RoGetErrorReportingFlags(pflags : *mut u32) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - RoGetErrorReportingFlags(&mut result__).map(|| core::mem::transmute(result__)) + RoGetErrorReportingFlags(&mut result__).map(|| result__) } } #[inline] @@ -244,7 +244,7 @@ pub unsafe fn RoInspectThreadErrorInfo(targettebaddress: usize, machine: u16, re windows_link::link!("api-ms-win-core-winrt-error-l1-1-1.dll" "system" fn RoInspectThreadErrorInfo(targettebaddress : usize, machine : u16, readmemorycallback : PINSPECT_MEMORY_CALLBACK, context : *const core::ffi::c_void, targeterrorinfoaddress : *mut usize) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - RoInspectThreadErrorInfo(targettebaddress, machine, readmemorycallback, context.unwrap_or(core::mem::zeroed()) as _, &mut result__).map(|| core::mem::transmute(result__)) + RoInspectThreadErrorInfo(targettebaddress, machine, readmemorycallback, context.unwrap_or(core::mem::zeroed()) as _, &mut result__).map(|| result__) } } #[inline] @@ -270,7 +270,7 @@ pub unsafe fn RoRegisterActivationFactories(activatableclassids: *const windows_ windows_link::link!("api-ms-win-core-winrt-l1-1-0.dll" "system" fn RoRegisterActivationFactories(activatableclassids : *const * mut core::ffi::c_void, activationfactorycallbacks : *const PFNGETACTIVATIONFACTORY, count : u32, cookie : *mut RO_REGISTRATION_COOKIE) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - RoRegisterActivationFactories(core::mem::transmute(activatableclassids), activationfactorycallbacks, count, &mut result__).map(|| core::mem::transmute(result__)) + RoRegisterActivationFactories(core::mem::transmute(activatableclassids), activationfactorycallbacks, count, &mut result__).map(|| result__) } } #[inline] @@ -352,7 +352,7 @@ pub unsafe fn WindowsCompareStringOrdinal(string1: &windows_core::HSTRING, strin windows_link::link!("api-ms-win-core-winrt-string-l1-1-0.dll" "system" fn WindowsCompareStringOrdinal(string1 : * mut core::ffi::c_void, string2 : * mut core::ffi::c_void, result : *mut i32) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - WindowsCompareStringOrdinal(core::mem::transmute_copy(string1), core::mem::transmute_copy(string2), &mut result__).map(|| core::mem::transmute(result__)) + WindowsCompareStringOrdinal(core::mem::transmute_copy(string1), core::mem::transmute_copy(string2), &mut result__).map(|| result__) } } #[inline] @@ -448,7 +448,7 @@ pub unsafe fn WindowsStringHasEmbeddedNull(string: &windows_core::HSTRING) -> wi windows_link::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__)) + WindowsStringHasEmbeddedNull(core::mem::transmute_copy(string), &mut result__).map(|| result__) } } #[inline] 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 57e674db98..57134ae924 100644 --- a/crates/libs/windows/src/Windows/Win32/System/WindowsProgramming/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/WindowsProgramming/mod.rs @@ -726,7 +726,7 @@ pub unsafe fn QueryAuxiliaryCounterFrequency() -> windows_core::Result { windows_link::link!("api-ms-win-core-realtime-l1-1-2.dll" "system" fn QueryAuxiliaryCounterFrequency(lpauxiliarycounterfrequency : *mut u64) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - QueryAuxiliaryCounterFrequency(&mut result__).map(|| core::mem::transmute(result__)) + QueryAuxiliaryCounterFrequency(&mut result__).map(|| result__) } } #[inline] @@ -1251,7 +1251,7 @@ where windows_link::link!("wldp.dll" "system" fn WldpCanExecuteBuffer(host : *const windows_core::GUID, options : WLDP_EXECUTION_EVALUATION_OPTIONS, buffer : *const u8, buffersize : u32, auditinfo : windows_core::PCWSTR, result : *mut WLDP_EXECUTION_POLICY) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - WldpCanExecuteBuffer(host, options, core::mem::transmute(buffer.as_ptr()), buffer.len().try_into().unwrap(), auditinfo.param().abi(), &mut result__).map(|| core::mem::transmute(result__)) + WldpCanExecuteBuffer(host, options, core::mem::transmute(buffer.as_ptr()), buffer.len().try_into().unwrap(), auditinfo.param().abi(), &mut result__).map(|| result__) } } #[inline] @@ -1262,7 +1262,7 @@ where windows_link::link!("wldp.dll" "system" fn WldpCanExecuteFile(host : *const windows_core::GUID, options : WLDP_EXECUTION_EVALUATION_OPTIONS, filehandle : super::super::Foundation:: HANDLE, auditinfo : windows_core::PCWSTR, result : *mut WLDP_EXECUTION_POLICY) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - WldpCanExecuteFile(host, options, filehandle, auditinfo.param().abi(), &mut result__).map(|| core::mem::transmute(result__)) + WldpCanExecuteFile(host, options, filehandle, auditinfo.param().abi(), &mut result__).map(|| result__) } } #[cfg(feature = "Win32_System_Com")] @@ -1275,7 +1275,7 @@ where windows_link::link!("wldp.dll" "system" fn WldpCanExecuteStream(host : *const windows_core::GUID, options : WLDP_EXECUTION_EVALUATION_OPTIONS, stream : * mut core::ffi::c_void, auditinfo : windows_core::PCWSTR, result : *mut WLDP_EXECUTION_POLICY) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - WldpCanExecuteStream(host, options, stream.param().abi(), auditinfo.param().abi(), &mut result__).map(|| core::mem::transmute(result__)) + WldpCanExecuteStream(host, options, stream.param().abi(), auditinfo.param().abi(), &mut result__).map(|| result__) } } #[inline] @@ -1293,7 +1293,7 @@ pub unsafe fn WldpIsDynamicCodePolicyEnabled() -> windows_core::Result windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - WldpIsDynamicCodePolicyEnabled(&mut result__).map(|| core::mem::transmute(result__)) + WldpIsDynamicCodePolicyEnabled(&mut result__).map(|| result__) } } #[inline] 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 a99f9950ec..3bdbbbde9c 100644 --- a/crates/libs/windows/src/Windows/Win32/UI/ColorSystem/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/UI/ColorSystem/mod.rs @@ -176,7 +176,7 @@ pub unsafe fn ColorProfileGetDisplayDefault(scope: WCS_PROFILE_MANAGEMENT_SCOPE, windows_link::link!("mscms.dll" "system" fn ColorProfileGetDisplayDefault(scope : WCS_PROFILE_MANAGEMENT_SCOPE, targetadapterid : super::super::Foundation:: LUID, sourceid : u32, profiletype : COLORPROFILETYPE, profilesubtype : COLORPROFILESUBTYPE, profilename : *mut windows_core::PWSTR) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - ColorProfileGetDisplayDefault(scope, core::mem::transmute(targetadapterid), sourceid, profiletype, profilesubtype, &mut result__).map(|| core::mem::transmute(result__)) + ColorProfileGetDisplayDefault(scope, core::mem::transmute(targetadapterid), sourceid, profiletype, profilesubtype, &mut result__).map(|| result__) } } #[inline] @@ -189,7 +189,7 @@ pub unsafe fn ColorProfileGetDisplayUserScope(targetadapterid: super::super::Fou windows_link::link!("mscms.dll" "system" fn ColorProfileGetDisplayUserScope(targetadapterid : super::super::Foundation:: LUID, sourceid : u32, scope : *mut WCS_PROFILE_MANAGEMENT_SCOPE) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - ColorProfileGetDisplayUserScope(core::mem::transmute(targetadapterid), sourceid, &mut result__).map(|| core::mem::transmute(result__)) + ColorProfileGetDisplayUserScope(core::mem::transmute(targetadapterid), sourceid, &mut result__).map(|| result__) } } #[inline] 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 d123092c72..4df60b9920 100644 --- a/crates/libs/windows/src/Windows/Win32/UI/Controls/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/UI/Controls/mod.rs @@ -535,7 +535,7 @@ pub unsafe fn GetBufferedPaintTargetRect(hbufferedpaint: isize) -> windows_core: windows_link::link!("uxtheme.dll" "system" fn GetBufferedPaintTargetRect(hbufferedpaint : isize, prc : *mut super::super::Foundation:: RECT) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - GetBufferedPaintTargetRect(hbufferedpaint, &mut result__).map(|| core::mem::transmute(result__)) + GetBufferedPaintTargetRect(hbufferedpaint, &mut result__).map(|| result__) } } #[inline] @@ -584,7 +584,7 @@ pub unsafe fn GetThemeBackgroundContentRect(htheme: HTHEME, hdc: Option windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - GetThemeBackgroundContentRect(htheme, hdc.unwrap_or(core::mem::zeroed()) as _, ipartid, istateid, pboundingrect, &mut result__).map(|| core::mem::transmute(result__)) + GetThemeBackgroundContentRect(htheme, hdc.unwrap_or(core::mem::zeroed()) as _, ipartid, istateid, pboundingrect, &mut result__).map(|| result__) } } #[cfg(feature = "Win32_Graphics_Gdi")] @@ -593,7 +593,7 @@ pub unsafe fn GetThemeBackgroundExtent(htheme: HTHEME, hdc: Option windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - GetThemeBackgroundExtent(htheme, hdc.unwrap_or(core::mem::zeroed()) as _, ipartid, istateid, pcontentrect, &mut result__).map(|| core::mem::transmute(result__)) + GetThemeBackgroundExtent(htheme, hdc.unwrap_or(core::mem::zeroed()) as _, ipartid, istateid, pcontentrect, &mut result__).map(|| result__) } } #[cfg(feature = "Win32_Graphics_Gdi")] @@ -602,7 +602,7 @@ pub unsafe fn GetThemeBackgroundRegion(htheme: HTHEME, hdc: Option windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - GetThemeBackgroundRegion(htheme, hdc.unwrap_or(core::mem::zeroed()) as _, ipartid, istateid, prect, &mut result__).map(|| core::mem::transmute(result__)) + GetThemeBackgroundRegion(htheme, hdc.unwrap_or(core::mem::zeroed()) as _, ipartid, istateid, prect, &mut result__).map(|| result__) } } #[cfg(feature = "Win32_Graphics_Gdi")] @@ -611,7 +611,7 @@ pub unsafe fn GetThemeBitmap(htheme: HTHEME, ipartid: i32, istateid: i32, ipropi windows_link::link!("uxtheme.dll" "system" fn GetThemeBitmap(htheme : HTHEME, ipartid : i32, istateid : i32, ipropid : i32, dwflags : GET_THEME_BITMAP_FLAGS, phbitmap : *mut super::super::Graphics::Gdi:: HBITMAP) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - GetThemeBitmap(htheme, ipartid, istateid, ipropid.0 as _, dwflags, &mut result__).map(|| core::mem::transmute(result__)) + GetThemeBitmap(htheme, ipartid, istateid, ipropid.0 as _, dwflags, &mut result__).map(|| result__) } } #[inline] @@ -619,7 +619,7 @@ pub unsafe fn GetThemeBool(htheme: HTHEME, ipartid: i32, istateid: i32, ipropid: windows_link::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__)) + GetThemeBool(htheme, ipartid, istateid, ipropid.0 as _, &mut result__).map(|| result__) } } #[inline] @@ -627,7 +627,7 @@ pub unsafe fn GetThemeColor(htheme: HTHEME, ipartid: i32, istateid: i32, ipropid windows_link::link!("uxtheme.dll" "system" fn GetThemeColor(htheme : HTHEME, ipartid : i32, istateid : i32, ipropid : i32, pcolor : *mut super::super::Foundation:: COLORREF) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - GetThemeColor(htheme, ipartid, istateid, ipropid.0 as _, &mut result__).map(|| core::mem::transmute(result__)) + GetThemeColor(htheme, ipartid, istateid, ipropid.0 as _, &mut result__).map(|| result__) } } #[inline] @@ -644,7 +644,7 @@ pub unsafe fn GetThemeEnumValue(htheme: HTHEME, ipartid: i32, istateid: i32, ipr windows_link::link!("uxtheme.dll" "system" fn GetThemeEnumValue(htheme : HTHEME, ipartid : i32, istateid : i32, ipropid : i32, pival : *mut i32) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - GetThemeEnumValue(htheme, ipartid, istateid, ipropid.0 as _, &mut result__).map(|| core::mem::transmute(result__)) + GetThemeEnumValue(htheme, ipartid, istateid, ipropid.0 as _, &mut result__).map(|| result__) } } #[inline] @@ -663,7 +663,7 @@ pub unsafe fn GetThemeInt(htheme: HTHEME, ipartid: i32, istateid: i32, ipropid: windows_link::link!("uxtheme.dll" "system" fn GetThemeInt(htheme : HTHEME, ipartid : i32, istateid : i32, ipropid : i32, pival : *mut i32) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - GetThemeInt(htheme, ipartid, istateid, ipropid.0 as _, &mut result__).map(|| core::mem::transmute(result__)) + GetThemeInt(htheme, ipartid, istateid, ipropid.0 as _, &mut result__).map(|| result__) } } #[inline] @@ -677,7 +677,7 @@ pub unsafe fn GetThemeMargins(htheme: HTHEME, hdc: Option windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - GetThemeMargins(htheme, hdc.unwrap_or(core::mem::zeroed()) as _, ipartid, istateid, ipropid.0 as _, prc.unwrap_or(core::mem::zeroed()) as _, &mut result__).map(|| core::mem::transmute(result__)) + GetThemeMargins(htheme, hdc.unwrap_or(core::mem::zeroed()) as _, ipartid, istateid, ipropid.0 as _, prc.unwrap_or(core::mem::zeroed()) as _, &mut result__).map(|| result__) } } #[cfg(feature = "Win32_Graphics_Gdi")] @@ -686,7 +686,7 @@ pub unsafe fn GetThemeMetric(htheme: HTHEME, hdc: Option windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - GetThemeMetric(htheme, hdc.unwrap_or(core::mem::zeroed()) as _, ipartid, istateid, ipropid.0 as _, &mut result__).map(|| core::mem::transmute(result__)) + GetThemeMetric(htheme, hdc.unwrap_or(core::mem::zeroed()) as _, ipartid, istateid, ipropid.0 as _, &mut result__).map(|| result__) } } #[cfg(feature = "Win32_Graphics_Gdi")] @@ -695,7 +695,7 @@ pub unsafe fn GetThemePartSize(htheme: HTHEME, hdc: Option windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - GetThemePartSize(htheme, hdc.unwrap_or(core::mem::zeroed()) as _, ipartid, istateid, prc.unwrap_or(core::mem::zeroed()) as _, esize, &mut result__).map(|| core::mem::transmute(result__)) + GetThemePartSize(htheme, hdc.unwrap_or(core::mem::zeroed()) as _, ipartid, istateid, prc.unwrap_or(core::mem::zeroed()) as _, esize, &mut result__).map(|| result__) } } #[inline] @@ -703,7 +703,7 @@ pub unsafe fn GetThemePosition(htheme: HTHEME, ipartid: i32, istateid: i32, ipro windows_link::link!("uxtheme.dll" "system" fn GetThemePosition(htheme : HTHEME, ipartid : i32, istateid : i32, ipropid : i32, ppoint : *mut super::super::Foundation:: POINT) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - GetThemePosition(htheme, ipartid, istateid, ipropid.0 as _, &mut result__).map(|| core::mem::transmute(result__)) + GetThemePosition(htheme, ipartid, istateid, ipropid.0 as _, &mut result__).map(|| result__) } } #[inline] @@ -711,7 +711,7 @@ pub unsafe fn GetThemePropertyOrigin(htheme: HTHEME, ipartid: i32, istateid: i32 windows_link::link!("uxtheme.dll" "system" fn GetThemePropertyOrigin(htheme : HTHEME, ipartid : i32, istateid : i32, ipropid : i32, porigin : *mut PROPERTYORIGIN) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - GetThemePropertyOrigin(htheme, ipartid, istateid, ipropid, &mut result__).map(|| core::mem::transmute(result__)) + GetThemePropertyOrigin(htheme, ipartid, istateid, ipropid, &mut result__).map(|| result__) } } #[inline] @@ -719,7 +719,7 @@ pub unsafe fn GetThemeRect(htheme: HTHEME, ipartid: i32, istateid: i32, ipropid: windows_link::link!("uxtheme.dll" "system" fn GetThemeRect(htheme : HTHEME, ipartid : i32, istateid : i32, ipropid : i32, prect : *mut super::super::Foundation:: RECT) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - GetThemeRect(htheme, ipartid, istateid, ipropid, &mut result__).map(|| core::mem::transmute(result__)) + GetThemeRect(htheme, ipartid, istateid, ipropid, &mut result__).map(|| result__) } } #[inline] @@ -759,7 +759,7 @@ pub unsafe fn GetThemeSysInt(htheme: HTHEME, iintid: THEME_PROPERTY_SYMBOL_ID) - windows_link::link!("uxtheme.dll" "system" fn GetThemeSysInt(htheme : HTHEME, iintid : i32, pivalue : *mut i32) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - GetThemeSysInt(htheme, iintid.0 as _, &mut result__).map(|| core::mem::transmute(result__)) + GetThemeSysInt(htheme, iintid.0 as _, &mut result__).map(|| result__) } } #[inline] @@ -778,7 +778,7 @@ pub unsafe fn GetThemeTextExtent(htheme: HTHEME, hdc: super::super::Graphics::Gd windows_link::link!("uxtheme.dll" "system" fn GetThemeTextExtent(htheme : HTHEME, hdc : super::super::Graphics::Gdi:: HDC, ipartid : i32, istateid : i32, psztext : windows_core::PCWSTR, cchcharcount : i32, dwtextflags : super::super::Graphics::Gdi:: DRAW_TEXT_FORMAT, pboundingrect : *const super::super::Foundation:: RECT, pextentrect : *mut super::super::Foundation:: RECT) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - GetThemeTextExtent(htheme, hdc, ipartid, istateid, core::mem::transmute(psztext.as_ptr()), psztext.len().try_into().unwrap(), dwtextflags, pboundingrect.unwrap_or(core::mem::zeroed()) as _, &mut result__).map(|| core::mem::transmute(result__)) + GetThemeTextExtent(htheme, hdc, ipartid, istateid, core::mem::transmute(psztext.as_ptr()), psztext.len().try_into().unwrap(), dwtextflags, pboundingrect.unwrap_or(core::mem::zeroed()) as _, &mut result__).map(|| result__) } } #[cfg(feature = "Win32_Graphics_Gdi")] @@ -797,7 +797,7 @@ pub unsafe fn GetThemeTransitionDuration(htheme: HTHEME, ipartid: i32, istateidf windows_link::link!("uxtheme.dll" "system" fn GetThemeTransitionDuration(htheme : HTHEME, ipartid : i32, istateidfrom : i32, istateidto : i32, ipropid : i32, pdwduration : *mut u32) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - GetThemeTransitionDuration(htheme, ipartid, istateidfrom, istateidto, ipropid, &mut result__).map(|| core::mem::transmute(result__)) + GetThemeTransitionDuration(htheme, ipartid, istateidfrom, istateidto, ipropid, &mut result__).map(|| result__) } } #[inline] @@ -821,7 +821,7 @@ pub unsafe fn HitTestThemeBackground(htheme: HTHEME, hdc: Option windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - HitTestThemeBackground(htheme, hdc.unwrap_or(core::mem::zeroed()) as _, ipartid, istateid, dwoptions, prect, hrgn.unwrap_or(core::mem::zeroed()) as _, core::mem::transmute(pttest), &mut result__).map(|| core::mem::transmute(result__)) + HitTestThemeBackground(htheme, hdc.unwrap_or(core::mem::zeroed()) as _, ipartid, istateid, dwoptions, prect, hrgn.unwrap_or(core::mem::zeroed()) as _, core::mem::transmute(pttest), &mut result__).map(|| result__) } } #[cfg(feature = "Win32_Graphics_Gdi")] @@ -1121,7 +1121,7 @@ where windows_link::link!("comctl32.dll" "system" fn LoadIconMetric(hinst : super::super::Foundation:: HINSTANCE, pszname : windows_core::PCWSTR, lims : _LI_METRIC, phico : *mut super::WindowsAndMessaging:: HICON) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - LoadIconMetric(hinst.unwrap_or(core::mem::zeroed()) as _, pszname.param().abi(), lims, &mut result__).map(|| core::mem::transmute(result__)) + LoadIconMetric(hinst.unwrap_or(core::mem::zeroed()) as _, pszname.param().abi(), lims, &mut result__).map(|| result__) } } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] @@ -1133,7 +1133,7 @@ where windows_link::link!("comctl32.dll" "system" fn LoadIconWithScaleDown(hinst : super::super::Foundation:: HINSTANCE, pszname : windows_core::PCWSTR, cx : i32, cy : i32, phico : *mut super::WindowsAndMessaging:: HICON) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - LoadIconWithScaleDown(hinst.unwrap_or(core::mem::zeroed()) as _, pszname.param().abi(), cx, cy, &mut result__).map(|| core::mem::transmute(result__)) + LoadIconWithScaleDown(hinst.unwrap_or(core::mem::zeroed()) as _, pszname.param().abi(), cx, cy, &mut result__).map(|| result__) } } #[inline] 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 b24aeb1a5d..3cfee6197d 100644 --- a/crates/libs/windows/src/Windows/Win32/UI/HiDpi/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/UI/HiDpi/mod.rs @@ -60,7 +60,7 @@ pub unsafe fn GetProcessDpiAwareness(hprocess: Option windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - GetProcessDpiAwareness(hprocess.unwrap_or(core::mem::zeroed()) as _, &mut result__).map(|| core::mem::transmute(result__)) + GetProcessDpiAwareness(hprocess.unwrap_or(core::mem::zeroed()) as _, &mut result__).map(|| result__) } } #[inline] diff --git a/crates/libs/windows/src/Windows/Win32/UI/InteractionContext/mod.rs b/crates/libs/windows/src/Windows/Win32/UI/InteractionContext/mod.rs index 8c1624e0aa..2cdc2f5236 100644 --- a/crates/libs/windows/src/Windows/Win32/UI/InteractionContext/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/UI/InteractionContext/mod.rs @@ -14,7 +14,7 @@ pub unsafe fn CreateInteractionContext() -> windows_core::Result windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - CreateInteractionContext(&mut result__).map(|| core::mem::transmute(result__)) + CreateInteractionContext(&mut result__).map(|| result__) } } #[inline] @@ -27,7 +27,7 @@ pub unsafe fn GetCrossSlideParameterInteractionContext(interactioncontext: HINTE windows_link::link!("ninput.dll" "system" fn GetCrossSlideParameterInteractionContext(interactioncontext : HINTERACTIONCONTEXT, threshold : CROSS_SLIDE_THRESHOLD, distance : *mut f32) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - GetCrossSlideParameterInteractionContext(interactioncontext, threshold, &mut result__).map(|| core::mem::transmute(result__)) + GetCrossSlideParameterInteractionContext(interactioncontext, threshold, &mut result__).map(|| result__) } } #[inline] @@ -35,7 +35,7 @@ pub unsafe fn GetHoldParameterInteractionContext(interactioncontext: HINTERACTIO windows_link::link!("ninput.dll" "system" fn GetHoldParameterInteractionContext(interactioncontext : HINTERACTIONCONTEXT, parameter : HOLD_PARAMETER, value : *mut f32) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - GetHoldParameterInteractionContext(interactioncontext, parameter, &mut result__).map(|| core::mem::transmute(result__)) + GetHoldParameterInteractionContext(interactioncontext, parameter, &mut result__).map(|| result__) } } #[inline] @@ -43,7 +43,7 @@ pub unsafe fn GetInertiaParameterInteractionContext(interactioncontext: HINTERAC windows_link::link!("ninput.dll" "system" fn GetInertiaParameterInteractionContext(interactioncontext : HINTERACTIONCONTEXT, inertiaparameter : INERTIA_PARAMETER, value : *mut f32) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - GetInertiaParameterInteractionContext(interactioncontext, inertiaparameter, &mut result__).map(|| core::mem::transmute(result__)) + GetInertiaParameterInteractionContext(interactioncontext, inertiaparameter, &mut result__).map(|| result__) } } #[inline] @@ -56,7 +56,7 @@ pub unsafe fn GetMouseWheelParameterInteractionContext(interactioncontext: HINTE windows_link::link!("ninput.dll" "system" fn GetMouseWheelParameterInteractionContext(interactioncontext : HINTERACTIONCONTEXT, parameter : MOUSE_WHEEL_PARAMETER, value : *mut f32) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - GetMouseWheelParameterInteractionContext(interactioncontext, parameter, &mut result__).map(|| core::mem::transmute(result__)) + GetMouseWheelParameterInteractionContext(interactioncontext, parameter, &mut result__).map(|| result__) } } #[inline] @@ -64,7 +64,7 @@ pub unsafe fn GetPropertyInteractionContext(interactioncontext: HINTERACTIONCONT windows_link::link!("ninput.dll" "system" fn GetPropertyInteractionContext(interactioncontext : HINTERACTIONCONTEXT, contextproperty : INTERACTION_CONTEXT_PROPERTY, value : *mut u32) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - GetPropertyInteractionContext(interactioncontext, contextproperty, &mut result__).map(|| core::mem::transmute(result__)) + GetPropertyInteractionContext(interactioncontext, contextproperty, &mut result__).map(|| result__) } } #[cfg(all(feature = "Win32_UI_Input_Pointer", feature = "Win32_UI_WindowsAndMessaging"))] @@ -73,7 +73,7 @@ pub unsafe fn GetStateInteractionContext(interactioncontext: HINTERACTIONCONTEXT windows_link::link!("ninput.dll" "system" fn GetStateInteractionContext(interactioncontext : HINTERACTIONCONTEXT, pointerinfo : *const super::Input::Pointer:: POINTER_INFO, state : *mut INTERACTION_STATE) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - GetStateInteractionContext(interactioncontext, pointerinfo.unwrap_or(core::mem::zeroed()) as _, &mut result__).map(|| core::mem::transmute(result__)) + GetStateInteractionContext(interactioncontext, pointerinfo.unwrap_or(core::mem::zeroed()) as _, &mut result__).map(|| result__) } } #[inline] @@ -81,7 +81,7 @@ pub unsafe fn GetTapParameterInteractionContext(interactioncontext: HINTERACTION windows_link::link!("ninput.dll" "system" fn GetTapParameterInteractionContext(interactioncontext : HINTERACTIONCONTEXT, parameter : TAP_PARAMETER, value : *mut f32) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - GetTapParameterInteractionContext(interactioncontext, parameter, &mut result__).map(|| core::mem::transmute(result__)) + GetTapParameterInteractionContext(interactioncontext, parameter, &mut result__).map(|| result__) } } #[inline] @@ -89,7 +89,7 @@ pub unsafe fn GetTranslationParameterInteractionContext(interactioncontext: HINT windows_link::link!("ninput.dll" "system" fn GetTranslationParameterInteractionContext(interactioncontext : HINTERACTIONCONTEXT, parameter : TRANSLATION_PARAMETER, value : *mut f32) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - GetTranslationParameterInteractionContext(interactioncontext, parameter, &mut result__).map(|| core::mem::transmute(result__)) + GetTranslationParameterInteractionContext(interactioncontext, parameter, &mut result__).map(|| result__) } } #[inline] 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 33f5f8a758..137aa1386e 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 @@ -76,7 +76,7 @@ pub unsafe fn PSFormatForDisplayAlloc(key: *const super::super::super::Foundatio windows_link::link!("propsys.dll" "system" fn PSFormatForDisplayAlloc(key : *const super::super::super::Foundation:: PROPERTYKEY, propvar : *const super::super::super::System::Com::StructuredStorage:: PROPVARIANT, pdff : PROPDESC_FORMAT_FLAGS, ppszdisplay : *mut windows_core::PWSTR) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - PSFormatForDisplayAlloc(key, core::mem::transmute(propvar), pdff, &mut result__).map(|| core::mem::transmute(result__)) + PSFormatForDisplayAlloc(key, core::mem::transmute(propvar), pdff, &mut result__).map(|| result__) } } #[inline] @@ -88,7 +88,7 @@ where windows_link::link!("propsys.dll" "system" fn PSFormatPropertyValue(pps : * mut core::ffi::c_void, ppd : * mut core::ffi::c_void, pdff : PROPDESC_FORMAT_FLAGS, ppszdisplay : *mut windows_core::PWSTR) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - PSFormatPropertyValue(pps.param().abi(), ppd.param().abi(), pdff, &mut result__).map(|| core::mem::transmute(result__)) + PSFormatPropertyValue(pps.param().abi(), ppd.param().abi(), pdff, &mut result__).map(|| result__) } } #[cfg(all(feature = "Win32_System_Com_StructuredStorage", feature = "Win32_System_Variant"))] @@ -97,7 +97,7 @@ pub unsafe fn PSGetImageReferenceForValue(propkey: *const super::super::super::F windows_link::link!("propsys.dll" "system" fn PSGetImageReferenceForValue(propkey : *const super::super::super::Foundation:: PROPERTYKEY, propvar : *const super::super::super::System::Com::StructuredStorage:: PROPVARIANT, ppszimageres : *mut windows_core::PWSTR) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - PSGetImageReferenceForValue(propkey, core::mem::transmute(propvar), &mut result__).map(|| core::mem::transmute(result__)) + PSGetImageReferenceForValue(propkey, core::mem::transmute(propvar), &mut result__).map(|| result__) } } #[inline] @@ -122,7 +122,7 @@ pub unsafe fn PSGetNameFromPropertyKey(propkey: *const super::super::super::Foun windows_link::link!("propsys.dll" "system" fn PSGetNameFromPropertyKey(propkey : *const super::super::super::Foundation:: PROPERTYKEY, ppszcanonicalname : *mut windows_core::PWSTR) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - PSGetNameFromPropertyKey(propkey, &mut result__).map(|| core::mem::transmute(result__)) + PSGetNameFromPropertyKey(propkey, &mut result__).map(|| result__) } } #[cfg(all(feature = "Win32_System_Com_StructuredStorage", feature = "Win32_System_Variant"))] @@ -201,7 +201,7 @@ where windows_link::link!("propsys.dll" "system" fn PSLookupPropertyHandlerCLSID(pszfilepath : windows_core::PCWSTR, pclsid : *mut windows_core::GUID) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - PSLookupPropertyHandlerCLSID(pszfilepath.param().abi(), &mut result__).map(|| core::mem::transmute(result__)) + PSLookupPropertyHandlerCLSID(pszfilepath.param().abi(), &mut result__).map(|| result__) } } #[cfg(feature = "Win32_System_Com_StructuredStorage")] @@ -224,7 +224,7 @@ where windows_link::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__)) + PSPropertyBag_ReadBOOL(propbag.param().abi(), propname.param().abi(), &mut result__).map(|| result__) } } #[cfg(feature = "Win32_System_Com_StructuredStorage")] @@ -250,7 +250,7 @@ where windows_link::link!("propsys.dll" "system" fn PSPropertyBag_ReadDWORD(propbag : * mut core::ffi::c_void, propname : windows_core::PCWSTR, value : *mut u32) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - PSPropertyBag_ReadDWORD(propbag.param().abi(), propname.param().abi(), &mut result__).map(|| core::mem::transmute(result__)) + PSPropertyBag_ReadDWORD(propbag.param().abi(), propname.param().abi(), &mut result__).map(|| result__) } } #[cfg(feature = "Win32_System_Com_StructuredStorage")] @@ -263,7 +263,7 @@ where windows_link::link!("propsys.dll" "system" fn PSPropertyBag_ReadGUID(propbag : * mut core::ffi::c_void, propname : windows_core::PCWSTR, value : *mut windows_core::GUID) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - PSPropertyBag_ReadGUID(propbag.param().abi(), propname.param().abi(), &mut result__).map(|| core::mem::transmute(result__)) + PSPropertyBag_ReadGUID(propbag.param().abi(), propname.param().abi(), &mut result__).map(|| result__) } } #[cfg(feature = "Win32_System_Com_StructuredStorage")] @@ -276,7 +276,7 @@ where windows_link::link!("propsys.dll" "system" fn PSPropertyBag_ReadInt(propbag : * mut core::ffi::c_void, propname : windows_core::PCWSTR, value : *mut i32) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - PSPropertyBag_ReadInt(propbag.param().abi(), propname.param().abi(), &mut result__).map(|| core::mem::transmute(result__)) + PSPropertyBag_ReadInt(propbag.param().abi(), propname.param().abi(), &mut result__).map(|| result__) } } #[cfg(feature = "Win32_System_Com_StructuredStorage")] @@ -289,7 +289,7 @@ where windows_link::link!("propsys.dll" "system" fn PSPropertyBag_ReadLONG(propbag : * mut core::ffi::c_void, propname : windows_core::PCWSTR, value : *mut i32) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - PSPropertyBag_ReadLONG(propbag.param().abi(), propname.param().abi(), &mut result__).map(|| core::mem::transmute(result__)) + PSPropertyBag_ReadLONG(propbag.param().abi(), propname.param().abi(), &mut result__).map(|| result__) } } #[cfg(feature = "Win32_System_Com_StructuredStorage")] @@ -302,7 +302,7 @@ where windows_link::link!("propsys.dll" "system" fn PSPropertyBag_ReadPOINTL(propbag : * mut core::ffi::c_void, propname : windows_core::PCWSTR, value : *mut super::super::super::Foundation:: POINTL) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - PSPropertyBag_ReadPOINTL(propbag.param().abi(), propname.param().abi(), &mut result__).map(|| core::mem::transmute(result__)) + PSPropertyBag_ReadPOINTL(propbag.param().abi(), propname.param().abi(), &mut result__).map(|| result__) } } #[cfg(feature = "Win32_System_Com_StructuredStorage")] @@ -315,7 +315,7 @@ where windows_link::link!("propsys.dll" "system" fn PSPropertyBag_ReadPOINTS(propbag : * mut core::ffi::c_void, propname : windows_core::PCWSTR, value : *mut super::super::super::Foundation:: POINTS) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - PSPropertyBag_ReadPOINTS(propbag.param().abi(), propname.param().abi(), &mut result__).map(|| core::mem::transmute(result__)) + PSPropertyBag_ReadPOINTS(propbag.param().abi(), propname.param().abi(), &mut result__).map(|| result__) } } #[cfg(feature = "Win32_System_Com_StructuredStorage")] @@ -338,7 +338,7 @@ where windows_link::link!("propsys.dll" "system" fn PSPropertyBag_ReadRECTL(propbag : * mut core::ffi::c_void, propname : windows_core::PCWSTR, value : *mut super::super::super::Foundation:: RECTL) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - PSPropertyBag_ReadRECTL(propbag.param().abi(), propname.param().abi(), &mut result__).map(|| core::mem::transmute(result__)) + PSPropertyBag_ReadRECTL(propbag.param().abi(), propname.param().abi(), &mut result__).map(|| result__) } } #[cfg(feature = "Win32_System_Com_StructuredStorage")] @@ -351,7 +351,7 @@ where windows_link::link!("propsys.dll" "system" fn PSPropertyBag_ReadSHORT(propbag : * mut core::ffi::c_void, propname : windows_core::PCWSTR, value : *mut i16) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - PSPropertyBag_ReadSHORT(propbag.param().abi(), propname.param().abi(), &mut result__).map(|| core::mem::transmute(result__)) + PSPropertyBag_ReadSHORT(propbag.param().abi(), propname.param().abi(), &mut result__).map(|| result__) } } #[cfg(feature = "Win32_System_Com_StructuredStorage")] @@ -374,7 +374,7 @@ where windows_link::link!("propsys.dll" "system" fn PSPropertyBag_ReadStrAlloc(propbag : * mut core::ffi::c_void, propname : windows_core::PCWSTR, value : *mut windows_core::PWSTR) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - PSPropertyBag_ReadStrAlloc(propbag.param().abi(), propname.param().abi(), &mut result__).map(|| core::mem::transmute(result__)) + PSPropertyBag_ReadStrAlloc(propbag.param().abi(), propname.param().abi(), &mut result__).map(|| result__) } } #[cfg(feature = "Win32_System_Com_StructuredStorage")] @@ -410,7 +410,7 @@ where windows_link::link!("propsys.dll" "system" fn PSPropertyBag_ReadULONGLONG(propbag : * mut core::ffi::c_void, propname : windows_core::PCWSTR, value : *mut u64) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - PSPropertyBag_ReadULONGLONG(propbag.param().abi(), propname.param().abi(), &mut result__).map(|| core::mem::transmute(result__)) + PSPropertyBag_ReadULONGLONG(propbag.param().abi(), propname.param().abi(), &mut result__).map(|| result__) } } #[cfg(feature = "Win32_System_Com_StructuredStorage")] 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 0788ccde07..5a52c2e8e0 100644 --- a/crates/libs/windows/src/Windows/Win32/UI/Shell/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/UI/Shell/mod.rs @@ -57,7 +57,7 @@ where windows_link::link!("shlwapi.dll" "system" fn AssocQueryKeyA(flags : ASSOCF, key : ASSOCKEY, pszassoc : windows_core::PCSTR, pszextra : windows_core::PCSTR, phkeyout : *mut super::super::System::Registry:: HKEY) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - AssocQueryKeyA(flags, key, pszassoc.param().abi(), pszextra.param().abi(), &mut result__).map(|| core::mem::transmute(result__)) + AssocQueryKeyA(flags, key, pszassoc.param().abi(), pszextra.param().abi(), &mut result__).map(|| result__) } } #[cfg(feature = "Win32_System_Registry")] @@ -70,7 +70,7 @@ where windows_link::link!("shlwapi.dll" "system" fn AssocQueryKeyW(flags : ASSOCF, key : ASSOCKEY, pszassoc : windows_core::PCWSTR, pszextra : windows_core::PCWSTR, phkeyout : *mut super::super::System::Registry:: HKEY) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - AssocQueryKeyW(flags, key, pszassoc.param().abi(), pszextra.param().abi(), &mut result__).map(|| core::mem::transmute(result__)) + AssocQueryKeyW(flags, key, pszassoc.param().abi(), pszextra.param().abi(), &mut result__).map(|| result__) } } #[inline] @@ -396,7 +396,7 @@ pub unsafe fn GetCurrentProcessExplicitAppUserModelID() -> windows_core::Result< windows_link::link!("shell32.dll" "system" fn GetCurrentProcessExplicitAppUserModelID(appid : *mut windows_core::PWSTR) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - GetCurrentProcessExplicitAppUserModelID(&mut result__).map(|| core::mem::transmute(result__)) + GetCurrentProcessExplicitAppUserModelID(&mut result__).map(|| result__) } } #[inline] @@ -464,7 +464,7 @@ pub unsafe fn GetScaleFactorForMonitor(hmon: super::super::Graphics::Gdi::HMONIT windows_link::link!("api-ms-win-shcore-scaling-l1-1-1.dll" "system" fn GetScaleFactorForMonitor(hmon : super::super::Graphics::Gdi:: HMONITOR, pscale : *mut Common:: DEVICE_SCALE_FACTOR) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - GetScaleFactorForMonitor(hmon, &mut result__).map(|| core::mem::transmute(result__)) + GetScaleFactorForMonitor(hmon, &mut result__).map(|| result__) } } #[inline] @@ -654,7 +654,7 @@ pub unsafe fn HlinkGetSpecialReference(ureference: u32) -> windows_core::Result< windows_link::link!("hlink.dll" "system" fn HlinkGetSpecialReference(ureference : u32, ppwzreference : *mut windows_core::PWSTR) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - HlinkGetSpecialReference(ureference, &mut result__).map(|| core::mem::transmute(result__)) + HlinkGetSpecialReference(ureference, &mut result__).map(|| result__) } } #[inline] @@ -666,7 +666,7 @@ where windows_link::link!("hlink.dll" "system" fn HlinkGetValueFromParams(pwzparams : windows_core::PCWSTR, pwzname : windows_core::PCWSTR, ppwzvalue : *mut windows_core::PWSTR) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - HlinkGetValueFromParams(pwzparams.param().abi(), pwzname.param().abi(), &mut result__).map(|| core::mem::transmute(result__)) + HlinkGetValueFromParams(pwzparams.param().abi(), pwzname.param().abi(), &mut result__).map(|| result__) } } #[inline] @@ -828,7 +828,7 @@ where windows_link::link!("hlink.dll" "system" fn HlinkTranslateURL(pwzurl : windows_core::PCWSTR, grfflags : u32, ppwztranslatedurl : *mut windows_core::PWSTR) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - HlinkTranslateURL(pwzurl.param().abi(), grfflags, &mut result__).map(|| core::mem::transmute(result__)) + HlinkTranslateURL(pwzurl.param().abi(), grfflags, &mut result__).map(|| result__) } } #[cfg(feature = "Win32_System_Com")] @@ -937,7 +937,7 @@ where windows_link::link!("shell32.dll" "system" fn ILLoadFromStreamEx(pstm : * mut core::ffi::c_void, pidl : *mut *mut Common:: ITEMIDLIST) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - ILLoadFromStreamEx(pstm.param().abi(), &mut result__).map(|| core::mem::transmute(result__)) + ILLoadFromStreamEx(pstm.param().abi(), &mut result__).map(|| result__) } } #[cfg(feature = "Win32_UI_Shell_Common")] @@ -983,7 +983,7 @@ where windows_link::link!("shlwapi.dll" "system" fn IStream_ReadPidl(pstm : * mut core::ffi::c_void, ppidlout : *mut *mut Common:: ITEMIDLIST) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - IStream_ReadPidl(pstm.param().abi(), &mut result__).map(|| core::mem::transmute(result__)) + IStream_ReadPidl(pstm.param().abi(), &mut result__).map(|| result__) } } #[cfg(feature = "Win32_System_Com")] @@ -995,7 +995,7 @@ where windows_link::link!("shlwapi.dll" "system" fn IStream_ReadStr(pstm : * mut core::ffi::c_void, ppsz : *mut windows_core::PWSTR) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - IStream_ReadStr(pstm.param().abi(), &mut result__).map(|| core::mem::transmute(result__)) + IStream_ReadStr(pstm.param().abi(), &mut result__).map(|| result__) } } #[cfg(feature = "Win32_System_Com")] @@ -1016,7 +1016,7 @@ where windows_link::link!("shlwapi.dll" "system" fn IStream_Size(pstm : * mut core::ffi::c_void, pui : *mut u64) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - IStream_Size(pstm.param().abi(), &mut result__).map(|| core::mem::transmute(result__)) + IStream_Size(pstm.param().abi(), &mut result__).map(|| result__) } } #[cfg(feature = "Win32_System_Com")] @@ -1070,7 +1070,7 @@ where windows_link::link!("shlwapi.dll" "system" fn IUnknown_GetWindow(punk : * mut core::ffi::c_void, phwnd : *mut super::super::Foundation:: HWND) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - IUnknown_GetWindow(punk.param().abi(), &mut result__).map(|| core::mem::transmute(result__)) + IUnknown_GetWindow(punk.param().abi(), &mut result__).map(|| result__) } } #[inline] @@ -1272,7 +1272,7 @@ where windows_link::link!("api-ms-win-core-path-l1-1-0.dll" "system" fn PathAllocCanonicalize(pszpathin : windows_core::PCWSTR, dwflags : PATHCCH_OPTIONS, ppszpathout : *mut windows_core::PWSTR) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - PathAllocCanonicalize(pszpathin.param().abi(), dwflags, &mut result__).map(|| core::mem::transmute(result__)) + PathAllocCanonicalize(pszpathin.param().abi(), dwflags, &mut result__).map(|| result__) } } #[inline] @@ -1284,7 +1284,7 @@ where windows_link::link!("api-ms-win-core-path-l1-1-0.dll" "system" fn PathAllocCombine(pszpathin : windows_core::PCWSTR, pszmore : windows_core::PCWSTR, dwflags : PATHCCH_OPTIONS, ppszpathout : *mut windows_core::PWSTR) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - PathAllocCombine(pszpathin.param().abi(), pszmore.param().abi(), dwflags, &mut result__).map(|| core::mem::transmute(result__)) + PathAllocCombine(pszpathin.param().abi(), pszmore.param().abi(), dwflags, &mut result__).map(|| result__) } } #[inline] @@ -1405,7 +1405,7 @@ where windows_link::link!("api-ms-win-core-path-l1-1-0.dll" "system" fn PathCchFindExtension(pszpath : windows_core::PCWSTR, cchpath : usize, ppszext : *mut windows_core::PCWSTR) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - PathCchFindExtension(pszpath.param().abi(), cchpath, &mut result__).map(|| core::mem::transmute(result__)) + PathCchFindExtension(pszpath.param().abi(), cchpath, &mut result__).map(|| result__) } } #[inline] @@ -1452,7 +1452,7 @@ where windows_link::link!("api-ms-win-core-path-l1-1-0.dll" "system" fn PathCchSkipRoot(pszpath : windows_core::PCWSTR, ppszrootend : *mut windows_core::PCWSTR) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - PathCchSkipRoot(pszpath.param().abi(), &mut result__).map(|| core::mem::transmute(result__)) + PathCchSkipRoot(pszpath.param().abi(), &mut result__).map(|| result__) } } #[inline] @@ -2337,7 +2337,7 @@ pub unsafe fn RegisterScaleChangeEvent(hevent: super::super::Foundation::HANDLE) windows_link::link!("api-ms-win-shcore-scaling-l1-1-1.dll" "system" fn RegisterScaleChangeEvent(hevent : super::super::Foundation:: HANDLE, pdwcookie : *mut usize) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - RegisterScaleChangeEvent(hevent, &mut result__).map(|| core::mem::transmute(result__)) + RegisterScaleChangeEvent(hevent, &mut result__).map(|| result__) } } #[inline] @@ -2345,7 +2345,7 @@ pub unsafe fn RegisterScaleChangeNotifications(displaydevice: DISPLAY_DEVICE_TYP windows_link::link!("api-ms-win-shcore-scaling-l1-1-0.dll" "system" fn RegisterScaleChangeNotifications(displaydevice : DISPLAY_DEVICE_TYPE, hwndnotify : super::super::Foundation:: HWND, umsgnotify : u32, pdwcookie : *mut u32) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - RegisterScaleChangeNotifications(displaydevice, hwndnotify, umsgnotify, &mut result__).map(|| core::mem::transmute(result__)) + RegisterScaleChangeNotifications(displaydevice, hwndnotify, umsgnotify, &mut result__).map(|| result__) } } #[inline] @@ -2507,7 +2507,7 @@ where windows_link::link!("shell32.dll" "system" fn SHCLSIDFromString(psz : windows_core::PCWSTR, pclsid : *mut windows_core::GUID) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - SHCLSIDFromString(psz.param().abi(), &mut result__).map(|| core::mem::transmute(result__)) + SHCLSIDFromString(psz.param().abi(), &mut result__).map(|| result__) } } #[cfg(feature = "Win32_UI_Shell_Common")] @@ -2979,7 +2979,7 @@ where windows_link::link!("shell32.dll" "system" fn SHDoDragDrop(hwnd : super::super::Foundation:: HWND, pdata : * mut core::ffi::c_void, pdsrc : * mut core::ffi::c_void, dweffect : super::super::System::Ole:: DROPEFFECT, pdweffect : *mut super::super::System::Ole:: DROPEFFECT) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - SHDoDragDrop(hwnd.unwrap_or(core::mem::zeroed()) as _, pdata.param().abi(), pdsrc.param().abi(), dweffect, &mut result__).map(|| core::mem::transmute(result__)) + SHDoDragDrop(hwnd.unwrap_or(core::mem::zeroed()) as _, pdata.param().abi(), pdsrc.param().abi(), dweffect, &mut result__).map(|| result__) } } #[inline] @@ -3152,7 +3152,7 @@ where windows_link::link!("shell32.dll" "system" fn SHGetDriveMedia(pszdrive : windows_core::PCWSTR, pdwmediacontent : *mut u32) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - SHGetDriveMedia(pszdrive.param().abi(), &mut result__).map(|| core::mem::transmute(result__)) + SHGetDriveMedia(pszdrive.param().abi(), &mut result__).map(|| result__) } } #[cfg(all(feature = "Win32_Storage_FileSystem", feature = "Win32_UI_WindowsAndMessaging"))] @@ -3179,7 +3179,7 @@ pub unsafe fn SHGetFolderLocation(hwnd: Option, windows_link::link!("shell32.dll" "system" fn SHGetFolderLocation(hwnd : super::super::Foundation:: HWND, csidl : i32, htoken : super::super::Foundation:: HANDLE, dwflags : u32, ppidl : *mut *mut Common:: ITEMIDLIST) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - SHGetFolderLocation(hwnd.unwrap_or(core::mem::zeroed()) as _, csidl, htoken.unwrap_or(core::mem::zeroed()) as _, dwflags, &mut result__).map(|| core::mem::transmute(result__)) + SHGetFolderLocation(hwnd.unwrap_or(core::mem::zeroed()) as _, csidl, htoken.unwrap_or(core::mem::zeroed()) as _, dwflags, &mut result__).map(|| result__) } } #[inline] @@ -3217,7 +3217,7 @@ where windows_link::link!("shell32.dll" "system" fn SHGetIDListFromObject(punk : * mut core::ffi::c_void, ppidl : *mut *mut Common:: ITEMIDLIST) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - SHGetIDListFromObject(punk.param().abi(), &mut result__).map(|| core::mem::transmute(result__)) + SHGetIDListFromObject(punk.param().abi(), &mut result__).map(|| result__) } } #[inline] @@ -3285,7 +3285,7 @@ pub unsafe fn SHGetKnownFolderIDList(rfid: *const windows_core::GUID, dwflags: u windows_link::link!("shell32.dll" "system" fn SHGetKnownFolderIDList(rfid : *const windows_core::GUID, dwflags : u32, htoken : super::super::Foundation:: HANDLE, ppidl : *mut *mut Common:: ITEMIDLIST) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - SHGetKnownFolderIDList(rfid, dwflags, htoken.unwrap_or(core::mem::zeroed()) as _, &mut result__).map(|| core::mem::transmute(result__)) + SHGetKnownFolderIDList(rfid, dwflags, htoken.unwrap_or(core::mem::zeroed()) as _, &mut result__).map(|| result__) } } #[inline] @@ -3302,7 +3302,7 @@ pub unsafe fn SHGetKnownFolderPath(rfid: *const windows_core::GUID, dwflags: KNO windows_link::link!("shell32.dll" "system" fn SHGetKnownFolderPath(rfid : *const windows_core::GUID, dwflags : u32, htoken : super::super::Foundation:: HANDLE, ppszpath : *mut windows_core::PWSTR) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - SHGetKnownFolderPath(rfid, dwflags.0 as _, htoken.unwrap_or(core::mem::zeroed()) as _, &mut result__).map(|| core::mem::transmute(result__)) + SHGetKnownFolderPath(rfid, dwflags.0 as _, htoken.unwrap_or(core::mem::zeroed()) as _, &mut result__).map(|| result__) } } #[inline] @@ -3328,7 +3328,7 @@ pub unsafe fn SHGetNameFromIDList(pidl: *const Common::ITEMIDLIST, sigdnname: SI windows_link::link!("shell32.dll" "system" fn SHGetNameFromIDList(pidl : *const Common:: ITEMIDLIST, sigdnname : SIGDN, ppszname : *mut windows_core::PWSTR) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - SHGetNameFromIDList(pidl, sigdnname, &mut result__).map(|| core::mem::transmute(result__)) + SHGetNameFromIDList(pidl, sigdnname, &mut result__).map(|| result__) } } #[inline] @@ -3376,7 +3376,7 @@ where windows_link::link!("shell32.dll" "system" fn SHGetRealIDL(psf : * mut core::ffi::c_void, pidlsimple : *const Common:: ITEMIDLIST, ppidlreal : *mut *mut Common:: ITEMIDLIST) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - SHGetRealIDL(psf.param().abi(), pidlsimple, &mut result__).map(|| core::mem::transmute(result__)) + SHGetRealIDL(psf.param().abi(), pidlsimple, &mut result__).map(|| result__) } } #[inline] @@ -3403,7 +3403,7 @@ pub unsafe fn SHGetSpecialFolderLocation(hwnd: Option windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - SHGetSpecialFolderLocation(hwnd.unwrap_or(core::mem::zeroed()) as _, csidl, &mut result__).map(|| core::mem::transmute(result__)) + SHGetSpecialFolderLocation(hwnd.unwrap_or(core::mem::zeroed()) as _, csidl, &mut result__).map(|| result__) } } #[inline] @@ -3745,7 +3745,7 @@ pub unsafe fn SHQueryUserNotificationState() -> windows_core::Result windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - SHQueryUserNotificationState(&mut result__).map(|| core::mem::transmute(result__)) + SHQueryUserNotificationState(&mut result__).map(|| result__) } } #[cfg(feature = "Win32_System_Registry")] @@ -4224,7 +4224,7 @@ where windows_link::link!("shlwapi.dll" "system" fn SHStrDupA(psz : windows_core::PCSTR, ppwsz : *mut windows_core::PWSTR) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - SHStrDupA(psz.param().abi(), &mut result__).map(|| core::mem::transmute(result__)) + SHStrDupA(psz.param().abi(), &mut result__).map(|| result__) } } #[inline] @@ -4235,7 +4235,7 @@ where windows_link::link!("shlwapi.dll" "system" fn SHStrDupW(psz : windows_core::PCWSTR, ppwsz : *mut windows_core::PWSTR) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - SHStrDupW(psz.param().abi(), &mut result__).map(|| core::mem::transmute(result__)) + SHStrDupW(psz.param().abi(), &mut result__).map(|| result__) } } #[inline] @@ -4442,7 +4442,7 @@ pub unsafe fn Shell_NotifyIconGetRect(identifier: *const NOTIFYICONIDENTIFIER) - windows_link::link!("shell32.dll" "system" fn Shell_NotifyIconGetRect(identifier : *const NOTIFYICONIDENTIFIER, iconlocation : *mut super::super::Foundation:: RECT) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - Shell_NotifyIconGetRect(identifier, &mut result__).map(|| core::mem::transmute(result__)) + Shell_NotifyIconGetRect(identifier, &mut result__).map(|| result__) } } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] 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 af7e52a759..5a8130790c 100644 --- a/crates/libs/windows/src/Windows/Win32/UI/WindowsAndMessaging/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/UI/WindowsAndMessaging/mod.rs @@ -1733,7 +1733,7 @@ where windows_link::link!("mrmsupport.dll" "system" fn MrmGetPriFileContentChecksum(prifile : windows_core::PCWSTR, checksum : *mut u32) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - MrmGetPriFileContentChecksum(prifile.param().abi(), &mut result__).map(|| core::mem::transmute(result__)) + MrmGetPriFileContentChecksum(prifile.param().abi(), &mut result__).map(|| result__) } } #[inline] 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 40aba25abe..c5d95e6eb1 100644 --- a/crates/libs/windows/src/Windows/Win32/Web/InternetExplorer/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Web/InternetExplorer/mod.rs @@ -128,7 +128,7 @@ pub unsafe fn IEGetWriteableFolderPath(clsidfolderid: *const windows_core::GUID) windows_link::link!("ieframe.dll" "system" fn IEGetWriteableFolderPath(clsidfolderid : *const windows_core::GUID, lppwstrpath : *mut windows_core::PWSTR) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - IEGetWriteableFolderPath(clsidfolderid, &mut result__).map(|| core::mem::transmute(result__)) + IEGetWriteableFolderPath(clsidfolderid, &mut result__).map(|| result__) } } #[cfg(feature = "Win32_System_Registry")] @@ -137,7 +137,7 @@ pub unsafe fn IEGetWriteableLowHKCU() -> windows_core::Result windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - IEGetWriteableLowHKCU(&mut result__).map(|| core::mem::transmute(result__)) + IEGetWriteableLowHKCU(&mut result__).map(|| result__) } } #[inline] @@ -155,7 +155,7 @@ pub unsafe fn IEIsProtectedModeProcess() -> windows_core::Result windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - IEIsProtectedModeProcess(&mut result__).map(|| core::mem::transmute(result__)) + IEIsProtectedModeProcess(&mut result__).map(|| result__) } } #[inline] diff --git a/crates/tests/bindgen/src/core_win.rs b/crates/tests/bindgen/src/core_win.rs index 28ab67b627..520d9c5f2f 100644 --- a/crates/tests/bindgen/src/core_win.rs +++ b/crates/tests/bindgen/src/core_win.rs @@ -15,7 +15,7 @@ pub mod Windows { windows_link::link!("ole32.dll" "system" fn CoCreateGuid(pguid : *mut windows_core::GUID) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - CoCreateGuid(&mut result__).map(|| core::mem::transmute(result__)) + CoCreateGuid(&mut result__).map(|| result__) } } } diff --git a/crates/tests/bindgen/src/core_win_flat.rs b/crates/tests/bindgen/src/core_win_flat.rs index 5b55ed9468..8412bb5325 100644 --- a/crates/tests/bindgen/src/core_win_flat.rs +++ b/crates/tests/bindgen/src/core_win_flat.rs @@ -11,6 +11,6 @@ pub unsafe fn CoCreateGuid() -> windows_core::Result { windows_link::link!("ole32.dll" "system" fn CoCreateGuid(pguid : *mut windows_core::GUID) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); - CoCreateGuid(&mut result__).map(|| core::mem::transmute(result__)) + CoCreateGuid(&mut result__).map(|| result__) } }