Skip to content

Commit 17c46da

Browse files
committed
Regenerate bindings, sys, and windows
1 parent a8895d7 commit 17c46da

File tree

427 files changed

+71345
-157200
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

427 files changed

+71345
-157200
lines changed

crates/libs/sys/src/Windows/Win32/AI/MachineLearning/DirectML/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#[link(name = "windows")]
1+
#[cfg_attr(windows, link(name = "windows"))]
22
extern "system" {
33
#[doc = "*Required features: `\"Win32_AI_MachineLearning_DirectML\"`, `\"Win32_Graphics_Direct3D12\"`*"]
44
#[cfg(feature = "Win32_Graphics_Direct3D12")]

crates/libs/sys/src/Windows/Win32/AI/MachineLearning/WinML/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#[link(name = "windows")]
1+
#[cfg_attr(windows, link(name = "windows"))]
22
extern "system" {
33
#[doc = "*Required features: `\"Win32_AI_MachineLearning_WinML\"`*"]
44
pub fn MLCreateOperatorRegistry(registry: *mut IMLOperatorRegistry) -> ::windows_sys::core::HRESULT;

crates/libs/sys/src/Windows/Win32/Data/RightsManagement/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#[link(name = "windows")]
1+
#[cfg_attr(windows, link(name = "windows"))]
22
extern "system" {
33
#[doc = "*Required features: `\"Win32_Data_RightsManagement\"`*"]
44
pub fn DRMAcquireAdvisories(hlicensestorage: u32, wszlicense: ::windows_sys::core::PCWSTR, wszurl: ::windows_sys::core::PCWSTR, pvcontext: *mut ::core::ffi::c_void) -> ::windows_sys::core::HRESULT;

crates/libs/sys/src/Windows/Win32/Data/Xml/XmlLite/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#[link(name = "windows")]
1+
#[cfg_attr(windows, link(name = "windows"))]
22
extern "system" {
33
#[doc = "*Required features: `\"Win32_Data_Xml_XmlLite\"`, `\"Win32_System_Com\"`*"]
44
#[cfg(feature = "Win32_System_Com")]

crates/libs/sys/src/Windows/Win32/Devices/AllJoyn/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#[link(name = "windows")]
1+
#[cfg_attr(windows, link(name = "windows"))]
22
extern "system" {
33
#[doc = "*Required features: `\"Win32_Devices_AllJoyn\"`, `\"Win32_Foundation\"`*"]
44
#[cfg(feature = "Win32_Foundation")]

crates/libs/sys/src/Windows/Win32/Devices/BiometricFramework/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#[link(name = "windows")]
1+
#[cfg_attr(windows, link(name = "windows"))]
22
extern "system" {
33
#[doc = "*Required features: `\"Win32_Devices_BiometricFramework\"`*"]
44
pub fn WinBioAcquireFocus() -> ::windows_sys::core::HRESULT;

crates/libs/sys/src/Windows/Win32/Devices/Bluetooth/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#[link(name = "windows")]
1+
#[cfg_attr(windows, link(name = "windows"))]
22
extern "system" {
33
#[doc = "*Required features: `\"Win32_Devices_Bluetooth\"`, `\"Win32_Foundation\"`*"]
44
#[cfg(feature = "Win32_Foundation")]

crates/libs/sys/src/Windows/Win32/Devices/Communication/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#[link(name = "windows")]
1+
#[cfg_attr(windows, link(name = "windows"))]
22
extern "system" {
33
#[doc = "*Required features: `\"Win32_Devices_Communication\"`, `\"Win32_Foundation\"`*"]
44
#[cfg(feature = "Win32_Foundation")]

crates/libs/sys/src/Windows/Win32/Devices/DeviceAccess/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#[link(name = "windows")]
1+
#[cfg_attr(windows, link(name = "windows"))]
22
extern "system" {
33
#[doc = "*Required features: `\"Win32_Devices_DeviceAccess\"`*"]
44
pub fn CreateDeviceAccessInstance(deviceinterfacepath: ::windows_sys::core::PCWSTR, desiredaccess: u32, createasync: *mut ICreateDeviceAccessAsync) -> ::windows_sys::core::HRESULT;

crates/libs/sys/src/Windows/Win32/Devices/DeviceAndDriverInstallation/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#[link(name = "windows")]
1+
#[cfg_attr(windows, link(name = "windows"))]
22
extern "system" {
33
#[doc = "*Required features: `\"Win32_Devices_DeviceAndDriverInstallation\"`*"]
44
pub fn CMP_WaitNoPendingInstallEvents(dwtimeout: u32) -> u32;

crates/libs/sys/src/Windows/Win32/Devices/DeviceQuery/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#[link(name = "windows")]
1+
#[cfg_attr(windows, link(name = "windows"))]
22
extern "system" {
33
#[doc = "*Required features: `\"Win32_Devices_DeviceQuery\"`*"]
44
pub fn DevCloseObjectQuery(hdevquery: *const HDEVQUERY__);

crates/libs/sys/src/Windows/Win32/Devices/Display/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#[link(name = "windows")]
1+
#[cfg_attr(windows, link(name = "windows"))]
22
extern "system" {
33
#[doc = "*Required features: `\"Win32_Devices_Display\"`, `\"Win32_Foundation\"`*"]
44
#[cfg(feature = "Win32_Foundation")]

crates/libs/sys/src/Windows/Win32/Devices/Enumeration/Pnp/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#[link(name = "windows")]
1+
#[cfg_attr(windows, link(name = "windows"))]
22
extern "system" {
33
#[doc = "*Required features: `\"Win32_Devices_Enumeration_Pnp\"`*"]
44
pub fn SwDeviceClose(hswdevice: HSWDEVICE);

crates/libs/sys/src/Windows/Win32/Devices/Fax/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#[link(name = "windows")]
1+
#[cfg_attr(windows, link(name = "windows"))]
22
extern "system" {
33
#[doc = "*Required features: `\"Win32_Devices_Fax\"`, `\"Win32_Foundation\"`*"]
44
#[cfg(feature = "Win32_Foundation")]

crates/libs/sys/src/Windows/Win32/Devices/HumanInterfaceDevice/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#[link(name = "windows")]
1+
#[cfg_attr(windows, link(name = "windows"))]
22
extern "system" {
33
#[doc = "*Required features: `\"Win32_Devices_HumanInterfaceDevice\"`, `\"Win32_Foundation\"`*"]
44
#[cfg(feature = "Win32_Foundation")]

crates/libs/sys/src/Windows/Win32/Devices/PortableDevices/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#[link(name = "windows")]
1+
#[cfg_attr(windows, link(name = "windows"))]
22
extern "system" {
33
#[doc = "*Required features: `\"Win32_Devices_PortableDevices\"`, `\"Win32_Foundation\"`*"]
44
#[cfg(feature = "Win32_Foundation")]

crates/libs/sys/src/Windows/Win32/Devices/Sensors/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#[link(name = "windows")]
1+
#[cfg_attr(windows, link(name = "windows"))]
22
extern "system" {
33
#[doc = "*Required features: `\"Win32_Devices_Sensors\"`, `\"Win32_Foundation\"`, `\"Win32_System_Com_StructuredStorage\"`, `\"Win32_UI_Shell_PropertiesSystem\"`*"]
44
#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com_StructuredStorage", feature = "Win32_UI_Shell_PropertiesSystem"))]

crates/libs/sys/src/Windows/Win32/Devices/SerialCommunication/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#[link(name = "windows")]
1+
#[cfg_attr(windows, link(name = "windows"))]
22
extern "system" {
33
#[doc = "*Required features: `\"Win32_Devices_SerialCommunication\"`*"]
44
pub fn ComDBClaimNextFreePort(hcomdb: HCOMDB, comnumber: *mut u32) -> i32;

crates/libs/sys/src/Windows/Win32/Devices/Tapi/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#[link(name = "windows")]
1+
#[cfg_attr(windows, link(name = "windows"))]
22
extern "system" {
33
#[doc = "*Required features: `\"Win32_Devices_Tapi\"`, `\"Win32_System_Com\"`*"]
44
#[cfg(feature = "Win32_System_Com")]

crates/libs/sys/src/Windows/Win32/Devices/Usb/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#[link(name = "windows")]
1+
#[cfg_attr(windows, link(name = "windows"))]
22
extern "system" {
33
#[doc = "*Required features: `\"Win32_Devices_Usb\"`, `\"Win32_Foundation\"`*"]
44
#[cfg(feature = "Win32_Foundation")]

crates/libs/sys/src/Windows/Win32/Devices/WebServicesOnDevices/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#[link(name = "windows")]
1+
#[cfg_attr(windows, link(name = "windows"))]
22
extern "system" {
33
#[doc = "*Required features: `\"Win32_Devices_WebServicesOnDevices\"`*"]
44
pub fn WSDAllocateLinkedMemory(pparent: *mut ::core::ffi::c_void, cbsize: usize) -> *mut ::core::ffi::c_void;

crates/libs/sys/src/Windows/Win32/Foundation/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#[link(name = "windows")]
1+
#[cfg_attr(windows, link(name = "windows"))]
22
extern "system" {
33
#[doc = "*Required features: `\"Win32_Foundation\"`*"]
44
pub fn CloseHandle(hobject: HANDLE) -> BOOL;

crates/libs/sys/src/Windows/Win32/Gaming/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#[link(name = "windows")]
1+
#[cfg_attr(windows, link(name = "windows"))]
22
extern "system" {
33
#[doc = "*Required features: `\"Win32_Gaming\"`, `\"Win32_Foundation\"`*"]
44
#[cfg(feature = "Win32_Foundation")]

crates/libs/sys/src/Windows/Win32/Globalization/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#[link(name = "windows")]
1+
#[cfg_attr(windows, link(name = "windows"))]
22
extern "system" {
33
#[doc = "*Required features: `\"Win32_Globalization\"`*"]
44
pub fn CompareStringA(locale: u32, dwcmpflags: u32, lpstring1: *const i8, cchcount1: i32, lpstring2: *const i8, cchcount2: i32) -> i32;

crates/libs/sys/src/Windows/Win32/Graphics/CompositionSwapchain/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#[link(name = "windows")]
1+
#[cfg_attr(windows, link(name = "windows"))]
22
extern "system" {
33
#[doc = "*Required features: `\"Win32_Graphics_CompositionSwapchain\"`*"]
44
pub fn CreatePresentationFactory(d3ddevice: ::windows_sys::core::IUnknown, riid: *const ::windows_sys::core::GUID, presentationfactory: *mut *mut ::core::ffi::c_void) -> ::windows_sys::core::HRESULT;

crates/libs/sys/src/Windows/Win32/Graphics/DXCore/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#[link(name = "windows")]
1+
#[cfg_attr(windows, link(name = "windows"))]
22
extern "system" {
33
#[doc = "*Required features: `\"Win32_Graphics_DXCore\"`*"]
44
pub fn DXCoreCreateAdapterFactory(riid: *const ::windows_sys::core::GUID, ppvfactory: *mut *mut ::core::ffi::c_void) -> ::windows_sys::core::HRESULT;

crates/libs/sys/src/Windows/Win32/Graphics/Direct2D/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#[cfg(feature = "Win32_Graphics_Direct2D_Common")]
22
pub mod Common;
3-
#[link(name = "windows")]
3+
#[cfg_attr(windows, link(name = "windows"))]
44
extern "system" {
55
#[doc = "*Required features: `\"Win32_Graphics_Direct2D\"`, `\"Foundation_Numerics\"`*"]
66
#[cfg(feature = "Foundation_Numerics")]

crates/libs/sys/src/Windows/Win32/Graphics/Direct3D/Dxc/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#[link(name = "windows")]
1+
#[cfg_attr(windows, link(name = "windows"))]
22
extern "system" {
33
#[doc = "*Required features: `\"Win32_Graphics_Direct3D_Dxc\"`*"]
44
pub fn DxcCreateInstance(rclsid: *const ::windows_sys::core::GUID, riid: *const ::windows_sys::core::GUID, ppv: *mut *mut ::core::ffi::c_void) -> ::windows_sys::core::HRESULT;

crates/libs/sys/src/Windows/Win32/Graphics/Direct3D/Fxc/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#[link(name = "windows")]
1+
#[cfg_attr(windows, link(name = "windows"))]
22
extern "system" {
33
#[doc = "*Required features: `\"Win32_Graphics_Direct3D_Fxc\"`*"]
44
pub fn D3DCompile(psrcdata: *const ::core::ffi::c_void, srcdatasize: usize, psourcename: ::windows_sys::core::PCSTR, pdefines: *const super::D3D_SHADER_MACRO, pinclude: super::ID3DInclude, pentrypoint: ::windows_sys::core::PCSTR, ptarget: ::windows_sys::core::PCSTR, flags1: u32, flags2: u32, ppcode: *mut super::ID3DBlob, pperrormsgs: *mut super::ID3DBlob) -> ::windows_sys::core::HRESULT;

crates/libs/sys/src/Windows/Win32/Graphics/Direct3D10/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#[link(name = "windows")]
1+
#[cfg_attr(windows, link(name = "windows"))]
22
extern "system" {
33
#[doc = "*Required features: `\"Win32_Graphics_Direct3D10\"`, `\"Win32_Graphics_Direct3D\"`*"]
44
#[cfg(feature = "Win32_Graphics_Direct3D")]

crates/libs/sys/src/Windows/Win32/Graphics/Direct3D11/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#[link(name = "windows")]
1+
#[cfg_attr(windows, link(name = "windows"))]
22
extern "system" {
33
#[doc = "*Required features: `\"Win32_Graphics_Direct3D11\"`, `\"Win32_Foundation\"`, `\"Win32_Graphics_Direct3D\"`, `\"Win32_Graphics_Dxgi\"`*"]
44
#[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Direct3D", feature = "Win32_Graphics_Dxgi"))]

crates/libs/sys/src/Windows/Win32/Graphics/Direct3D11on12/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#[link(name = "windows")]
1+
#[cfg_attr(windows, link(name = "windows"))]
22
extern "system" {
33
#[doc = "*Required features: `\"Win32_Graphics_Direct3D11on12\"`, `\"Win32_Graphics_Direct3D\"`, `\"Win32_Graphics_Direct3D11\"`*"]
44
#[cfg(all(feature = "Win32_Graphics_Direct3D", feature = "Win32_Graphics_Direct3D11"))]

crates/libs/sys/src/Windows/Win32/Graphics/Direct3D12/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#[link(name = "windows")]
1+
#[cfg_attr(windows, link(name = "windows"))]
22
extern "system" {
33
#[doc = "*Required features: `\"Win32_Graphics_Direct3D12\"`, `\"Win32_Graphics_Direct3D\"`*"]
44
#[cfg(feature = "Win32_Graphics_Direct3D")]

crates/libs/sys/src/Windows/Win32/Graphics/Direct3D9/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#[link(name = "windows")]
1+
#[cfg_attr(windows, link(name = "windows"))]
22
extern "system" {
33
#[doc = "*Required features: `\"Win32_Graphics_Direct3D9\"`*"]
44
pub fn D3DPERF_BeginEvent(col: u32, wszname: ::windows_sys::core::PCWSTR) -> i32;

crates/libs/sys/src/Windows/Win32/Graphics/Direct3D9on12/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#[link(name = "windows")]
1+
#[cfg_attr(windows, link(name = "windows"))]
22
extern "system" {
33
#[doc = "*Required features: `\"Win32_Graphics_Direct3D9on12\"`, `\"Win32_Foundation\"`, `\"Win32_Graphics_Direct3D9\"`*"]
44
#[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Direct3D9"))]

crates/libs/sys/src/Windows/Win32/Graphics/DirectComposition/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#[link(name = "windows")]
1+
#[cfg_attr(windows, link(name = "windows"))]
22
extern "system" {
33
#[doc = "*Required features: `\"Win32_Graphics_DirectComposition\"`, `\"Win32_Foundation\"`*"]
44
#[cfg(feature = "Win32_Foundation")]

crates/libs/sys/src/Windows/Win32/Graphics/DirectDraw/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#[link(name = "windows")]
1+
#[cfg_attr(windows, link(name = "windows"))]
22
extern "system" {
33
#[doc = "*Required features: `\"Win32_Graphics_DirectDraw\"`*"]
44
pub fn DirectDrawCreate(lpguid: *mut ::windows_sys::core::GUID, lplpdd: *mut IDirectDraw, punkouter: ::windows_sys::core::IUnknown) -> ::windows_sys::core::HRESULT;

crates/libs/sys/src/Windows/Win32/Graphics/DirectWrite/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#[link(name = "windows")]
1+
#[cfg_attr(windows, link(name = "windows"))]
22
extern "system" {
33
#[doc = "*Required features: `\"Win32_Graphics_DirectWrite\"`*"]
44
pub fn DWriteCreateFactory(factorytype: DWRITE_FACTORY_TYPE, iid: *const ::windows_sys::core::GUID, factory: *mut ::windows_sys::core::IUnknown) -> ::windows_sys::core::HRESULT;

crates/libs/sys/src/Windows/Win32/Graphics/Dwm/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#[link(name = "windows")]
1+
#[cfg_attr(windows, link(name = "windows"))]
22
extern "system" {
33
#[doc = "*Required features: `\"Win32_Graphics_Dwm\"`, `\"Win32_Foundation\"`*"]
44
#[cfg(feature = "Win32_Foundation")]

crates/libs/sys/src/Windows/Win32/Graphics/Dxgi/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#[cfg(feature = "Win32_Graphics_Dxgi_Common")]
22
pub mod Common;
3-
#[link(name = "windows")]
3+
#[cfg_attr(windows, link(name = "windows"))]
44
extern "system" {
55
#[doc = "*Required features: `\"Win32_Graphics_Dxgi\"`*"]
66
pub fn CreateDXGIFactory(riid: *const ::windows_sys::core::GUID, ppfactory: *mut *mut ::core::ffi::c_void) -> ::windows_sys::core::HRESULT;

crates/libs/sys/src/Windows/Win32/Graphics/Gdi/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#[link(name = "windows")]
1+
#[cfg_attr(windows, link(name = "windows"))]
22
extern "system" {
33
#[doc = "*Required features: `\"Win32_Graphics_Gdi\"`, `\"Win32_Foundation\"`*"]
44
#[cfg(feature = "Win32_Foundation")]

crates/libs/sys/src/Windows/Win32/Graphics/Imaging/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#[cfg(feature = "Win32_Graphics_Imaging_D2D")]
22
pub mod D2D;
3-
#[link(name = "windows")]
3+
#[cfg_attr(windows, link(name = "windows"))]
44
extern "system" {
55
#[doc = "*Required features: `\"Win32_Graphics_Imaging\"`*"]
66
pub fn WICConvertBitmapSource(dstformat: *const ::windows_sys::core::GUID, pisrc: IWICBitmapSource, ppidst: *mut IWICBitmapSource) -> ::windows_sys::core::HRESULT;

crates/libs/sys/src/Windows/Win32/Graphics/OpenGL/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#[link(name = "windows")]
1+
#[cfg_attr(windows, link(name = "windows"))]
22
extern "system" {
33
#[doc = "*Required features: `\"Win32_Graphics_OpenGL\"`, `\"Win32_Graphics_Gdi\"`*"]
44
#[cfg(feature = "Win32_Graphics_Gdi")]

crates/libs/sys/src/Windows/Win32/Graphics/Printing/PrintTicket/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#[link(name = "windows")]
1+
#[cfg_attr(windows, link(name = "windows"))]
22
extern "system" {
33
#[doc = "*Required features: `\"Win32_Graphics_Printing_PrintTicket\"`, `\"Win32_Storage_Xps\"`*"]
44
#[cfg(feature = "Win32_Storage_Xps")]

crates/libs/sys/src/Windows/Win32/Graphics/Printing/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#[cfg(feature = "Win32_Graphics_Printing_PrintTicket")]
22
pub mod PrintTicket;
3-
#[link(name = "windows")]
3+
#[cfg_attr(windows, link(name = "windows"))]
44
extern "system" {
55
#[doc = "*Required features: `\"Win32_Graphics_Printing\"`, `\"Win32_Foundation\"`*"]
66
#[cfg(feature = "Win32_Foundation")]

crates/libs/sys/src/Windows/Win32/Management/MobileDeviceManagementRegistration/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#[link(name = "windows")]
1+
#[cfg_attr(windows, link(name = "windows"))]
22
extern "system" {
33
#[doc = "*Required features: `\"Win32_Management_MobileDeviceManagementRegistration\"`*"]
44
pub fn ApplyLocalManagementSyncML(syncmlrequest: ::windows_sys::core::PCWSTR, syncmlresult: *mut ::windows_sys::core::PWSTR) -> ::windows_sys::core::HRESULT;

crates/libs/sys/src/Windows/Win32/Media/Audio/DirectSound/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#[link(name = "windows")]
1+
#[cfg_attr(windows, link(name = "windows"))]
22
extern "system" {
33
#[doc = "*Required features: `\"Win32_Media_Audio_DirectSound\"`*"]
44
pub fn DirectSoundCaptureCreate(pcguiddevice: *const ::windows_sys::core::GUID, ppdsc: *mut IDirectSoundCapture, punkouter: ::windows_sys::core::IUnknown) -> ::windows_sys::core::HRESULT;

crates/libs/sys/src/Windows/Win32/Media/Audio/XAudio2/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#[link(name = "windows")]
1+
#[cfg_attr(windows, link(name = "windows"))]
22
extern "system" {
33
#[doc = "*Required features: `\"Win32_Media_Audio_XAudio2\"`*"]
44
pub fn CreateAudioReverb(ppapo: *mut ::windows_sys::core::IUnknown) -> ::windows_sys::core::HRESULT;

crates/libs/sys/src/Windows/Win32/Media/Audio/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ pub mod DirectSound;
88
pub mod Endpoints;
99
#[cfg(feature = "Win32_Media_Audio_XAudio2")]
1010
pub mod XAudio2;
11-
#[link(name = "windows")]
11+
#[cfg_attr(windows, link(name = "windows"))]
1212
extern "system" {
1313
#[doc = "*Required features: `\"Win32_Media_Audio\"`, `\"Win32_Foundation\"`, `\"Win32_System_Com_StructuredStorage\"`*"]
1414
#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com_StructuredStorage"))]

crates/libs/sys/src/Windows/Win32/Media/DirectShow/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#[cfg(feature = "Win32_Media_DirectShow_Xml")]
22
pub mod Xml;
3-
#[link(name = "windows")]
3+
#[cfg_attr(windows, link(name = "windows"))]
44
extern "system" {
55
#[doc = "*Required features: `\"Win32_Media_DirectShow\"`*"]
66
pub fn AMGetErrorTextA(hr: ::windows_sys::core::HRESULT, pbuffer: ::windows_sys::core::PSTR, maxlen: u32) -> u32;

crates/libs/sys/src/Windows/Win32/Media/DxMediaObjects/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#[link(name = "windows")]
1+
#[cfg_attr(windows, link(name = "windows"))]
22
extern "system" {
33
#[doc = "*Required features: `\"Win32_Media_DxMediaObjects\"`*"]
44
pub fn DMOEnum(guidcategory: *const ::windows_sys::core::GUID, dwflags: u32, cintypes: u32, pintypes: *const DMO_PARTIAL_MEDIATYPE, couttypes: u32, pouttypes: *const DMO_PARTIAL_MEDIATYPE, ppenum: *mut IEnumDMO) -> ::windows_sys::core::HRESULT;

crates/libs/sys/src/Windows/Win32/Media/KernelStreaming/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#[link(name = "windows")]
1+
#[cfg_attr(windows, link(name = "windows"))]
22
extern "system" {
33
#[doc = "*Required features: `\"Win32_Media_KernelStreaming\"`, `\"Win32_Foundation\"`*"]
44
#[cfg(feature = "Win32_Foundation")]

crates/libs/sys/src/Windows/Win32/Media/MediaFoundation/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#[link(name = "windows")]
1+
#[cfg_attr(windows, link(name = "windows"))]
22
extern "system" {
33
#[doc = "*Required features: `\"Win32_Media_MediaFoundation\"`, `\"Win32_UI_Shell_PropertiesSystem\"`*"]
44
#[cfg(feature = "Win32_UI_Shell_PropertiesSystem")]

crates/libs/sys/src/Windows/Win32/Media/Multimedia/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#[link(name = "windows")]
1+
#[cfg_attr(windows, link(name = "windows"))]
22
extern "system" {
33
#[doc = "*Required features: `\"Win32_Media_Multimedia\"`, `\"Win32_Foundation\"`*"]
44
#[cfg(feature = "Win32_Foundation")]

crates/libs/sys/src/Windows/Win32/Media/WindowsMediaFormat/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#[link(name = "windows")]
1+
#[cfg_attr(windows, link(name = "windows"))]
22
extern "system" {
33
#[doc = "*Required features: `\"Win32_Media_WindowsMediaFormat\"`*"]
44
pub fn WMCreateBackupRestorer(pcallback: ::windows_sys::core::IUnknown, ppbackup: *mut IWMLicenseBackup) -> ::windows_sys::core::HRESULT;

crates/libs/sys/src/Windows/Win32/Media/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ pub mod Speech;
2424
pub mod Streaming;
2525
#[cfg(feature = "Win32_Media_WindowsMediaFormat")]
2626
pub mod WindowsMediaFormat;
27-
#[link(name = "windows")]
27+
#[cfg_attr(windows, link(name = "windows"))]
2828
extern "system" {
2929
#[doc = "*Required features: `\"Win32_Media\"`*"]
3030
pub fn timeBeginPeriod(uperiod: u32) -> u32;

crates/libs/sys/src/Windows/Win32/NetworkManagement/Dhcp/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#[link(name = "windows")]
1+
#[cfg_attr(windows, link(name = "windows"))]
22
extern "system" {
33
#[doc = "*Required features: `\"Win32_NetworkManagement_Dhcp\"`, `\"Win32_Foundation\"`*"]
44
#[cfg(feature = "Win32_Foundation")]

crates/libs/sys/src/Windows/Win32/NetworkManagement/Dns/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#[link(name = "windows")]
1+
#[cfg_attr(windows, link(name = "windows"))]
22
extern "system" {
33
#[doc = "*Required features: `\"Win32_NetworkManagement_Dns\"`*"]
44
pub fn DnsAcquireContextHandle_A(credentialflags: u32, credentials: *const ::core::ffi::c_void, pcontext: *mut DnsContextHandle) -> i32;

crates/libs/sys/src/Windows/Win32/NetworkManagement/IpHelper/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#[link(name = "windows")]
1+
#[cfg_attr(windows, link(name = "windows"))]
22
extern "system" {
33
#[doc = "*Required features: `\"Win32_NetworkManagement_IpHelper\"`*"]
44
pub fn AddIPAddress(address: u32, ipmask: u32, ifindex: u32, ntecontext: *mut u32, nteinstance: *mut u32) -> u32;

crates/libs/sys/src/Windows/Win32/NetworkManagement/Multicast/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#[link(name = "windows")]
1+
#[cfg_attr(windows, link(name = "windows"))]
22
extern "system" {
33
#[doc = "*Required features: `\"Win32_NetworkManagement_Multicast\"`*"]
44
pub fn McastApiCleanup();

crates/libs/sys/src/Windows/Win32/NetworkManagement/NetBios/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#[link(name = "windows")]
1+
#[cfg_attr(windows, link(name = "windows"))]
22
extern "system" {
33
#[doc = "*Required features: `\"Win32_NetworkManagement_NetBios\"`, `\"Win32_Foundation\"`*"]
44
#[cfg(feature = "Win32_Foundation")]

crates/libs/sys/src/Windows/Win32/NetworkManagement/NetManagement/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#[link(name = "windows")]
1+
#[cfg_attr(windows, link(name = "windows"))]
22
extern "system" {
33
#[doc = "*Required features: `\"Win32_NetworkManagement_NetManagement\"`*"]
44
pub fn GetNetScheduleAccountInformation(pwszservername: ::windows_sys::core::PCWSTR, ccaccount: u32, wszaccount: ::windows_sys::core::PWSTR) -> ::windows_sys::core::HRESULT;

crates/libs/sys/src/Windows/Win32/NetworkManagement/NetShell/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#[link(name = "windows")]
1+
#[cfg_attr(windows, link(name = "windows"))]
22
extern "system" {
33
#[doc = "*Required features: `\"Win32_NetworkManagement_NetShell\"`, `\"Win32_Foundation\"`*"]
44
#[cfg(feature = "Win32_Foundation")]

crates/libs/sys/src/Windows/Win32/NetworkManagement/NetworkDiagnosticsFramework/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#[link(name = "windows")]
1+
#[cfg_attr(windows, link(name = "windows"))]
22
extern "system" {
33
#[doc = "*Required features: `\"Win32_NetworkManagement_NetworkDiagnosticsFramework\"`*"]
44
pub fn NdfCancelIncident(handle: *const ::core::ffi::c_void) -> ::windows_sys::core::HRESULT;

0 commit comments

Comments
 (0)