diff options
Diffstat (limited to 'vendor/windows-sys/src/Windows/Win32/Devices/DeviceAccess/mod.rs')
-rw-r--r-- | vendor/windows-sys/src/Windows/Win32/Devices/DeviceAccess/mod.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/vendor/windows-sys/src/Windows/Win32/Devices/DeviceAccess/mod.rs b/vendor/windows-sys/src/Windows/Win32/Devices/DeviceAccess/mod.rs index 6366f606e..3e7553163 100644 --- a/vendor/windows-sys/src/Windows/Win32/Devices/DeviceAccess/mod.rs +++ b/vendor/windows-sys/src/Windows/Win32/Devices/DeviceAccess/mod.rs @@ -1,8 +1,11 @@ -#[link(name = "windows")] +#[cfg_attr(windows, link(name = "windows"))] extern "system" { #[doc = "*Required features: `\"Win32_Devices_DeviceAccess\"`*"] pub fn CreateDeviceAccessInstance(deviceinterfacepath: ::windows_sys::core::PCWSTR, desiredaccess: u32, createasync: *mut ICreateDeviceAccessAsync) -> ::windows_sys::core::HRESULT; } +pub type ICreateDeviceAccessAsync = *mut ::core::ffi::c_void; +pub type IDeviceIoControl = *mut ::core::ffi::c_void; +pub type IDeviceRequestCompletionCallback = *mut ::core::ffi::c_void; pub const CLSID_DeviceIoControl: ::windows_sys::core::GUID = ::windows_sys::core::GUID { data1: 315876210, data2: 34635, data3: 17789, data4: [159, 223, 115, 151, 119, 120, 104, 108] }; #[doc = "*Required features: `\"Win32_Devices_DeviceAccess\"`*"] pub const DEV_PORT_1394: u32 = 8u32; @@ -92,6 +95,3 @@ pub const ED_RIGHT: u32 = 1024u32; pub const ED_TOP: u32 = 1u32; #[doc = "*Required features: `\"Win32_Devices_DeviceAccess\"`*"] pub const ED_VIDEO: i32 = 33554432i32; -pub type ICreateDeviceAccessAsync = *mut ::core::ffi::c_void; -pub type IDeviceIoControl = *mut ::core::ffi::c_void; -pub type IDeviceRequestCompletionCallback = *mut ::core::ffi::c_void; |