| #[doc = "*Required features: `\"Win32_Devices_Usb\"`, `\"Win32_Foundation\"`*"] |
| #[cfg(feature = "Win32_Foundation")] |
| #[inline] |
| pub unsafe fn WinUsb_AbortPipe<P0>(interfacehandle: P0, pipeid: u8) -> super::super::Foundation::BOOL |
| where |
| P0: ::windows::core::IntoParam<WINUSB_INTERFACE_HANDLE>, |
| { |
| ::windows_targets::link ! ( "winusb.dll""system" fn WinUsb_AbortPipe ( interfacehandle : WINUSB_INTERFACE_HANDLE , pipeid : u8 ) -> super::super::Foundation:: BOOL ); |
| WinUsb_AbortPipe(interfacehandle.into_param().abi(), pipeid) |
| } |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`, `\"Win32_Foundation\"`, `\"Win32_System_IO\"`*"] |
| #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_IO"))] |
| #[inline] |
| pub unsafe fn WinUsb_ControlTransfer<P0>(interfacehandle: P0, setuppacket: WINUSB_SETUP_PACKET, buffer: ::core::option::Option<&mut [u8]>, lengthtransferred: ::core::option::Option<*mut u32>, overlapped: ::core::option::Option<*const super::super::System::IO::OVERLAPPED>) -> super::super::Foundation::BOOL |
| where |
| P0: ::windows::core::IntoParam<WINUSB_INTERFACE_HANDLE>, |
| { |
| ::windows_targets::link ! ( "winusb.dll""system" fn WinUsb_ControlTransfer ( interfacehandle : WINUSB_INTERFACE_HANDLE , setuppacket : WINUSB_SETUP_PACKET , buffer : *mut u8 , bufferlength : u32 , lengthtransferred : *mut u32 , overlapped : *const super::super::System::IO:: OVERLAPPED ) -> super::super::Foundation:: BOOL ); |
| WinUsb_ControlTransfer(interfacehandle.into_param().abi(), ::core::mem::transmute(setuppacket), ::core::mem::transmute(buffer.as_deref().map_or(::core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len() as _), ::core::mem::transmute(lengthtransferred.unwrap_or(::std::ptr::null_mut())), ::core::mem::transmute(overlapped.unwrap_or(::std::ptr::null()))) |
| } |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`, `\"Win32_Foundation\"`*"] |
| #[cfg(feature = "Win32_Foundation")] |
| #[inline] |
| pub unsafe fn WinUsb_FlushPipe<P0>(interfacehandle: P0, pipeid: u8) -> super::super::Foundation::BOOL |
| where |
| P0: ::windows::core::IntoParam<WINUSB_INTERFACE_HANDLE>, |
| { |
| ::windows_targets::link ! ( "winusb.dll""system" fn WinUsb_FlushPipe ( interfacehandle : WINUSB_INTERFACE_HANDLE , pipeid : u8 ) -> super::super::Foundation:: BOOL ); |
| WinUsb_FlushPipe(interfacehandle.into_param().abi(), pipeid) |
| } |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`, `\"Win32_Foundation\"`*"] |
| #[cfg(feature = "Win32_Foundation")] |
| #[inline] |
| pub unsafe fn WinUsb_Free<P0>(interfacehandle: P0) -> super::super::Foundation::BOOL |
| where |
| P0: ::windows::core::IntoParam<WINUSB_INTERFACE_HANDLE>, |
| { |
| ::windows_targets::link ! ( "winusb.dll""system" fn WinUsb_Free ( interfacehandle : WINUSB_INTERFACE_HANDLE ) -> super::super::Foundation:: BOOL ); |
| WinUsb_Free(interfacehandle.into_param().abi()) |
| } |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`, `\"Win32_Foundation\"`*"] |
| #[cfg(feature = "Win32_Foundation")] |
| #[inline] |
| pub unsafe fn WinUsb_GetAdjustedFrameNumber(currentframenumber: *mut u32, timestamp: i64) -> super::super::Foundation::BOOL { |
| ::windows_targets::link ! ( "winusb.dll""system" fn WinUsb_GetAdjustedFrameNumber ( currentframenumber : *mut u32 , timestamp : i64 ) -> super::super::Foundation:: BOOL ); |
| WinUsb_GetAdjustedFrameNumber(currentframenumber, timestamp) |
| } |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`, `\"Win32_Foundation\"`*"] |
| #[cfg(feature = "Win32_Foundation")] |
| #[inline] |
| pub unsafe fn WinUsb_GetAssociatedInterface<P0>(interfacehandle: P0, associatedinterfaceindex: u8, associatedinterfacehandle: *mut WINUSB_INTERFACE_HANDLE) -> super::super::Foundation::BOOL |
| where |
| P0: ::windows::core::IntoParam<WINUSB_INTERFACE_HANDLE>, |
| { |
| ::windows_targets::link ! ( "winusb.dll""system" fn WinUsb_GetAssociatedInterface ( interfacehandle : WINUSB_INTERFACE_HANDLE , associatedinterfaceindex : u8 , associatedinterfacehandle : *mut WINUSB_INTERFACE_HANDLE ) -> super::super::Foundation:: BOOL ); |
| WinUsb_GetAssociatedInterface(interfacehandle.into_param().abi(), associatedinterfaceindex, associatedinterfacehandle) |
| } |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`, `\"Win32_Foundation\"`*"] |
| #[cfg(feature = "Win32_Foundation")] |
| #[inline] |
| pub unsafe fn WinUsb_GetCurrentAlternateSetting<P0>(interfacehandle: P0, settingnumber: *mut u8) -> super::super::Foundation::BOOL |
| where |
| P0: ::windows::core::IntoParam<WINUSB_INTERFACE_HANDLE>, |
| { |
| ::windows_targets::link ! ( "winusb.dll""system" fn WinUsb_GetCurrentAlternateSetting ( interfacehandle : WINUSB_INTERFACE_HANDLE , settingnumber : *mut u8 ) -> super::super::Foundation:: BOOL ); |
| WinUsb_GetCurrentAlternateSetting(interfacehandle.into_param().abi(), settingnumber) |
| } |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`, `\"Win32_Foundation\"`*"] |
| #[cfg(feature = "Win32_Foundation")] |
| #[inline] |
| pub unsafe fn WinUsb_GetCurrentFrameNumber<P0>(interfacehandle: P0, currentframenumber: *mut u32, timestamp: *mut i64) -> super::super::Foundation::BOOL |
| where |
| P0: ::windows::core::IntoParam<WINUSB_INTERFACE_HANDLE>, |
| { |
| ::windows_targets::link ! ( "winusb.dll""system" fn WinUsb_GetCurrentFrameNumber ( interfacehandle : WINUSB_INTERFACE_HANDLE , currentframenumber : *mut u32 , timestamp : *mut i64 ) -> super::super::Foundation:: BOOL ); |
| WinUsb_GetCurrentFrameNumber(interfacehandle.into_param().abi(), currentframenumber, timestamp) |
| } |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`, `\"Win32_Foundation\"`*"] |
| #[cfg(feature = "Win32_Foundation")] |
| #[inline] |
| pub unsafe fn WinUsb_GetCurrentFrameNumberAndQpc<P0>(interfacehandle: P0, frameqpcinfo: *const USB_FRAME_NUMBER_AND_QPC_FOR_TIME_SYNC_INFORMATION) -> super::super::Foundation::BOOL |
| where |
| P0: ::windows::core::IntoParam<WINUSB_INTERFACE_HANDLE>, |
| { |
| ::windows_targets::link ! ( "winusb.dll""system" fn WinUsb_GetCurrentFrameNumberAndQpc ( interfacehandle : WINUSB_INTERFACE_HANDLE , frameqpcinfo : *const USB_FRAME_NUMBER_AND_QPC_FOR_TIME_SYNC_INFORMATION ) -> super::super::Foundation:: BOOL ); |
| WinUsb_GetCurrentFrameNumberAndQpc(interfacehandle.into_param().abi(), frameqpcinfo) |
| } |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`, `\"Win32_Foundation\"`*"] |
| #[cfg(feature = "Win32_Foundation")] |
| #[inline] |
| pub unsafe fn WinUsb_GetDescriptor<P0>(interfacehandle: P0, descriptortype: u8, index: u8, languageid: u16, buffer: ::core::option::Option<&mut [u8]>, lengthtransferred: *mut u32) -> super::super::Foundation::BOOL |
| where |
| P0: ::windows::core::IntoParam<WINUSB_INTERFACE_HANDLE>, |
| { |
| ::windows_targets::link ! ( "winusb.dll""system" fn WinUsb_GetDescriptor ( interfacehandle : WINUSB_INTERFACE_HANDLE , descriptortype : u8 , index : u8 , languageid : u16 , buffer : *mut u8 , bufferlength : u32 , lengthtransferred : *mut u32 ) -> super::super::Foundation:: BOOL ); |
| WinUsb_GetDescriptor(interfacehandle.into_param().abi(), descriptortype, index, languageid, ::core::mem::transmute(buffer.as_deref().map_or(::core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len() as _), lengthtransferred) |
| } |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`, `\"Win32_Foundation\"`, `\"Win32_System_IO\"`*"] |
| #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_IO"))] |
| #[inline] |
| pub unsafe fn WinUsb_GetOverlappedResult<P0, P1>(interfacehandle: P0, lpoverlapped: *const super::super::System::IO::OVERLAPPED, lpnumberofbytestransferred: *mut u32, bwait: P1) -> super::super::Foundation::BOOL |
| where |
| P0: ::windows::core::IntoParam<WINUSB_INTERFACE_HANDLE>, |
| P1: ::windows::core::IntoParam<super::super::Foundation::BOOL>, |
| { |
| ::windows_targets::link ! ( "winusb.dll""system" fn WinUsb_GetOverlappedResult ( interfacehandle : WINUSB_INTERFACE_HANDLE , lpoverlapped : *const super::super::System::IO:: OVERLAPPED , lpnumberofbytestransferred : *mut u32 , bwait : super::super::Foundation:: BOOL ) -> super::super::Foundation:: BOOL ); |
| WinUsb_GetOverlappedResult(interfacehandle.into_param().abi(), lpoverlapped, lpnumberofbytestransferred, bwait.into_param().abi()) |
| } |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`, `\"Win32_Foundation\"`*"] |
| #[cfg(feature = "Win32_Foundation")] |
| #[inline] |
| pub unsafe fn WinUsb_GetPipePolicy<P0>(interfacehandle: P0, pipeid: u8, policytype: WINUSB_PIPE_POLICY, valuelength: *mut u32, value: *mut ::core::ffi::c_void) -> super::super::Foundation::BOOL |
| where |
| P0: ::windows::core::IntoParam<WINUSB_INTERFACE_HANDLE>, |
| { |
| ::windows_targets::link ! ( "winusb.dll""system" fn WinUsb_GetPipePolicy ( interfacehandle : WINUSB_INTERFACE_HANDLE , pipeid : u8 , policytype : WINUSB_PIPE_POLICY , valuelength : *mut u32 , value : *mut ::core::ffi::c_void ) -> super::super::Foundation:: BOOL ); |
| WinUsb_GetPipePolicy(interfacehandle.into_param().abi(), pipeid, policytype, valuelength, value) |
| } |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`, `\"Win32_Foundation\"`*"] |
| #[cfg(feature = "Win32_Foundation")] |
| #[inline] |
| pub unsafe fn WinUsb_GetPowerPolicy<P0>(interfacehandle: P0, policytype: WINUSB_POWER_POLICY, valuelength: *mut u32, value: *mut ::core::ffi::c_void) -> super::super::Foundation::BOOL |
| where |
| P0: ::windows::core::IntoParam<WINUSB_INTERFACE_HANDLE>, |
| { |
| ::windows_targets::link ! ( "winusb.dll""system" fn WinUsb_GetPowerPolicy ( interfacehandle : WINUSB_INTERFACE_HANDLE , policytype : WINUSB_POWER_POLICY , valuelength : *mut u32 , value : *mut ::core::ffi::c_void ) -> super::super::Foundation:: BOOL ); |
| WinUsb_GetPowerPolicy(interfacehandle.into_param().abi(), policytype, valuelength, value) |
| } |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`, `\"Win32_Foundation\"`*"] |
| #[cfg(feature = "Win32_Foundation")] |
| #[inline] |
| pub unsafe fn WinUsb_Initialize<P0>(devicehandle: P0, interfacehandle: *mut WINUSB_INTERFACE_HANDLE) -> super::super::Foundation::BOOL |
| where |
| P0: ::windows::core::IntoParam<super::super::Foundation::HANDLE>, |
| { |
| ::windows_targets::link ! ( "winusb.dll""system" fn WinUsb_Initialize ( devicehandle : super::super::Foundation:: HANDLE , interfacehandle : *mut WINUSB_INTERFACE_HANDLE ) -> super::super::Foundation:: BOOL ); |
| WinUsb_Initialize(devicehandle.into_param().abi(), interfacehandle) |
| } |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| #[inline] |
| pub unsafe fn WinUsb_ParseConfigurationDescriptor(configurationdescriptor: *const USB_CONFIGURATION_DESCRIPTOR, startposition: *const ::core::ffi::c_void, interfacenumber: i32, alternatesetting: i32, interfaceclass: i32, interfacesubclass: i32, interfaceprotocol: i32) -> *mut USB_INTERFACE_DESCRIPTOR { |
| ::windows_targets::link ! ( "winusb.dll""system" fn WinUsb_ParseConfigurationDescriptor ( configurationdescriptor : *const USB_CONFIGURATION_DESCRIPTOR , startposition : *const ::core::ffi::c_void , interfacenumber : i32 , alternatesetting : i32 , interfaceclass : i32 , interfacesubclass : i32 , interfaceprotocol : i32 ) -> *mut USB_INTERFACE_DESCRIPTOR ); |
| WinUsb_ParseConfigurationDescriptor(configurationdescriptor, startposition, interfacenumber, alternatesetting, interfaceclass, interfacesubclass, interfaceprotocol) |
| } |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| #[inline] |
| pub unsafe fn WinUsb_ParseDescriptors(descriptorbuffer: *const ::core::ffi::c_void, totallength: u32, startposition: *const ::core::ffi::c_void, descriptortype: i32) -> *mut USB_COMMON_DESCRIPTOR { |
| ::windows_targets::link ! ( "winusb.dll""system" fn WinUsb_ParseDescriptors ( descriptorbuffer : *const ::core::ffi::c_void , totallength : u32 , startposition : *const ::core::ffi::c_void , descriptortype : i32 ) -> *mut USB_COMMON_DESCRIPTOR ); |
| WinUsb_ParseDescriptors(descriptorbuffer, totallength, startposition, descriptortype) |
| } |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`, `\"Win32_Foundation\"`*"] |
| #[cfg(feature = "Win32_Foundation")] |
| #[inline] |
| pub unsafe fn WinUsb_QueryDeviceInformation<P0>(interfacehandle: P0, informationtype: u32, bufferlength: *mut u32, buffer: *mut ::core::ffi::c_void) -> super::super::Foundation::BOOL |
| where |
| P0: ::windows::core::IntoParam<WINUSB_INTERFACE_HANDLE>, |
| { |
| ::windows_targets::link ! ( "winusb.dll""system" fn WinUsb_QueryDeviceInformation ( interfacehandle : WINUSB_INTERFACE_HANDLE , informationtype : u32 , bufferlength : *mut u32 , buffer : *mut ::core::ffi::c_void ) -> super::super::Foundation:: BOOL ); |
| WinUsb_QueryDeviceInformation(interfacehandle.into_param().abi(), informationtype, bufferlength, buffer) |
| } |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`, `\"Win32_Foundation\"`*"] |
| #[cfg(feature = "Win32_Foundation")] |
| #[inline] |
| pub unsafe fn WinUsb_QueryInterfaceSettings<P0>(interfacehandle: P0, alternateinterfacenumber: u8, usbaltinterfacedescriptor: *mut USB_INTERFACE_DESCRIPTOR) -> super::super::Foundation::BOOL |
| where |
| P0: ::windows::core::IntoParam<WINUSB_INTERFACE_HANDLE>, |
| { |
| ::windows_targets::link ! ( "winusb.dll""system" fn WinUsb_QueryInterfaceSettings ( interfacehandle : WINUSB_INTERFACE_HANDLE , alternateinterfacenumber : u8 , usbaltinterfacedescriptor : *mut USB_INTERFACE_DESCRIPTOR ) -> super::super::Foundation:: BOOL ); |
| WinUsb_QueryInterfaceSettings(interfacehandle.into_param().abi(), alternateinterfacenumber, usbaltinterfacedescriptor) |
| } |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`, `\"Win32_Foundation\"`*"] |
| #[cfg(feature = "Win32_Foundation")] |
| #[inline] |
| pub unsafe fn WinUsb_QueryPipe<P0>(interfacehandle: P0, alternateinterfacenumber: u8, pipeindex: u8, pipeinformation: *mut WINUSB_PIPE_INFORMATION) -> super::super::Foundation::BOOL |
| where |
| P0: ::windows::core::IntoParam<WINUSB_INTERFACE_HANDLE>, |
| { |
| ::windows_targets::link ! ( "winusb.dll""system" fn WinUsb_QueryPipe ( interfacehandle : WINUSB_INTERFACE_HANDLE , alternateinterfacenumber : u8 , pipeindex : u8 , pipeinformation : *mut WINUSB_PIPE_INFORMATION ) -> super::super::Foundation:: BOOL ); |
| WinUsb_QueryPipe(interfacehandle.into_param().abi(), alternateinterfacenumber, pipeindex, pipeinformation) |
| } |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`, `\"Win32_Foundation\"`*"] |
| #[cfg(feature = "Win32_Foundation")] |
| #[inline] |
| pub unsafe fn WinUsb_QueryPipeEx<P0>(interfacehandle: P0, alternatesettingnumber: u8, pipeindex: u8, pipeinformationex: *mut WINUSB_PIPE_INFORMATION_EX) -> super::super::Foundation::BOOL |
| where |
| P0: ::windows::core::IntoParam<WINUSB_INTERFACE_HANDLE>, |
| { |
| ::windows_targets::link ! ( "winusb.dll""system" fn WinUsb_QueryPipeEx ( interfacehandle : WINUSB_INTERFACE_HANDLE , alternatesettingnumber : u8 , pipeindex : u8 , pipeinformationex : *mut WINUSB_PIPE_INFORMATION_EX ) -> super::super::Foundation:: BOOL ); |
| WinUsb_QueryPipeEx(interfacehandle.into_param().abi(), alternatesettingnumber, pipeindex, pipeinformationex) |
| } |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`, `\"Win32_Foundation\"`, `\"Win32_System_IO\"`*"] |
| #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_IO"))] |
| #[inline] |
| pub unsafe fn WinUsb_ReadIsochPipe(bufferhandle: *const ::core::ffi::c_void, offset: u32, length: u32, framenumber: *mut u32, isopacketdescriptors: &mut [USBD_ISO_PACKET_DESCRIPTOR], overlapped: ::core::option::Option<*const super::super::System::IO::OVERLAPPED>) -> super::super::Foundation::BOOL { |
| ::windows_targets::link ! ( "winusb.dll""system" fn WinUsb_ReadIsochPipe ( bufferhandle : *const ::core::ffi::c_void , offset : u32 , length : u32 , framenumber : *mut u32 , numberofpackets : u32 , isopacketdescriptors : *mut USBD_ISO_PACKET_DESCRIPTOR , overlapped : *const super::super::System::IO:: OVERLAPPED ) -> super::super::Foundation:: BOOL ); |
| WinUsb_ReadIsochPipe(bufferhandle, offset, length, framenumber, isopacketdescriptors.len() as _, ::core::mem::transmute(isopacketdescriptors.as_ptr()), ::core::mem::transmute(overlapped.unwrap_or(::std::ptr::null()))) |
| } |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`, `\"Win32_Foundation\"`, `\"Win32_System_IO\"`*"] |
| #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_IO"))] |
| #[inline] |
| pub unsafe fn WinUsb_ReadIsochPipeAsap<P0>(bufferhandle: *const ::core::ffi::c_void, offset: u32, length: u32, continuestream: P0, isopacketdescriptors: &mut [USBD_ISO_PACKET_DESCRIPTOR], overlapped: ::core::option::Option<*const super::super::System::IO::OVERLAPPED>) -> super::super::Foundation::BOOL |
| where |
| P0: ::windows::core::IntoParam<super::super::Foundation::BOOL>, |
| { |
| ::windows_targets::link ! ( "winusb.dll""system" fn WinUsb_ReadIsochPipeAsap ( bufferhandle : *const ::core::ffi::c_void , offset : u32 , length : u32 , continuestream : super::super::Foundation:: BOOL , numberofpackets : u32 , isopacketdescriptors : *mut USBD_ISO_PACKET_DESCRIPTOR , overlapped : *const super::super::System::IO:: OVERLAPPED ) -> super::super::Foundation:: BOOL ); |
| WinUsb_ReadIsochPipeAsap(bufferhandle, offset, length, continuestream.into_param().abi(), isopacketdescriptors.len() as _, ::core::mem::transmute(isopacketdescriptors.as_ptr()), ::core::mem::transmute(overlapped.unwrap_or(::std::ptr::null()))) |
| } |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`, `\"Win32_Foundation\"`, `\"Win32_System_IO\"`*"] |
| #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_IO"))] |
| #[inline] |
| pub unsafe fn WinUsb_ReadPipe<P0>(interfacehandle: P0, pipeid: u8, buffer: ::core::option::Option<&mut [u8]>, lengthtransferred: ::core::option::Option<*mut u32>, overlapped: ::core::option::Option<*const super::super::System::IO::OVERLAPPED>) -> super::super::Foundation::BOOL |
| where |
| P0: ::windows::core::IntoParam<WINUSB_INTERFACE_HANDLE>, |
| { |
| ::windows_targets::link ! ( "winusb.dll""system" fn WinUsb_ReadPipe ( interfacehandle : WINUSB_INTERFACE_HANDLE , pipeid : u8 , buffer : *mut u8 , bufferlength : u32 , lengthtransferred : *mut u32 , overlapped : *const super::super::System::IO:: OVERLAPPED ) -> super::super::Foundation:: BOOL ); |
| WinUsb_ReadPipe(interfacehandle.into_param().abi(), pipeid, ::core::mem::transmute(buffer.as_deref().map_or(::core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len() as _), ::core::mem::transmute(lengthtransferred.unwrap_or(::std::ptr::null_mut())), ::core::mem::transmute(overlapped.unwrap_or(::std::ptr::null()))) |
| } |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`, `\"Win32_Foundation\"`*"] |
| #[cfg(feature = "Win32_Foundation")] |
| #[inline] |
| pub unsafe fn WinUsb_RegisterIsochBuffer<P0>(interfacehandle: P0, pipeid: u8, buffer: &mut [u8], isochbufferhandle: *mut *mut ::core::ffi::c_void) -> super::super::Foundation::BOOL |
| where |
| P0: ::windows::core::IntoParam<WINUSB_INTERFACE_HANDLE>, |
| { |
| ::windows_targets::link ! ( "winusb.dll""system" fn WinUsb_RegisterIsochBuffer ( interfacehandle : WINUSB_INTERFACE_HANDLE , pipeid : u8 , buffer : *mut u8 , bufferlength : u32 , isochbufferhandle : *mut *mut ::core::ffi::c_void ) -> super::super::Foundation:: BOOL ); |
| WinUsb_RegisterIsochBuffer(interfacehandle.into_param().abi(), pipeid, ::core::mem::transmute(buffer.as_ptr()), buffer.len() as _, isochbufferhandle) |
| } |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`, `\"Win32_Foundation\"`*"] |
| #[cfg(feature = "Win32_Foundation")] |
| #[inline] |
| pub unsafe fn WinUsb_ResetPipe<P0>(interfacehandle: P0, pipeid: u8) -> super::super::Foundation::BOOL |
| where |
| P0: ::windows::core::IntoParam<WINUSB_INTERFACE_HANDLE>, |
| { |
| ::windows_targets::link ! ( "winusb.dll""system" fn WinUsb_ResetPipe ( interfacehandle : WINUSB_INTERFACE_HANDLE , pipeid : u8 ) -> super::super::Foundation:: BOOL ); |
| WinUsb_ResetPipe(interfacehandle.into_param().abi(), pipeid) |
| } |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`, `\"Win32_Foundation\"`*"] |
| #[cfg(feature = "Win32_Foundation")] |
| #[inline] |
| pub unsafe fn WinUsb_SetCurrentAlternateSetting<P0>(interfacehandle: P0, settingnumber: u8) -> super::super::Foundation::BOOL |
| where |
| P0: ::windows::core::IntoParam<WINUSB_INTERFACE_HANDLE>, |
| { |
| ::windows_targets::link ! ( "winusb.dll""system" fn WinUsb_SetCurrentAlternateSetting ( interfacehandle : WINUSB_INTERFACE_HANDLE , settingnumber : u8 ) -> super::super::Foundation:: BOOL ); |
| WinUsb_SetCurrentAlternateSetting(interfacehandle.into_param().abi(), settingnumber) |
| } |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`, `\"Win32_Foundation\"`*"] |
| #[cfg(feature = "Win32_Foundation")] |
| #[inline] |
| pub unsafe fn WinUsb_SetPipePolicy<P0>(interfacehandle: P0, pipeid: u8, policytype: WINUSB_PIPE_POLICY, valuelength: u32, value: *const ::core::ffi::c_void) -> super::super::Foundation::BOOL |
| where |
| P0: ::windows::core::IntoParam<WINUSB_INTERFACE_HANDLE>, |
| { |
| ::windows_targets::link ! ( "winusb.dll""system" fn WinUsb_SetPipePolicy ( interfacehandle : WINUSB_INTERFACE_HANDLE , pipeid : u8 , policytype : WINUSB_PIPE_POLICY , valuelength : u32 , value : *const ::core::ffi::c_void ) -> super::super::Foundation:: BOOL ); |
| WinUsb_SetPipePolicy(interfacehandle.into_param().abi(), pipeid, policytype, valuelength, value) |
| } |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`, `\"Win32_Foundation\"`*"] |
| #[cfg(feature = "Win32_Foundation")] |
| #[inline] |
| pub unsafe fn WinUsb_SetPowerPolicy<P0>(interfacehandle: P0, policytype: WINUSB_POWER_POLICY, valuelength: u32, value: *const ::core::ffi::c_void) -> super::super::Foundation::BOOL |
| where |
| P0: ::windows::core::IntoParam<WINUSB_INTERFACE_HANDLE>, |
| { |
| ::windows_targets::link ! ( "winusb.dll""system" fn WinUsb_SetPowerPolicy ( interfacehandle : WINUSB_INTERFACE_HANDLE , policytype : WINUSB_POWER_POLICY , valuelength : u32 , value : *const ::core::ffi::c_void ) -> super::super::Foundation:: BOOL ); |
| WinUsb_SetPowerPolicy(interfacehandle.into_param().abi(), policytype, valuelength, value) |
| } |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`, `\"Win32_Foundation\"`*"] |
| #[cfg(feature = "Win32_Foundation")] |
| #[inline] |
| pub unsafe fn WinUsb_StartTrackingForTimeSync<P0>(interfacehandle: P0, starttrackinginfo: *const USB_START_TRACKING_FOR_TIME_SYNC_INFORMATION) -> super::super::Foundation::BOOL |
| where |
| P0: ::windows::core::IntoParam<WINUSB_INTERFACE_HANDLE>, |
| { |
| ::windows_targets::link ! ( "winusb.dll""system" fn WinUsb_StartTrackingForTimeSync ( interfacehandle : WINUSB_INTERFACE_HANDLE , starttrackinginfo : *const USB_START_TRACKING_FOR_TIME_SYNC_INFORMATION ) -> super::super::Foundation:: BOOL ); |
| WinUsb_StartTrackingForTimeSync(interfacehandle.into_param().abi(), starttrackinginfo) |
| } |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`, `\"Win32_Foundation\"`*"] |
| #[cfg(feature = "Win32_Foundation")] |
| #[inline] |
| pub unsafe fn WinUsb_StopTrackingForTimeSync<P0>(interfacehandle: P0, stoptrackinginfo: *const USB_STOP_TRACKING_FOR_TIME_SYNC_INFORMATION) -> super::super::Foundation::BOOL |
| where |
| P0: ::windows::core::IntoParam<WINUSB_INTERFACE_HANDLE>, |
| { |
| ::windows_targets::link ! ( "winusb.dll""system" fn WinUsb_StopTrackingForTimeSync ( interfacehandle : WINUSB_INTERFACE_HANDLE , stoptrackinginfo : *const USB_STOP_TRACKING_FOR_TIME_SYNC_INFORMATION ) -> super::super::Foundation:: BOOL ); |
| WinUsb_StopTrackingForTimeSync(interfacehandle.into_param().abi(), stoptrackinginfo) |
| } |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`, `\"Win32_Foundation\"`*"] |
| #[cfg(feature = "Win32_Foundation")] |
| #[inline] |
| pub unsafe fn WinUsb_UnregisterIsochBuffer(isochbufferhandle: *const ::core::ffi::c_void) -> super::super::Foundation::BOOL { |
| ::windows_targets::link ! ( "winusb.dll""system" fn WinUsb_UnregisterIsochBuffer ( isochbufferhandle : *const ::core::ffi::c_void ) -> super::super::Foundation:: BOOL ); |
| WinUsb_UnregisterIsochBuffer(isochbufferhandle) |
| } |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`, `\"Win32_Foundation\"`, `\"Win32_System_IO\"`*"] |
| #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_IO"))] |
| #[inline] |
| pub unsafe fn WinUsb_WriteIsochPipe(bufferhandle: *const ::core::ffi::c_void, offset: u32, length: u32, framenumber: *mut u32, overlapped: ::core::option::Option<*const super::super::System::IO::OVERLAPPED>) -> super::super::Foundation::BOOL { |
| ::windows_targets::link ! ( "winusb.dll""system" fn WinUsb_WriteIsochPipe ( bufferhandle : *const ::core::ffi::c_void , offset : u32 , length : u32 , framenumber : *mut u32 , overlapped : *const super::super::System::IO:: OVERLAPPED ) -> super::super::Foundation:: BOOL ); |
| WinUsb_WriteIsochPipe(bufferhandle, offset, length, framenumber, ::core::mem::transmute(overlapped.unwrap_or(::std::ptr::null()))) |
| } |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`, `\"Win32_Foundation\"`, `\"Win32_System_IO\"`*"] |
| #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_IO"))] |
| #[inline] |
| pub unsafe fn WinUsb_WriteIsochPipeAsap<P0>(bufferhandle: *const ::core::ffi::c_void, offset: u32, length: u32, continuestream: P0, overlapped: ::core::option::Option<*const super::super::System::IO::OVERLAPPED>) -> super::super::Foundation::BOOL |
| where |
| P0: ::windows::core::IntoParam<super::super::Foundation::BOOL>, |
| { |
| ::windows_targets::link ! ( "winusb.dll""system" fn WinUsb_WriteIsochPipeAsap ( bufferhandle : *const ::core::ffi::c_void , offset : u32 , length : u32 , continuestream : super::super::Foundation:: BOOL , overlapped : *const super::super::System::IO:: OVERLAPPED ) -> super::super::Foundation:: BOOL ); |
| WinUsb_WriteIsochPipeAsap(bufferhandle, offset, length, continuestream.into_param().abi(), ::core::mem::transmute(overlapped.unwrap_or(::std::ptr::null()))) |
| } |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`, `\"Win32_Foundation\"`, `\"Win32_System_IO\"`*"] |
| #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_IO"))] |
| #[inline] |
| pub unsafe fn WinUsb_WritePipe<P0>(interfacehandle: P0, pipeid: u8, buffer: &[u8], lengthtransferred: ::core::option::Option<*mut u32>, overlapped: ::core::option::Option<*const super::super::System::IO::OVERLAPPED>) -> super::super::Foundation::BOOL |
| where |
| P0: ::windows::core::IntoParam<WINUSB_INTERFACE_HANDLE>, |
| { |
| ::windows_targets::link ! ( "winusb.dll""system" fn WinUsb_WritePipe ( interfacehandle : WINUSB_INTERFACE_HANDLE , pipeid : u8 , buffer : *const u8 , bufferlength : u32 , lengthtransferred : *mut u32 , overlapped : *const super::super::System::IO:: OVERLAPPED ) -> super::super::Foundation:: BOOL ); |
| WinUsb_WritePipe(interfacehandle.into_param().abi(), pipeid, ::core::mem::transmute(buffer.as_ptr()), buffer.len() as _, ::core::mem::transmute(lengthtransferred.unwrap_or(::std::ptr::null_mut())), ::core::mem::transmute(overlapped.unwrap_or(::std::ptr::null()))) |
| } |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const BMREQUEST_CLASS: u32 = 1u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const BMREQUEST_DEVICE_TO_HOST: u32 = 1u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const BMREQUEST_HOST_TO_DEVICE: u32 = 0u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const BMREQUEST_STANDARD: u32 = 0u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const BMREQUEST_TO_DEVICE: u32 = 0u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const BMREQUEST_TO_ENDPOINT: u32 = 2u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const BMREQUEST_TO_INTERFACE: u32 = 1u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const BMREQUEST_TO_OTHER: u32 = 3u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const BMREQUEST_VENDOR: u32 = 2u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const BULKIN_FLAG: u32 = 128u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const DEVICE_SPEED: u32 = 1u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const FILE_DEVICE_USB: u32 = 34u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const FILE_DEVICE_USB_SCAN: u32 = 32768u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const FullSpeed: u32 = 2u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const GUID_DEVINTERFACE_USB_BILLBOARD: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x5e9adaef_f879_473f_b807_4e5ea77d1b1c); |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const GUID_DEVINTERFACE_USB_DEVICE: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xa5dcbf10_6530_11d2_901f_00c04fb951ed); |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const GUID_DEVINTERFACE_USB_HOST_CONTROLLER: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x3abf6f2d_71c4_462a_8a92_1e6861e6af27); |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const GUID_DEVINTERFACE_USB_HUB: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xf18a0e88_c30c_11d0_8815_00a0c906bed8); |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const GUID_USB_MSOS20_PLATFORM_CAPABILITY_ID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xd8dd60df_4589_4cc7_9cd2_659d9e648a9f); |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const GUID_USB_PERFORMANCE_TRACING: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xd5de77a6_6ae9_425c_b1e2_f5615fd348a9); |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const GUID_USB_TRANSFER_TRACING: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x681eb8aa_403d_452c_9f8a_f0616fac9540); |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const GUID_USB_WMI_DEVICE_PERF_INFO: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x66c1aa3c_499f_49a0_a9a5_61e2359f6407); |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const GUID_USB_WMI_NODE_INFO: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x9c179357_dc7a_4f41_b66b_323b9ddcb5b1); |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const GUID_USB_WMI_STD_DATA: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x4e623b20_cb14_11d1_b331_00a0c959bbd2); |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const GUID_USB_WMI_STD_NOTIFICATION: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x4e623b20_cb14_11d1_b331_00a0c959bbd2); |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const GUID_USB_WMI_SURPRISE_REMOVAL_NOTIFICATION: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x9bbbf831_a2f2_43b4_96d1_86944b5914b3); |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const GUID_USB_WMI_TRACING: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x3a61881b_b4e6_4bf9_ae0f_3cd8f394e52f); |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const HCD_DIAGNOSTIC_MODE_OFF: u32 = 257u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const HCD_DIAGNOSTIC_MODE_ON: u32 = 256u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const HCD_DISABLE_PORT: u32 = 268u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const HCD_ENABLE_PORT: u32 = 269u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const HCD_GET_DRIVERKEY_NAME: u32 = 265u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const HCD_GET_ROOT_HUB_NAME: u32 = 258u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const HCD_GET_STATS_1: u32 = 255u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const HCD_GET_STATS_2: u32 = 266u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const HCD_TRACE_READ_REQUEST: u32 = 275u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const HCD_USER_REQUEST: u32 = 270u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const HighSpeed: u32 = 3u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const IOCTL_ABORT_PIPE: u32 = 2147491844u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const IOCTL_CANCEL_IO: u32 = 2147491844u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const IOCTL_GENERICUSBFN_ACTIVATE_USB_BUS: u32 = 2277420u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const IOCTL_GENERICUSBFN_BUS_EVENT_NOTIFICATION: u32 = 2277430u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const IOCTL_GENERICUSBFN_CONTROL_STATUS_HANDSHAKE_IN: u32 = 2277400u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const IOCTL_GENERICUSBFN_CONTROL_STATUS_HANDSHAKE_OUT: u32 = 2277404u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const IOCTL_GENERICUSBFN_DEACTIVATE_USB_BUS: u32 = 2277424u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const IOCTL_GENERICUSBFN_GET_CLASS_INFO: u32 = 2277410u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const IOCTL_GENERICUSBFN_GET_CLASS_INFO_EX: u32 = 2277434u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const IOCTL_GENERICUSBFN_GET_INTERFACE_DESCRIPTOR_SET: u32 = 2277438u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const IOCTL_GENERICUSBFN_GET_PIPE_STATE: u32 = 2277414u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const IOCTL_GENERICUSBFN_REGISTER_USB_STRING: u32 = 2277441u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const IOCTL_GENERICUSBFN_SET_PIPE_STATE: u32 = 2277417u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const IOCTL_GENERICUSBFN_TRANSFER_IN: u32 = 2277389u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const IOCTL_GENERICUSBFN_TRANSFER_IN_APPEND_ZERO_PKT: u32 = 2277393u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const IOCTL_GENERICUSBFN_TRANSFER_OUT: u32 = 2277398u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const IOCTL_GET_CHANNEL_ALIGN_RQST: u32 = 2147491860u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const IOCTL_GET_DEVICE_DESCRIPTOR: u32 = 2147491864u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const IOCTL_GET_HCD_DRIVERKEY_NAME: u32 = 2229284u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const IOCTL_GET_PIPE_CONFIGURATION: u32 = 2147491880u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const IOCTL_GET_USB_DESCRIPTOR: u32 = 2147491872u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const IOCTL_GET_VERSION: u32 = 2147491840u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const IOCTL_INDEX: u32 = 2048u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const IOCTL_INTERNAL_USB_CYCLE_PORT: u32 = 2228255u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const IOCTL_INTERNAL_USB_ENABLE_PORT: u32 = 2228247u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const IOCTL_INTERNAL_USB_FAIL_GET_STATUS_FROM_DEVICE: u32 = 2229347u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const IOCTL_INTERNAL_USB_GET_BUSGUID_INFO: u32 = 2229288u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const IOCTL_INTERNAL_USB_GET_BUS_INFO: u32 = 2229280u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const IOCTL_INTERNAL_USB_GET_CONTROLLER_NAME: u32 = 2229284u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const IOCTL_INTERNAL_USB_GET_DEVICE_CONFIG_INFO: u32 = 2229327u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const IOCTL_INTERNAL_USB_GET_DEVICE_HANDLE: u32 = 2229299u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const IOCTL_INTERNAL_USB_GET_DEVICE_HANDLE_EX: u32 = 2229303u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const IOCTL_INTERNAL_USB_GET_HUB_COUNT: u32 = 2228251u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const IOCTL_INTERNAL_USB_GET_HUB_NAME: u32 = 2228256u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const IOCTL_INTERNAL_USB_GET_PARENT_HUB_INFO: u32 = 2229292u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const IOCTL_INTERNAL_USB_GET_PORT_STATUS: u32 = 2228243u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const IOCTL_INTERNAL_USB_GET_ROOTHUB_PDO: u32 = 2228239u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const IOCTL_INTERNAL_USB_GET_TOPOLOGY_ADDRESS: u32 = 2229311u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const IOCTL_INTERNAL_USB_GET_TT_DEVICE_HANDLE: u32 = 2229307u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const IOCTL_INTERNAL_USB_NOTIFY_IDLE_READY: u32 = 2229315u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const IOCTL_INTERNAL_USB_RECORD_FAILURE: u32 = 2228267u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const IOCTL_INTERNAL_USB_REGISTER_COMPOSITE_DEVICE: u32 = 4784131u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const IOCTL_INTERNAL_USB_REQUEST_REMOTE_WAKE_NOTIFICATION: u32 = 4784139u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const IOCTL_INTERNAL_USB_REQ_GLOBAL_RESUME: u32 = 2229323u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const IOCTL_INTERNAL_USB_REQ_GLOBAL_SUSPEND: u32 = 2229319u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const IOCTL_INTERNAL_USB_RESET_PORT: u32 = 2228231u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const IOCTL_INTERNAL_USB_SUBMIT_IDLE_NOTIFICATION: u32 = 2228263u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const IOCTL_INTERNAL_USB_SUBMIT_URB: u32 = 2228227u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const IOCTL_INTERNAL_USB_UNREGISTER_COMPOSITE_DEVICE: u32 = 4784135u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const IOCTL_READ_REGISTERS: u32 = 2147491852u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const IOCTL_RESET_PIPE: u32 = 2147491868u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const IOCTL_SEND_USB_REQUEST: u32 = 2147491876u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const IOCTL_SET_TIMEOUT: u32 = 2147491884u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const IOCTL_USB_DIAGNOSTIC_MODE_OFF: u32 = 2229252u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const IOCTL_USB_DIAGNOSTIC_MODE_ON: u32 = 2229248u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const IOCTL_USB_DIAG_IGNORE_HUBS_OFF: u32 = 2229276u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const IOCTL_USB_DIAG_IGNORE_HUBS_ON: u32 = 2229272u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const IOCTL_USB_GET_DESCRIPTOR_FROM_NODE_CONNECTION: u32 = 2229264u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const IOCTL_USB_GET_DEVICE_CHARACTERISTICS: u32 = 2229376u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const IOCTL_USB_GET_FRAME_NUMBER_AND_QPC_FOR_TIME_SYNC: u32 = 2229368u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const IOCTL_USB_GET_HUB_CAPABILITIES: u32 = 2229308u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const IOCTL_USB_GET_HUB_CAPABILITIES_EX: u32 = 2229328u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const IOCTL_USB_GET_HUB_INFORMATION_EX: u32 = 2229332u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const IOCTL_USB_GET_NODE_CONNECTION_ATTRIBUTES: u32 = 2229312u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const IOCTL_USB_GET_NODE_CONNECTION_DRIVERKEY_NAME: u32 = 2229280u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const IOCTL_USB_GET_NODE_CONNECTION_INFORMATION: u32 = 2229260u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const IOCTL_USB_GET_NODE_CONNECTION_INFORMATION_EX: u32 = 2229320u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const IOCTL_USB_GET_NODE_CONNECTION_INFORMATION_EX_V2: u32 = 2229340u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const IOCTL_USB_GET_NODE_CONNECTION_NAME: u32 = 2229268u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const IOCTL_USB_GET_NODE_INFORMATION: u32 = 2229256u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const IOCTL_USB_GET_PORT_CONNECTOR_PROPERTIES: u32 = 2229336u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const IOCTL_USB_GET_ROOT_HUB_NAME: u32 = 2229256u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const IOCTL_USB_GET_TRANSPORT_CHARACTERISTICS: u32 = 2229348u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const IOCTL_USB_HCD_DISABLE_PORT: u32 = 2229296u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const IOCTL_USB_HCD_ENABLE_PORT: u32 = 2229300u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const IOCTL_USB_HCD_GET_STATS_1: u32 = 2229244u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const IOCTL_USB_HCD_GET_STATS_2: u32 = 2229288u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const IOCTL_USB_HUB_CYCLE_PORT: u32 = 2229316u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const IOCTL_USB_NOTIFY_ON_TRANSPORT_CHARACTERISTICS_CHANGE: u32 = 2229356u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const IOCTL_USB_REGISTER_FOR_TRANSPORT_CHARACTERISTICS_CHANGE: u32 = 2229352u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const IOCTL_USB_RESET_HUB: u32 = 2229324u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const IOCTL_USB_START_TRACKING_FOR_TIME_SYNC: u32 = 2229364u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const IOCTL_USB_STOP_TRACKING_FOR_TIME_SYNC: u32 = 2229372u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const IOCTL_USB_UNREGISTER_FOR_TRANSPORT_CHARACTERISTICS_CHANGE: u32 = 2229360u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const IOCTL_WAIT_ON_DEVICE_EVENT: u32 = 2147491848u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const IOCTL_WRITE_REGISTERS: u32 = 2147491856u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const KREGMANUSBFNENUMPATH: ::windows::core::PCWSTR = ::windows::core::w!("\\Registry\\Machine\\SYSTEM\\CurrentControlSet\\Control\\ManufacturingMode\\Current\\USBFN\\"); |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const KREGUSBFNENUMPATH: ::windows::core::PCWSTR = ::windows::core::w!("\\Registry\\Machine\\SYSTEM\\CurrentControlSet\\Control\\USBFN\\"); |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const LowSpeed: u32 = 1u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const MAXIMUM_USB_STRING_LENGTH: u32 = 255u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const MAX_ALTERNATE_NAME_LENGTH: u32 = 40u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const MAX_ASSOCIATION_NAME_LENGTH: u32 = 40u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const MAX_CONFIGURATION_NAME_LENGTH: u32 = 40u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const MAX_INTERFACE_NAME_LENGTH: u32 = 40u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const MAX_NUM_PIPES: u32 = 8u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const MAX_NUM_USBFN_ENDPOINTS: u32 = 15u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const MAX_SUPPORTED_CONFIGURATIONS: u32 = 12u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const MAX_USB_STRING_LENGTH: u32 = 255u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const MS_GENRE_DESCRIPTOR_INDEX: u32 = 1u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const MS_OS_FLAGS_CONTAINERID: u32 = 2u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const MS_OS_STRING_SIGNATURE: ::windows::core::PCWSTR = ::windows::core::w!("MSFT100"); |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const MS_POWER_DESCRIPTOR_INDEX: u32 = 2u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const OS_STRING_DESCRIPTOR_INDEX: u32 = 238u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const PORT_LINK_STATE_COMPLIANCE_MODE: u32 = 10u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const PORT_LINK_STATE_DISABLED: u32 = 4u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const PORT_LINK_STATE_HOT_RESET: u32 = 9u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const PORT_LINK_STATE_INACTIVE: u32 = 6u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const PORT_LINK_STATE_LOOPBACK: u32 = 11u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const PORT_LINK_STATE_POLLING: u32 = 7u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const PORT_LINK_STATE_RECOVERY: u32 = 8u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const PORT_LINK_STATE_RX_DETECT: u32 = 5u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const PORT_LINK_STATE_TEST_MODE: u32 = 11u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const PORT_LINK_STATE_U0: u32 = 0u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const PORT_LINK_STATE_U1: u32 = 1u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const PORT_LINK_STATE_U2: u32 = 2u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const PORT_LINK_STATE_U3: u32 = 3u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const URB_FUNCTION_ABORT_PIPE: u32 = 2u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const URB_FUNCTION_BULK_OR_INTERRUPT_TRANSFER: u32 = 9u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const URB_FUNCTION_BULK_OR_INTERRUPT_TRANSFER_USING_CHAINED_MDL: u32 = 55u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const URB_FUNCTION_CLASS_DEVICE: u32 = 26u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const URB_FUNCTION_CLASS_ENDPOINT: u32 = 28u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const URB_FUNCTION_CLASS_INTERFACE: u32 = 27u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const URB_FUNCTION_CLASS_OTHER: u32 = 31u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const URB_FUNCTION_CLEAR_FEATURE_TO_DEVICE: u32 = 16u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const URB_FUNCTION_CLEAR_FEATURE_TO_ENDPOINT: u32 = 18u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const URB_FUNCTION_CLEAR_FEATURE_TO_INTERFACE: u32 = 17u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const URB_FUNCTION_CLEAR_FEATURE_TO_OTHER: u32 = 34u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const URB_FUNCTION_CLOSE_STATIC_STREAMS: u32 = 54u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const URB_FUNCTION_CONTROL_TRANSFER: u32 = 8u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const URB_FUNCTION_CONTROL_TRANSFER_EX: u32 = 50u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const URB_FUNCTION_GET_CONFIGURATION: u32 = 38u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const URB_FUNCTION_GET_CURRENT_FRAME_NUMBER: u32 = 7u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const URB_FUNCTION_GET_DESCRIPTOR_FROM_DEVICE: u32 = 11u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const URB_FUNCTION_GET_DESCRIPTOR_FROM_ENDPOINT: u32 = 36u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const URB_FUNCTION_GET_DESCRIPTOR_FROM_INTERFACE: u32 = 40u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const URB_FUNCTION_GET_FRAME_LENGTH: u32 = 5u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const URB_FUNCTION_GET_INTERFACE: u32 = 39u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const URB_FUNCTION_GET_ISOCH_PIPE_TRANSFER_PATH_DELAYS: u32 = 61u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const URB_FUNCTION_GET_MS_FEATURE_DESCRIPTOR: u32 = 42u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const URB_FUNCTION_GET_STATUS_FROM_DEVICE: u32 = 19u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const URB_FUNCTION_GET_STATUS_FROM_ENDPOINT: u32 = 21u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const URB_FUNCTION_GET_STATUS_FROM_INTERFACE: u32 = 20u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const URB_FUNCTION_GET_STATUS_FROM_OTHER: u32 = 33u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const URB_FUNCTION_ISOCH_TRANSFER: u32 = 10u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const URB_FUNCTION_ISOCH_TRANSFER_USING_CHAINED_MDL: u32 = 56u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const URB_FUNCTION_OPEN_STATIC_STREAMS: u32 = 53u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const URB_FUNCTION_RELEASE_FRAME_LENGTH_CONTROL: u32 = 4u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const URB_FUNCTION_RESERVED_0X0016: u32 = 22u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const URB_FUNCTION_RESERVE_0X001D: u32 = 29u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const URB_FUNCTION_RESERVE_0X002B: u32 = 43u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const URB_FUNCTION_RESERVE_0X002C: u32 = 44u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const URB_FUNCTION_RESERVE_0X002D: u32 = 45u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const URB_FUNCTION_RESERVE_0X002E: u32 = 46u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const URB_FUNCTION_RESERVE_0X002F: u32 = 47u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const URB_FUNCTION_RESERVE_0X0033: u32 = 51u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const URB_FUNCTION_RESERVE_0X0034: u32 = 52u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const URB_FUNCTION_RESET_PIPE: u32 = 30u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const URB_FUNCTION_SELECT_CONFIGURATION: u32 = 0u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const URB_FUNCTION_SELECT_INTERFACE: u32 = 1u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const URB_FUNCTION_SET_DESCRIPTOR_TO_DEVICE: u32 = 12u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const URB_FUNCTION_SET_DESCRIPTOR_TO_ENDPOINT: u32 = 37u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const URB_FUNCTION_SET_DESCRIPTOR_TO_INTERFACE: u32 = 41u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const URB_FUNCTION_SET_FEATURE_TO_DEVICE: u32 = 13u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const URB_FUNCTION_SET_FEATURE_TO_ENDPOINT: u32 = 15u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const URB_FUNCTION_SET_FEATURE_TO_INTERFACE: u32 = 14u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const URB_FUNCTION_SET_FEATURE_TO_OTHER: u32 = 35u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const URB_FUNCTION_SET_FRAME_LENGTH: u32 = 6u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const URB_FUNCTION_SYNC_CLEAR_STALL: u32 = 49u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const URB_FUNCTION_SYNC_RESET_PIPE: u32 = 48u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const URB_FUNCTION_SYNC_RESET_PIPE_AND_CLEAR_STALL: u32 = 30u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const URB_FUNCTION_TAKE_FRAME_LENGTH_CONTROL: u32 = 3u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const URB_FUNCTION_VENDOR_DEVICE: u32 = 23u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const URB_FUNCTION_VENDOR_ENDPOINT: u32 = 25u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const URB_FUNCTION_VENDOR_INTERFACE: u32 = 24u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const URB_FUNCTION_VENDOR_OTHER: u32 = 32u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const URB_OPEN_STATIC_STREAMS_VERSION_100: u32 = 256u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const UREGMANUSBFNENUMPATH: ::windows::core::PCWSTR = ::windows::core::w!("HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Control\\ManufacturingMode\\Current\\USBFN\\"); |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const UREGUSBFNENUMPATH: ::windows::core::PCWSTR = ::windows::core::w!("HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Control\\USBFN\\"); |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const USBDI_VERSION: u32 = 1536u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const USBD_DEFAULT_MAXIMUM_TRANSFER_SIZE: u32 = 4294967295u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const USBD_DEFAULT_PIPE_TRANSFER: u32 = 8u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const USBD_ISO_START_FRAME_RANGE: u32 = 1024u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const USBD_PF_CHANGE_MAX_PACKET: u32 = 1u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const USBD_PF_ENABLE_RT_THREAD_ACCESS: u32 = 4u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const USBD_PF_HANDLES_SSP_HIGH_BANDWIDTH_ISOCH: u32 = 256u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const USBD_PF_INTERACTIVE_PRIORITY: u32 = 48u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const USBD_PF_MAP_ADD_TRANSFERS: u32 = 8u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const USBD_PF_PRIORITY_MASK: u32 = 240u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const USBD_PF_SHORT_PACKET_OPT: u32 = 2u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const USBD_PF_SSP_HIGH_BANDWIDTH_ISOCH: u32 = 65536u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const USBD_PF_VIDEO_PRIORITY: u32 = 16u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const USBD_PF_VOICE_PRIORITY: u32 = 32u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const USBD_PORT_CONNECTED: u32 = 2u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const USBD_PORT_ENABLED: u32 = 1u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const USBD_SHORT_TRANSFER_OK: u32 = 2u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const USBD_START_ISO_TRANSFER_ASAP: u32 = 4u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const USBD_TRANSFER_DIRECTION: u32 = 1u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const USBD_TRANSFER_DIRECTION_IN: u32 = 1u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const USBD_TRANSFER_DIRECTION_OUT: u32 = 0u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const USBFN_INTERRUPT_ENDPOINT_SIZE_NOT_UPDATEABLE_MASK: u32 = 128u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const USBUSER_CLEAR_ROOTPORT_FEATURE: u32 = 536870918u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const USBUSER_GET_BANDWIDTH_INFORMATION: u32 = 5u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const USBUSER_GET_BUS_STATISTICS_0: u32 = 6u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const USBUSER_GET_CONTROLLER_DRIVER_KEY: u32 = 2u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const USBUSER_GET_CONTROLLER_INFO_0: u32 = 1u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const USBUSER_GET_POWER_STATE_MAP: u32 = 4u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const USBUSER_GET_ROOTHUB_SYMBOLIC_NAME: u32 = 7u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const USBUSER_GET_ROOTPORT_STATUS: u32 = 536870919u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const USBUSER_GET_USB2_HW_VERSION: u32 = 9u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const USBUSER_GET_USB_DRIVER_VERSION: u32 = 8u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const USBUSER_INVALID_REQUEST: u32 = 4294967280u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const USBUSER_OP_CLOSE_RAW_DEVICE: u32 = 536870915u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const USBUSER_OP_MASK_DEVONLY_API: u32 = 268435456u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const USBUSER_OP_MASK_HCTEST_API: u32 = 536870912u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const USBUSER_OP_OPEN_RAW_DEVICE: u32 = 536870914u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const USBUSER_OP_RAW_RESET_PORT: u32 = 536870913u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const USBUSER_OP_SEND_ONE_PACKET: u32 = 268435457u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const USBUSER_OP_SEND_RAW_COMMAND: u32 = 536870916u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const USBUSER_PASS_THRU: u32 = 3u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const USBUSER_SET_ROOTPORT_FEATURE: u32 = 536870917u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const USBUSER_USB_REFRESH_HCT_REG: u32 = 10u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const USBUSER_VERSION: u32 = 4u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const USB_20_ENDPOINT_TYPE_INTERRUPT_RESERVED_MASK: u32 = 252u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const USB_20_HUB_DESCRIPTOR_TYPE: u32 = 41u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const USB_30_ENDPOINT_TYPE_INTERRUPT_RESERVED_MASK: u32 = 204u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const USB_30_ENDPOINT_TYPE_INTERRUPT_USAGE_MASK: u32 = 48u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const USB_30_ENDPOINT_TYPE_INTERRUPT_USAGE_NOTIFICATION: u32 = 16u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const USB_30_ENDPOINT_TYPE_INTERRUPT_USAGE_PERIODIC: u32 = 0u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const USB_30_ENDPOINT_TYPE_INTERRUPT_USAGE_RESERVED10: u32 = 32u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const USB_30_ENDPOINT_TYPE_INTERRUPT_USAGE_RESERVED11: u32 = 48u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const USB_30_HUB_DESCRIPTOR_TYPE: u32 = 42u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const USB_ALLOW_FIRMWARE_UPDATE: u32 = 1u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const USB_BOS_DESCRIPTOR_TYPE: u32 = 15u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const USB_CHARGING_POLICY_DEFAULT: u32 = 0u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const USB_CHARGING_POLICY_ICCHPF: u32 = 1u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const USB_CHARGING_POLICY_ICCLPF: u32 = 2u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const USB_CHARGING_POLICY_NO_POWER: u32 = 3u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const USB_CONFIGURATION_DESCRIPTOR_TYPE: u32 = 2u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const USB_CONFIG_BUS_POWERED: u32 = 128u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const USB_CONFIG_POWERED_MASK: u32 = 192u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const USB_CONFIG_POWER_DESCRIPTOR_TYPE: u32 = 7u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const USB_CONFIG_REMOTE_WAKEUP: u32 = 32u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const USB_CONFIG_RESERVED: u32 = 31u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const USB_CONFIG_SELF_POWERED: u32 = 64u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const USB_CYCLE_PORT: u32 = 7u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const USB_DEBUG_DESCRIPTOR_TYPE: u32 = 10u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const USB_DEFAULT_DEVICE_ADDRESS: u32 = 0u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const USB_DEFAULT_ENDPOINT_ADDRESS: u32 = 0u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const USB_DEFAULT_MAX_PACKET: u32 = 64u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const USB_DEVICE_CAPABILITY_BATTERY_INFO: u32 = 7u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const USB_DEVICE_CAPABILITY_BILLBOARD: u32 = 13u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const USB_DEVICE_CAPABILITY_CONTAINER_ID: u32 = 4u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const USB_DEVICE_CAPABILITY_DESCRIPTOR_TYPE: u32 = 16u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const USB_DEVICE_CAPABILITY_FIRMWARE_STATUS: u32 = 17u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const USB_DEVICE_CAPABILITY_MAX_U1_LATENCY: u32 = 10u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const USB_DEVICE_CAPABILITY_MAX_U2_LATENCY: u32 = 2047u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const USB_DEVICE_CAPABILITY_PD_CONSUMER_PORT: u32 = 8u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const USB_DEVICE_CAPABILITY_PD_PROVIDER_PORT: u32 = 9u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const USB_DEVICE_CAPABILITY_PLATFORM: u32 = 5u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const USB_DEVICE_CAPABILITY_POWER_DELIVERY: u32 = 6u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const USB_DEVICE_CAPABILITY_PRECISION_TIME_MEASUREMENT: u32 = 11u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const USB_DEVICE_CAPABILITY_SUPERSPEEDPLUS_SPEED_DIR_RX: u32 = 0u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const USB_DEVICE_CAPABILITY_SUPERSPEEDPLUS_SPEED_DIR_TX: u32 = 1u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const USB_DEVICE_CAPABILITY_SUPERSPEEDPLUS_SPEED_LSE_BPS: u32 = 0u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const USB_DEVICE_CAPABILITY_SUPERSPEEDPLUS_SPEED_LSE_GBPS: u32 = 3u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const USB_DEVICE_CAPABILITY_SUPERSPEEDPLUS_SPEED_LSE_KBPS: u32 = 1u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const USB_DEVICE_CAPABILITY_SUPERSPEEDPLUS_SPEED_LSE_MBPS: u32 = 2u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const USB_DEVICE_CAPABILITY_SUPERSPEEDPLUS_SPEED_MODE_ASYMMETRIC: u32 = 1u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const USB_DEVICE_CAPABILITY_SUPERSPEEDPLUS_SPEED_MODE_SYMMETRIC: u32 = 0u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const USB_DEVICE_CAPABILITY_SUPERSPEEDPLUS_SPEED_PROTOCOL_SS: u32 = 0u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const USB_DEVICE_CAPABILITY_SUPERSPEEDPLUS_SPEED_PROTOCOL_SSP: u32 = 1u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const USB_DEVICE_CAPABILITY_SUPERSPEEDPLUS_USB: u32 = 10u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const USB_DEVICE_CAPABILITY_SUPERSPEED_BMATTRIBUTES_LTM_CAPABLE: u32 = 2u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const USB_DEVICE_CAPABILITY_SUPERSPEED_BMATTRIBUTES_RESERVED_MASK: u32 = 253u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const USB_DEVICE_CAPABILITY_SUPERSPEED_SPEEDS_SUPPORTED_FULL: u32 = 2u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const USB_DEVICE_CAPABILITY_SUPERSPEED_SPEEDS_SUPPORTED_HIGH: u32 = 4u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const USB_DEVICE_CAPABILITY_SUPERSPEED_SPEEDS_SUPPORTED_LOW: u32 = 1u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const USB_DEVICE_CAPABILITY_SUPERSPEED_SPEEDS_SUPPORTED_RESERVED_MASK: u32 = 65520u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const USB_DEVICE_CAPABILITY_SUPERSPEED_SPEEDS_SUPPORTED_SUPER: u32 = 8u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const USB_DEVICE_CAPABILITY_SUPERSPEED_U1_DEVICE_EXIT_MAX_VALUE: u32 = 10u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const USB_DEVICE_CAPABILITY_SUPERSPEED_U2_DEVICE_EXIT_MAX_VALUE: u32 = 2047u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const USB_DEVICE_CAPABILITY_SUPERSPEED_USB: u32 = 3u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const USB_DEVICE_CAPABILITY_USB20_EXTENSION: u32 = 2u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const USB_DEVICE_CAPABILITY_USB20_EXTENSION_BMATTRIBUTES_RESERVED_MASK: u32 = 4294901985u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const USB_DEVICE_CAPABILITY_WIRELESS_USB: u32 = 1u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const USB_DEVICE_CHARACTERISTICS_MAXIMUM_PATH_DELAYS_AVAILABLE: u32 = 1u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const USB_DEVICE_CHARACTERISTICS_VERSION_1: u32 = 1u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const USB_DEVICE_CLASS_APPLICATION_SPECIFIC: u32 = 254u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const USB_DEVICE_CLASS_AUDIO: u32 = 1u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const USB_DEVICE_CLASS_AUDIO_VIDEO: u32 = 16u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const USB_DEVICE_CLASS_BILLBOARD: u32 = 17u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const USB_DEVICE_CLASS_CDC_DATA: u32 = 10u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const USB_DEVICE_CLASS_COMMUNICATIONS: u32 = 2u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const USB_DEVICE_CLASS_CONTENT_SECURITY: u32 = 13u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const USB_DEVICE_CLASS_DIAGNOSTIC_DEVICE: u32 = 220u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const USB_DEVICE_CLASS_HUB: u32 = 9u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const USB_DEVICE_CLASS_HUMAN_INTERFACE: u32 = 3u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const USB_DEVICE_CLASS_IMAGE: u32 = 6u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const USB_DEVICE_CLASS_MISCELLANEOUS: u32 = 239u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const USB_DEVICE_CLASS_MONITOR: u32 = 4u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const USB_DEVICE_CLASS_PERSONAL_HEALTHCARE: u32 = 15u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const USB_DEVICE_CLASS_PHYSICAL_INTERFACE: u32 = 5u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const USB_DEVICE_CLASS_POWER: u32 = 6u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const USB_DEVICE_CLASS_PRINTER: u32 = 7u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const USB_DEVICE_CLASS_RESERVED: u32 = 0u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const USB_DEVICE_CLASS_SMART_CARD: u32 = 11u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const USB_DEVICE_CLASS_STORAGE: u32 = 8u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const USB_DEVICE_CLASS_VENDOR_SPECIFIC: u32 = 255u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const USB_DEVICE_CLASS_VIDEO: u32 = 14u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const USB_DEVICE_CLASS_WIRELESS_CONTROLLER: u32 = 224u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const USB_DEVICE_DESCRIPTOR_TYPE: u32 = 1u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const USB_DEVICE_FIRMWARE_HASH_LENGTH: u32 = 32u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const USB_DEVICE_QUALIFIER_DESCRIPTOR_TYPE: u32 = 6u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const USB_DIAG_IGNORE_HUBS_OFF: u32 = 263u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const USB_DIAG_IGNORE_HUBS_ON: u32 = 262u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const USB_DISALLOW_FIRMWARE_UPDATE: u32 = 0u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const USB_ENABLE_PORT: u32 = 5u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const USB_ENDPOINT_ADDRESS_MASK: u32 = 15u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const USB_ENDPOINT_DESCRIPTOR_TYPE: u32 = 5u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const USB_ENDPOINT_DIRECTION_MASK: u32 = 128u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const USB_ENDPOINT_SUPERSPEED_BULK_MAX_PACKET_SIZE: u32 = 1024u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const USB_ENDPOINT_SUPERSPEED_CONTROL_MAX_PACKET_SIZE: u32 = 512u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const USB_ENDPOINT_SUPERSPEED_INTERRUPT_MAX_PACKET_SIZE: u32 = 1024u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const USB_ENDPOINT_SUPERSPEED_ISO_MAX_PACKET_SIZE: u32 = 1024u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const USB_ENDPOINT_TYPE_BULK: u32 = 2u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const USB_ENDPOINT_TYPE_BULK_RESERVED_MASK: u32 = 252u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const USB_ENDPOINT_TYPE_CONTROL: u32 = 0u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const USB_ENDPOINT_TYPE_CONTROL_RESERVED_MASK: u32 = 252u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const USB_ENDPOINT_TYPE_INTERRUPT: u32 = 3u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const USB_ENDPOINT_TYPE_ISOCHRONOUS: u32 = 1u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const USB_ENDPOINT_TYPE_ISOCHRONOUS_RESERVED_MASK: u32 = 192u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const USB_ENDPOINT_TYPE_ISOCHRONOUS_SYNCHRONIZATION_ADAPTIVE: u32 = 8u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const USB_ENDPOINT_TYPE_ISOCHRONOUS_SYNCHRONIZATION_ASYNCHRONOUS: u32 = 4u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const USB_ENDPOINT_TYPE_ISOCHRONOUS_SYNCHRONIZATION_MASK: u32 = 12u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const USB_ENDPOINT_TYPE_ISOCHRONOUS_SYNCHRONIZATION_NO_SYNCHRONIZATION: u32 = 0u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const USB_ENDPOINT_TYPE_ISOCHRONOUS_SYNCHRONIZATION_SYNCHRONOUS: u32 = 12u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const USB_ENDPOINT_TYPE_ISOCHRONOUS_USAGE_DATA_ENDOINT: u32 = 0u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const USB_ENDPOINT_TYPE_ISOCHRONOUS_USAGE_FEEDBACK_ENDPOINT: u32 = 16u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const USB_ENDPOINT_TYPE_ISOCHRONOUS_USAGE_IMPLICIT_FEEDBACK_DATA_ENDPOINT: u32 = 32u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const USB_ENDPOINT_TYPE_ISOCHRONOUS_USAGE_MASK: u32 = 48u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const USB_ENDPOINT_TYPE_ISOCHRONOUS_USAGE_RESERVED: u32 = 48u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const USB_ENDPOINT_TYPE_MASK: u32 = 3u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const USB_FAIL_GET_STATUS: u32 = 280u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const USB_FEATURE_BATTERY_WAKE_MASK: u32 = 40u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const USB_FEATURE_CHARGING_POLICY: u32 = 54u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const USB_FEATURE_ENDPOINT_STALL: u32 = 0u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const USB_FEATURE_FUNCTION_SUSPEND: u32 = 0u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const USB_FEATURE_INTERFACE_POWER_D0: u32 = 2u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const USB_FEATURE_INTERFACE_POWER_D1: u32 = 3u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const USB_FEATURE_INTERFACE_POWER_D2: u32 = 4u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const USB_FEATURE_INTERFACE_POWER_D3: u32 = 5u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const USB_FEATURE_LDM_ENABLE: u32 = 53u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const USB_FEATURE_LTM_ENABLE: u32 = 50u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const USB_FEATURE_OS_IS_PD_AWARE: u32 = 41u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const USB_FEATURE_POLICY_MODE: u32 = 42u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const USB_FEATURE_REMOTE_WAKEUP: u32 = 1u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const USB_FEATURE_TEST_MODE: u32 = 2u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const USB_FEATURE_U1_ENABLE: u32 = 48u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const USB_FEATURE_U2_ENABLE: u32 = 49u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const USB_GETSTATUS_LTM_ENABLE: u32 = 16u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const USB_GETSTATUS_REMOTE_WAKEUP_ENABLED: u32 = 2u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const USB_GETSTATUS_SELF_POWERED: u32 = 1u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const USB_GETSTATUS_U1_ENABLE: u32 = 4u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const USB_GETSTATUS_U2_ENABLE: u32 = 8u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const USB_GET_BUSGUID_INFO: u32 = 266u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const USB_GET_BUS_INFO: u32 = 264u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const USB_GET_CONTROLLER_NAME: u32 = 265u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const USB_GET_DESCRIPTOR_FROM_NODE_CONNECTION: u32 = 260u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const USB_GET_DEVICE_CHARACTERISTICS: u32 = 288u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const USB_GET_DEVICE_HANDLE: u32 = 268u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const USB_GET_DEVICE_HANDLE_EX: u32 = 269u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const USB_GET_FIRMWARE_ALLOWED_OR_DISALLOWED_STATE: u32 = 0u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const USB_GET_FIRMWARE_HASH: u32 = 1u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const USB_GET_FRAME_NUMBER_AND_QPC_FOR_TIME_SYNC: u32 = 286u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const USB_GET_HUB_CAPABILITIES: u32 = 271u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const USB_GET_HUB_CAPABILITIES_EX: u32 = 276u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const USB_GET_HUB_CONFIG_INFO: u32 = 275u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const USB_GET_HUB_COUNT: u32 = 6u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const USB_GET_HUB_INFORMATION_EX: u32 = 277u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const USB_GET_HUB_NAME: u32 = 8u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const USB_GET_NODE_CONNECTION_ATTRIBUTES: u32 = 272u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const USB_GET_NODE_CONNECTION_DRIVERKEY_NAME: u32 = 264u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const USB_GET_NODE_CONNECTION_INFORMATION: u32 = 259u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const USB_GET_NODE_CONNECTION_INFORMATION_EX: u32 = 274u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const USB_GET_NODE_CONNECTION_INFORMATION_EX_V2: u32 = 279u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const USB_GET_NODE_CONNECTION_NAME: u32 = 261u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const USB_GET_NODE_INFORMATION: u32 = 258u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const USB_GET_PARENT_HUB_INFO: u32 = 267u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const USB_GET_PORT_CONNECTOR_PROPERTIES: u32 = 278u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const USB_GET_PORT_STATUS: u32 = 4u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const USB_GET_ROOTHUB_PDO: u32 = 3u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const USB_GET_TOPOLOGY_ADDRESS: u32 = 271u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const USB_GET_TRANSPORT_CHARACTERISTICS: u32 = 281u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const USB_GET_TT_DEVICE_HANDLE: u32 = 270u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const USB_HC_FEATURE_FLAG_PORT_POWER_SWITCHING: u32 = 1u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const USB_HC_FEATURE_FLAG_SEL_SUSPEND: u32 = 2u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const USB_HC_FEATURE_LEGACY_BIOS: u32 = 4u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const USB_HC_FEATURE_TIME_SYNC_API: u32 = 8u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const USB_HUB_CYCLE_PORT: u32 = 273u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const USB_IDLE_NOTIFICATION: u32 = 9u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const USB_IDLE_NOTIFICATION_EX: u32 = 272u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const USB_INTERFACE_ASSOCIATION_DESCRIPTOR_TYPE: u32 = 11u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const USB_INTERFACE_DESCRIPTOR_TYPE: u32 = 4u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const USB_INTERFACE_POWER_DESCRIPTOR_TYPE: u32 = 8u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const USB_NOTIFY_ON_TRANSPORT_CHARACTERISTICS_CHANGE: u32 = 283u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const USB_OTG_DESCRIPTOR_TYPE: u32 = 9u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const USB_OTHER_SPEED_CONFIGURATION_DESCRIPTOR_TYPE: u32 = 7u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const USB_PACKETFLAG_ASYNC_IN: u32 = 8u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const USB_PACKETFLAG_ASYNC_OUT: u32 = 16u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const USB_PACKETFLAG_FULL_SPEED: u32 = 2u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const USB_PACKETFLAG_HIGH_SPEED: u32 = 4u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const USB_PACKETFLAG_ISO_IN: u32 = 32u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const USB_PACKETFLAG_ISO_OUT: u32 = 64u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const USB_PACKETFLAG_LOW_SPEED: u32 = 1u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const USB_PACKETFLAG_SETUP: u32 = 128u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const USB_PACKETFLAG_TOGGLE0: u32 = 256u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const USB_PACKETFLAG_TOGGLE1: u32 = 512u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const USB_PORTATTR_MINI_CONNECTOR: u32 = 4u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const USB_PORTATTR_NO_CONNECTOR: u32 = 1u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const USB_PORTATTR_NO_OVERCURRENT_UI: u32 = 33554432u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const USB_PORTATTR_OEM_CONNECTOR: u32 = 8u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const USB_PORTATTR_OWNED_BY_CC: u32 = 16777216u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const USB_PORTATTR_SHARED_USB2: u32 = 2u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const USB_PORT_STATUS_CONNECT: u32 = 1u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const USB_PORT_STATUS_ENABLE: u32 = 2u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const USB_PORT_STATUS_HIGH_SPEED: u32 = 1024u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const USB_PORT_STATUS_LOW_SPEED: u32 = 512u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const USB_PORT_STATUS_OVER_CURRENT: u32 = 8u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const USB_PORT_STATUS_POWER: u32 = 256u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const USB_PORT_STATUS_RESET: u32 = 16u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const USB_PORT_STATUS_SUSPEND: u32 = 4u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const USB_RECORD_FAILURE: u32 = 10u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const USB_REGISTER_COMPOSITE_DEVICE: u32 = 0u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const USB_REGISTER_FOR_TRANSPORT_BANDWIDTH_CHANGE: u32 = 2u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const USB_REGISTER_FOR_TRANSPORT_CHARACTERISTICS_CHANGE: u32 = 282u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const USB_REGISTER_FOR_TRANSPORT_LATENCY_CHANGE: u32 = 1u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const USB_REQUEST_CLEAR_FEATURE: u32 = 1u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const USB_REQUEST_CLEAR_TT_BUFFER: u32 = 8u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const USB_REQUEST_GET_CONFIGURATION: u32 = 8u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const USB_REQUEST_GET_DESCRIPTOR: u32 = 6u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const USB_REQUEST_GET_FIRMWARE_STATUS: u32 = 26u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const USB_REQUEST_GET_INTERFACE: u32 = 10u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const USB_REQUEST_GET_PORT_ERR_COUNT: u32 = 13u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const USB_REQUEST_GET_STATE: u32 = 2u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const USB_REQUEST_GET_STATUS: u32 = 0u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const USB_REQUEST_GET_TT_STATE: u32 = 10u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const USB_REQUEST_ISOCH_DELAY: u32 = 49u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const USB_REQUEST_REMOTE_WAKE_NOTIFICATION: u32 = 2u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const USB_REQUEST_RESET_TT: u32 = 9u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const USB_REQUEST_SET_ADDRESS: u32 = 5u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const USB_REQUEST_SET_CONFIGURATION: u32 = 9u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const USB_REQUEST_SET_DESCRIPTOR: u32 = 7u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const USB_REQUEST_SET_FEATURE: u32 = 3u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const USB_REQUEST_SET_FIRMWARE_STATUS: u32 = 27u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const USB_REQUEST_SET_HUB_DEPTH: u32 = 12u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const USB_REQUEST_SET_INTERFACE: u32 = 11u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const USB_REQUEST_SET_SEL: u32 = 48u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const USB_REQUEST_STOP_TT: u32 = 11u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const USB_REQUEST_SYNC_FRAME: u32 = 12u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const USB_REQ_GLOBAL_RESUME: u32 = 274u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const USB_REQ_GLOBAL_SUSPEND: u32 = 273u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const USB_RESERVED_DESCRIPTOR_TYPE: u32 = 6u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const USB_RESERVED_USER_BASE: u32 = 1024u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const USB_RESET_HUB: u32 = 275u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const USB_RESET_PORT: u32 = 1u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const USB_START_TRACKING_FOR_TIME_SYNC: u32 = 285u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const USB_STATUS_EXT_PORT_STATUS: u32 = 2u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const USB_STATUS_PD_STATUS: u32 = 1u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const USB_STATUS_PORT_STATUS: u32 = 0u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const USB_STOP_TRACKING_FOR_TIME_SYNC: u32 = 287u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const USB_STRING_DESCRIPTOR_TYPE: u32 = 3u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const USB_SUBMIT_URB: u32 = 0u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const USB_SUPERSPEEDPLUS_ISOCHRONOUS_MAX_BYTESPERINTERVAL: u32 = 16777215u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const USB_SUPERSPEEDPLUS_ISOCHRONOUS_MIN_BYTESPERINTERVAL: u32 = 49153u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const USB_SUPERSPEEDPLUS_ISOCH_ENDPOINT_COMPANION_DESCRIPTOR_TYPE: u32 = 49u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const USB_SUPERSPEED_ENDPOINT_COMPANION_DESCRIPTOR_TYPE: u32 = 48u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const USB_SUPERSPEED_ISOCHRONOUS_MAX_MULTIPLIER: u32 = 2u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const USB_SUPPORT_D0_COMMAND: u32 = 1u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const USB_SUPPORT_D1_COMMAND: u32 = 2u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const USB_SUPPORT_D1_WAKEUP: u32 = 16u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const USB_SUPPORT_D2_COMMAND: u32 = 4u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const USB_SUPPORT_D2_WAKEUP: u32 = 32u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const USB_SUPPORT_D3_COMMAND: u32 = 8u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const USB_TEST_MODE_TEST_FORCE_ENABLE: u32 = 5u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const USB_TEST_MODE_TEST_J: u32 = 1u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const USB_TEST_MODE_TEST_K: u32 = 2u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const USB_TEST_MODE_TEST_PACKET: u32 = 4u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const USB_TEST_MODE_TEST_SE0_NAK: u32 = 3u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const USB_TRANSPORT_CHARACTERISTICS_BANDWIDTH_AVAILABLE: u32 = 2u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const USB_TRANSPORT_CHARACTERISTICS_LATENCY_AVAILABLE: u32 = 1u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const USB_TRANSPORT_CHARACTERISTICS_VERSION_1: u32 = 1u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const USB_UNREGISTER_COMPOSITE_DEVICE: u32 = 1u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const USB_UNREGISTER_FOR_TRANSPORT_CHARACTERISTICS_CHANGE: u32 = 284u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const WMI_USB_DEVICE_NODE_INFORMATION: u32 = 2u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const WMI_USB_DRIVER_INFORMATION: u32 = 0u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const WMI_USB_DRIVER_NOTIFICATION: u32 = 1u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const WMI_USB_HUB_NODE_INFORMATION: u32 = 4u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const WMI_USB_PERFORMANCE_INFORMATION: u32 = 1u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const WMI_USB_POWER_DEVICE_ENABLE: u32 = 2u32; |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const WinUSB_TestGuid: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xda812bff_12c3_46a2_8e2b_dbd3b7834c43); |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| #[repr(transparent)] |
| #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] |
| pub struct PIPE_TYPE(pub i32); |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const EVENT_PIPE: PIPE_TYPE = PIPE_TYPE(0i32); |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const READ_DATA_PIPE: PIPE_TYPE = PIPE_TYPE(1i32); |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const WRITE_DATA_PIPE: PIPE_TYPE = PIPE_TYPE(2i32); |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const ALL_PIPE: PIPE_TYPE = PIPE_TYPE(3i32); |
| impl ::core::marker::Copy for PIPE_TYPE {} |
| impl ::core::clone::Clone for PIPE_TYPE { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::core::default::Default for PIPE_TYPE { |
| fn default() -> Self { |
| Self(0) |
| } |
| } |
| impl ::windows::core::TypeKind for PIPE_TYPE { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::fmt::Debug for PIPE_TYPE { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_tuple("PIPE_TYPE").field(&self.0).finish() |
| } |
| } |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| #[repr(transparent)] |
| #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] |
| pub struct RAW_PIPE_TYPE(pub i32); |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const USBSCAN_PIPE_CONTROL: RAW_PIPE_TYPE = RAW_PIPE_TYPE(0i32); |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const USBSCAN_PIPE_ISOCHRONOUS: RAW_PIPE_TYPE = RAW_PIPE_TYPE(1i32); |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const USBSCAN_PIPE_BULK: RAW_PIPE_TYPE = RAW_PIPE_TYPE(2i32); |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const USBSCAN_PIPE_INTERRUPT: RAW_PIPE_TYPE = RAW_PIPE_TYPE(3i32); |
| impl ::core::marker::Copy for RAW_PIPE_TYPE {} |
| impl ::core::clone::Clone for RAW_PIPE_TYPE { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::core::default::Default for RAW_PIPE_TYPE { |
| fn default() -> Self { |
| Self(0) |
| } |
| } |
| impl ::windows::core::TypeKind for RAW_PIPE_TYPE { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::fmt::Debug for RAW_PIPE_TYPE { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_tuple("RAW_PIPE_TYPE").field(&self.0).finish() |
| } |
| } |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| #[repr(transparent)] |
| #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] |
| pub struct USBD_ENDPOINT_OFFLOAD_MODE(pub i32); |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const UsbdEndpointOffloadModeNotSupported: USBD_ENDPOINT_OFFLOAD_MODE = USBD_ENDPOINT_OFFLOAD_MODE(0i32); |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const UsbdEndpointOffloadSoftwareAssisted: USBD_ENDPOINT_OFFLOAD_MODE = USBD_ENDPOINT_OFFLOAD_MODE(1i32); |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const UsbdEndpointOffloadHardwareAssisted: USBD_ENDPOINT_OFFLOAD_MODE = USBD_ENDPOINT_OFFLOAD_MODE(2i32); |
| impl ::core::marker::Copy for USBD_ENDPOINT_OFFLOAD_MODE {} |
| impl ::core::clone::Clone for USBD_ENDPOINT_OFFLOAD_MODE { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::core::default::Default for USBD_ENDPOINT_OFFLOAD_MODE { |
| fn default() -> Self { |
| Self(0) |
| } |
| } |
| impl ::windows::core::TypeKind for USBD_ENDPOINT_OFFLOAD_MODE { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::fmt::Debug for USBD_ENDPOINT_OFFLOAD_MODE { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_tuple("USBD_ENDPOINT_OFFLOAD_MODE").field(&self.0).finish() |
| } |
| } |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| #[repr(transparent)] |
| #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] |
| pub struct USBD_PIPE_TYPE(pub i32); |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const UsbdPipeTypeControl: USBD_PIPE_TYPE = USBD_PIPE_TYPE(0i32); |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const UsbdPipeTypeIsochronous: USBD_PIPE_TYPE = USBD_PIPE_TYPE(1i32); |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const UsbdPipeTypeBulk: USBD_PIPE_TYPE = USBD_PIPE_TYPE(2i32); |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const UsbdPipeTypeInterrupt: USBD_PIPE_TYPE = USBD_PIPE_TYPE(3i32); |
| impl ::core::marker::Copy for USBD_PIPE_TYPE {} |
| impl ::core::clone::Clone for USBD_PIPE_TYPE { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::core::default::Default for USBD_PIPE_TYPE { |
| fn default() -> Self { |
| Self(0) |
| } |
| } |
| impl ::windows::core::TypeKind for USBD_PIPE_TYPE { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::fmt::Debug for USBD_PIPE_TYPE { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_tuple("USBD_PIPE_TYPE").field(&self.0).finish() |
| } |
| } |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| #[repr(transparent)] |
| #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] |
| pub struct USBFN_BUS_SPEED(pub i32); |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const UsbfnBusSpeedLow: USBFN_BUS_SPEED = USBFN_BUS_SPEED(0i32); |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const UsbfnBusSpeedFull: USBFN_BUS_SPEED = USBFN_BUS_SPEED(1i32); |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const UsbfnBusSpeedHigh: USBFN_BUS_SPEED = USBFN_BUS_SPEED(2i32); |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const UsbfnBusSpeedSuper: USBFN_BUS_SPEED = USBFN_BUS_SPEED(3i32); |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const UsbfnBusSpeedMaximum: USBFN_BUS_SPEED = USBFN_BUS_SPEED(4i32); |
| impl ::core::marker::Copy for USBFN_BUS_SPEED {} |
| impl ::core::clone::Clone for USBFN_BUS_SPEED { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::core::default::Default for USBFN_BUS_SPEED { |
| fn default() -> Self { |
| Self(0) |
| } |
| } |
| impl ::windows::core::TypeKind for USBFN_BUS_SPEED { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::fmt::Debug for USBFN_BUS_SPEED { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_tuple("USBFN_BUS_SPEED").field(&self.0).finish() |
| } |
| } |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| #[repr(transparent)] |
| #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] |
| pub struct USBFN_DEVICE_STATE(pub i32); |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const UsbfnDeviceStateMinimum: USBFN_DEVICE_STATE = USBFN_DEVICE_STATE(0i32); |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const UsbfnDeviceStateAttached: USBFN_DEVICE_STATE = USBFN_DEVICE_STATE(1i32); |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const UsbfnDeviceStateDefault: USBFN_DEVICE_STATE = USBFN_DEVICE_STATE(2i32); |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const UsbfnDeviceStateDetached: USBFN_DEVICE_STATE = USBFN_DEVICE_STATE(3i32); |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const UsbfnDeviceStateAddressed: USBFN_DEVICE_STATE = USBFN_DEVICE_STATE(4i32); |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const UsbfnDeviceStateConfigured: USBFN_DEVICE_STATE = USBFN_DEVICE_STATE(5i32); |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const UsbfnDeviceStateSuspended: USBFN_DEVICE_STATE = USBFN_DEVICE_STATE(6i32); |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const UsbfnDeviceStateStateMaximum: USBFN_DEVICE_STATE = USBFN_DEVICE_STATE(7i32); |
| impl ::core::marker::Copy for USBFN_DEVICE_STATE {} |
| impl ::core::clone::Clone for USBFN_DEVICE_STATE { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::core::default::Default for USBFN_DEVICE_STATE { |
| fn default() -> Self { |
| Self(0) |
| } |
| } |
| impl ::windows::core::TypeKind for USBFN_DEVICE_STATE { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::fmt::Debug for USBFN_DEVICE_STATE { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_tuple("USBFN_DEVICE_STATE").field(&self.0).finish() |
| } |
| } |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| #[repr(transparent)] |
| #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] |
| pub struct USBFN_DIRECTION(pub i32); |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const UsbfnDirectionMinimum: USBFN_DIRECTION = USBFN_DIRECTION(0i32); |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const UsbfnDirectionIn: USBFN_DIRECTION = USBFN_DIRECTION(1i32); |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const UsbfnDirectionOut: USBFN_DIRECTION = USBFN_DIRECTION(2i32); |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const UsbfnDirectionTx: USBFN_DIRECTION = USBFN_DIRECTION(1i32); |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const UsbfnDirectionRx: USBFN_DIRECTION = USBFN_DIRECTION(2i32); |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const UsbfnDirectionMaximum: USBFN_DIRECTION = USBFN_DIRECTION(3i32); |
| impl ::core::marker::Copy for USBFN_DIRECTION {} |
| impl ::core::clone::Clone for USBFN_DIRECTION { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::core::default::Default for USBFN_DIRECTION { |
| fn default() -> Self { |
| Self(0) |
| } |
| } |
| impl ::windows::core::TypeKind for USBFN_DIRECTION { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::fmt::Debug for USBFN_DIRECTION { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_tuple("USBFN_DIRECTION").field(&self.0).finish() |
| } |
| } |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| #[repr(transparent)] |
| #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] |
| pub struct USBFN_EVENT(pub i32); |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const UsbfnEventMinimum: USBFN_EVENT = USBFN_EVENT(0i32); |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const UsbfnEventAttach: USBFN_EVENT = USBFN_EVENT(1i32); |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const UsbfnEventReset: USBFN_EVENT = USBFN_EVENT(2i32); |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const UsbfnEventDetach: USBFN_EVENT = USBFN_EVENT(3i32); |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const UsbfnEventSuspend: USBFN_EVENT = USBFN_EVENT(4i32); |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const UsbfnEventResume: USBFN_EVENT = USBFN_EVENT(5i32); |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const UsbfnEventSetupPacket: USBFN_EVENT = USBFN_EVENT(6i32); |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const UsbfnEventConfigured: USBFN_EVENT = USBFN_EVENT(7i32); |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const UsbfnEventUnConfigured: USBFN_EVENT = USBFN_EVENT(8i32); |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const UsbfnEventPortType: USBFN_EVENT = USBFN_EVENT(9i32); |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const UsbfnEventBusTearDown: USBFN_EVENT = USBFN_EVENT(10i32); |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const UsbfnEventSetInterface: USBFN_EVENT = USBFN_EVENT(11i32); |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const UsbfnEventMaximum: USBFN_EVENT = USBFN_EVENT(12i32); |
| impl ::core::marker::Copy for USBFN_EVENT {} |
| impl ::core::clone::Clone for USBFN_EVENT { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::core::default::Default for USBFN_EVENT { |
| fn default() -> Self { |
| Self(0) |
| } |
| } |
| impl ::windows::core::TypeKind for USBFN_EVENT { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::fmt::Debug for USBFN_EVENT { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_tuple("USBFN_EVENT").field(&self.0).finish() |
| } |
| } |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| #[repr(transparent)] |
| #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] |
| pub struct USBFN_PORT_TYPE(pub i32); |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const UsbfnUnknownPort: USBFN_PORT_TYPE = USBFN_PORT_TYPE(0i32); |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const UsbfnStandardDownstreamPort: USBFN_PORT_TYPE = USBFN_PORT_TYPE(1i32); |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const UsbfnChargingDownstreamPort: USBFN_PORT_TYPE = USBFN_PORT_TYPE(2i32); |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const UsbfnDedicatedChargingPort: USBFN_PORT_TYPE = USBFN_PORT_TYPE(3i32); |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const UsbfnInvalidDedicatedChargingPort: USBFN_PORT_TYPE = USBFN_PORT_TYPE(4i32); |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const UsbfnProprietaryDedicatedChargingPort: USBFN_PORT_TYPE = USBFN_PORT_TYPE(5i32); |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const UsbfnPortTypeMaximum: USBFN_PORT_TYPE = USBFN_PORT_TYPE(6i32); |
| impl ::core::marker::Copy for USBFN_PORT_TYPE {} |
| impl ::core::clone::Clone for USBFN_PORT_TYPE { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::core::default::Default for USBFN_PORT_TYPE { |
| fn default() -> Self { |
| Self(0) |
| } |
| } |
| impl ::windows::core::TypeKind for USBFN_PORT_TYPE { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::fmt::Debug for USBFN_PORT_TYPE { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_tuple("USBFN_PORT_TYPE").field(&self.0).finish() |
| } |
| } |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| #[repr(transparent)] |
| #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] |
| pub struct USB_CONNECTION_STATUS(pub i32); |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const NoDeviceConnected: USB_CONNECTION_STATUS = USB_CONNECTION_STATUS(0i32); |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const DeviceConnected: USB_CONNECTION_STATUS = USB_CONNECTION_STATUS(1i32); |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const DeviceFailedEnumeration: USB_CONNECTION_STATUS = USB_CONNECTION_STATUS(2i32); |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const DeviceGeneralFailure: USB_CONNECTION_STATUS = USB_CONNECTION_STATUS(3i32); |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const DeviceCausedOvercurrent: USB_CONNECTION_STATUS = USB_CONNECTION_STATUS(4i32); |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const DeviceNotEnoughPower: USB_CONNECTION_STATUS = USB_CONNECTION_STATUS(5i32); |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const DeviceNotEnoughBandwidth: USB_CONNECTION_STATUS = USB_CONNECTION_STATUS(6i32); |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const DeviceHubNestedTooDeeply: USB_CONNECTION_STATUS = USB_CONNECTION_STATUS(7i32); |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const DeviceInLegacyHub: USB_CONNECTION_STATUS = USB_CONNECTION_STATUS(8i32); |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const DeviceEnumerating: USB_CONNECTION_STATUS = USB_CONNECTION_STATUS(9i32); |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const DeviceReset: USB_CONNECTION_STATUS = USB_CONNECTION_STATUS(10i32); |
| impl ::core::marker::Copy for USB_CONNECTION_STATUS {} |
| impl ::core::clone::Clone for USB_CONNECTION_STATUS { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::core::default::Default for USB_CONNECTION_STATUS { |
| fn default() -> Self { |
| Self(0) |
| } |
| } |
| impl ::windows::core::TypeKind for USB_CONNECTION_STATUS { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::fmt::Debug for USB_CONNECTION_STATUS { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_tuple("USB_CONNECTION_STATUS").field(&self.0).finish() |
| } |
| } |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| #[repr(transparent)] |
| #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] |
| pub struct USB_CONTROLLER_FLAVOR(pub i32); |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const USB_HcGeneric: USB_CONTROLLER_FLAVOR = USB_CONTROLLER_FLAVOR(0i32); |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const OHCI_Generic: USB_CONTROLLER_FLAVOR = USB_CONTROLLER_FLAVOR(100i32); |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const OHCI_Hydra: USB_CONTROLLER_FLAVOR = USB_CONTROLLER_FLAVOR(101i32); |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const OHCI_NEC: USB_CONTROLLER_FLAVOR = USB_CONTROLLER_FLAVOR(102i32); |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const UHCI_Generic: USB_CONTROLLER_FLAVOR = USB_CONTROLLER_FLAVOR(200i32); |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const UHCI_Piix4: USB_CONTROLLER_FLAVOR = USB_CONTROLLER_FLAVOR(201i32); |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const UHCI_Piix3: USB_CONTROLLER_FLAVOR = USB_CONTROLLER_FLAVOR(202i32); |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const UHCI_Ich2: USB_CONTROLLER_FLAVOR = USB_CONTROLLER_FLAVOR(203i32); |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const UHCI_Reserved204: USB_CONTROLLER_FLAVOR = USB_CONTROLLER_FLAVOR(204i32); |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const UHCI_Ich1: USB_CONTROLLER_FLAVOR = USB_CONTROLLER_FLAVOR(205i32); |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const UHCI_Ich3m: USB_CONTROLLER_FLAVOR = USB_CONTROLLER_FLAVOR(206i32); |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const UHCI_Ich4: USB_CONTROLLER_FLAVOR = USB_CONTROLLER_FLAVOR(207i32); |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const UHCI_Ich5: USB_CONTROLLER_FLAVOR = USB_CONTROLLER_FLAVOR(208i32); |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const UHCI_Ich6: USB_CONTROLLER_FLAVOR = USB_CONTROLLER_FLAVOR(209i32); |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const UHCI_Intel: USB_CONTROLLER_FLAVOR = USB_CONTROLLER_FLAVOR(249i32); |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const UHCI_VIA: USB_CONTROLLER_FLAVOR = USB_CONTROLLER_FLAVOR(250i32); |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const UHCI_VIA_x01: USB_CONTROLLER_FLAVOR = USB_CONTROLLER_FLAVOR(251i32); |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const UHCI_VIA_x02: USB_CONTROLLER_FLAVOR = USB_CONTROLLER_FLAVOR(252i32); |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const UHCI_VIA_x03: USB_CONTROLLER_FLAVOR = USB_CONTROLLER_FLAVOR(253i32); |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const UHCI_VIA_x04: USB_CONTROLLER_FLAVOR = USB_CONTROLLER_FLAVOR(254i32); |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const UHCI_VIA_x0E_FIFO: USB_CONTROLLER_FLAVOR = USB_CONTROLLER_FLAVOR(264i32); |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const EHCI_Generic: USB_CONTROLLER_FLAVOR = USB_CONTROLLER_FLAVOR(1000i32); |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const EHCI_NEC: USB_CONTROLLER_FLAVOR = USB_CONTROLLER_FLAVOR(2000i32); |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const EHCI_Lucent: USB_CONTROLLER_FLAVOR = USB_CONTROLLER_FLAVOR(3000i32); |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const EHCI_NVIDIA_Tegra2: USB_CONTROLLER_FLAVOR = USB_CONTROLLER_FLAVOR(4000i32); |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const EHCI_NVIDIA_Tegra3: USB_CONTROLLER_FLAVOR = USB_CONTROLLER_FLAVOR(4001i32); |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const EHCI_Intel_Medfield: USB_CONTROLLER_FLAVOR = USB_CONTROLLER_FLAVOR(5001i32); |
| impl ::core::marker::Copy for USB_CONTROLLER_FLAVOR {} |
| impl ::core::clone::Clone for USB_CONTROLLER_FLAVOR { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::core::default::Default for USB_CONTROLLER_FLAVOR { |
| fn default() -> Self { |
| Self(0) |
| } |
| } |
| impl ::windows::core::TypeKind for USB_CONTROLLER_FLAVOR { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::fmt::Debug for USB_CONTROLLER_FLAVOR { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_tuple("USB_CONTROLLER_FLAVOR").field(&self.0).finish() |
| } |
| } |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| #[repr(transparent)] |
| #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] |
| pub struct USB_DEVICE_SPEED(pub i32); |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const UsbLowSpeed: USB_DEVICE_SPEED = USB_DEVICE_SPEED(0i32); |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const UsbFullSpeed: USB_DEVICE_SPEED = USB_DEVICE_SPEED(1i32); |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const UsbHighSpeed: USB_DEVICE_SPEED = USB_DEVICE_SPEED(2i32); |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const UsbSuperSpeed: USB_DEVICE_SPEED = USB_DEVICE_SPEED(3i32); |
| impl ::core::marker::Copy for USB_DEVICE_SPEED {} |
| impl ::core::clone::Clone for USB_DEVICE_SPEED { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::core::default::Default for USB_DEVICE_SPEED { |
| fn default() -> Self { |
| Self(0) |
| } |
| } |
| impl ::windows::core::TypeKind for USB_DEVICE_SPEED { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::fmt::Debug for USB_DEVICE_SPEED { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_tuple("USB_DEVICE_SPEED").field(&self.0).finish() |
| } |
| } |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| #[repr(transparent)] |
| #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] |
| pub struct USB_DEVICE_TYPE(pub i32); |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const Usb11Device: USB_DEVICE_TYPE = USB_DEVICE_TYPE(0i32); |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const Usb20Device: USB_DEVICE_TYPE = USB_DEVICE_TYPE(1i32); |
| impl ::core::marker::Copy for USB_DEVICE_TYPE {} |
| impl ::core::clone::Clone for USB_DEVICE_TYPE { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::core::default::Default for USB_DEVICE_TYPE { |
| fn default() -> Self { |
| Self(0) |
| } |
| } |
| impl ::windows::core::TypeKind for USB_DEVICE_TYPE { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::fmt::Debug for USB_DEVICE_TYPE { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_tuple("USB_DEVICE_TYPE").field(&self.0).finish() |
| } |
| } |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| #[repr(transparent)] |
| #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] |
| pub struct USB_HUB_NODE(pub i32); |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const UsbHub: USB_HUB_NODE = USB_HUB_NODE(0i32); |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const UsbMIParent: USB_HUB_NODE = USB_HUB_NODE(1i32); |
| impl ::core::marker::Copy for USB_HUB_NODE {} |
| impl ::core::clone::Clone for USB_HUB_NODE { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::core::default::Default for USB_HUB_NODE { |
| fn default() -> Self { |
| Self(0) |
| } |
| } |
| impl ::windows::core::TypeKind for USB_HUB_NODE { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::fmt::Debug for USB_HUB_NODE { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_tuple("USB_HUB_NODE").field(&self.0).finish() |
| } |
| } |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| #[repr(transparent)] |
| #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] |
| pub struct USB_HUB_TYPE(pub i32); |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const UsbRootHub: USB_HUB_TYPE = USB_HUB_TYPE(1i32); |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const Usb20Hub: USB_HUB_TYPE = USB_HUB_TYPE(2i32); |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const Usb30Hub: USB_HUB_TYPE = USB_HUB_TYPE(3i32); |
| impl ::core::marker::Copy for USB_HUB_TYPE {} |
| impl ::core::clone::Clone for USB_HUB_TYPE { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::core::default::Default for USB_HUB_TYPE { |
| fn default() -> Self { |
| Self(0) |
| } |
| } |
| impl ::windows::core::TypeKind for USB_HUB_TYPE { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::fmt::Debug for USB_HUB_TYPE { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_tuple("USB_HUB_TYPE").field(&self.0).finish() |
| } |
| } |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| #[repr(transparent)] |
| #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] |
| pub struct USB_NOTIFICATION_TYPE(pub i32); |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const EnumerationFailure: USB_NOTIFICATION_TYPE = USB_NOTIFICATION_TYPE(0i32); |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const InsufficentBandwidth: USB_NOTIFICATION_TYPE = USB_NOTIFICATION_TYPE(1i32); |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const InsufficentPower: USB_NOTIFICATION_TYPE = USB_NOTIFICATION_TYPE(2i32); |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const OverCurrent: USB_NOTIFICATION_TYPE = USB_NOTIFICATION_TYPE(3i32); |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const ResetOvercurrent: USB_NOTIFICATION_TYPE = USB_NOTIFICATION_TYPE(4i32); |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const AcquireBusInfo: USB_NOTIFICATION_TYPE = USB_NOTIFICATION_TYPE(5i32); |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const AcquireHubName: USB_NOTIFICATION_TYPE = USB_NOTIFICATION_TYPE(6i32); |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const AcquireControllerName: USB_NOTIFICATION_TYPE = USB_NOTIFICATION_TYPE(7i32); |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const HubOvercurrent: USB_NOTIFICATION_TYPE = USB_NOTIFICATION_TYPE(8i32); |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const HubPowerChange: USB_NOTIFICATION_TYPE = USB_NOTIFICATION_TYPE(9i32); |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const HubNestedTooDeeply: USB_NOTIFICATION_TYPE = USB_NOTIFICATION_TYPE(10i32); |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const ModernDeviceInLegacyHub: USB_NOTIFICATION_TYPE = USB_NOTIFICATION_TYPE(11i32); |
| impl ::core::marker::Copy for USB_NOTIFICATION_TYPE {} |
| impl ::core::clone::Clone for USB_NOTIFICATION_TYPE { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::core::default::Default for USB_NOTIFICATION_TYPE { |
| fn default() -> Self { |
| Self(0) |
| } |
| } |
| impl ::windows::core::TypeKind for USB_NOTIFICATION_TYPE { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::fmt::Debug for USB_NOTIFICATION_TYPE { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_tuple("USB_NOTIFICATION_TYPE").field(&self.0).finish() |
| } |
| } |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| #[repr(transparent)] |
| #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] |
| pub struct USB_USER_ERROR_CODE(pub i32); |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const UsbUserSuccess: USB_USER_ERROR_CODE = USB_USER_ERROR_CODE(0i32); |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const UsbUserNotSupported: USB_USER_ERROR_CODE = USB_USER_ERROR_CODE(1i32); |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const UsbUserInvalidRequestCode: USB_USER_ERROR_CODE = USB_USER_ERROR_CODE(2i32); |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const UsbUserFeatureDisabled: USB_USER_ERROR_CODE = USB_USER_ERROR_CODE(3i32); |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const UsbUserInvalidHeaderParameter: USB_USER_ERROR_CODE = USB_USER_ERROR_CODE(4i32); |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const UsbUserInvalidParameter: USB_USER_ERROR_CODE = USB_USER_ERROR_CODE(5i32); |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const UsbUserMiniportError: USB_USER_ERROR_CODE = USB_USER_ERROR_CODE(6i32); |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const UsbUserBufferTooSmall: USB_USER_ERROR_CODE = USB_USER_ERROR_CODE(7i32); |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const UsbUserErrorNotMapped: USB_USER_ERROR_CODE = USB_USER_ERROR_CODE(8i32); |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const UsbUserDeviceNotStarted: USB_USER_ERROR_CODE = USB_USER_ERROR_CODE(9i32); |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const UsbUserNoDeviceConnected: USB_USER_ERROR_CODE = USB_USER_ERROR_CODE(10i32); |
| impl ::core::marker::Copy for USB_USER_ERROR_CODE {} |
| impl ::core::clone::Clone for USB_USER_ERROR_CODE { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::core::default::Default for USB_USER_ERROR_CODE { |
| fn default() -> Self { |
| Self(0) |
| } |
| } |
| impl ::windows::core::TypeKind for USB_USER_ERROR_CODE { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::fmt::Debug for USB_USER_ERROR_CODE { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_tuple("USB_USER_ERROR_CODE").field(&self.0).finish() |
| } |
| } |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| #[repr(transparent)] |
| #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] |
| pub struct USB_WMI_DEVICE_NODE_TYPE(pub i32); |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const UsbDevice: USB_WMI_DEVICE_NODE_TYPE = USB_WMI_DEVICE_NODE_TYPE(0i32); |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const HubDevice: USB_WMI_DEVICE_NODE_TYPE = USB_WMI_DEVICE_NODE_TYPE(1i32); |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const CompositeDevice: USB_WMI_DEVICE_NODE_TYPE = USB_WMI_DEVICE_NODE_TYPE(2i32); |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const UsbController: USB_WMI_DEVICE_NODE_TYPE = USB_WMI_DEVICE_NODE_TYPE(3i32); |
| impl ::core::marker::Copy for USB_WMI_DEVICE_NODE_TYPE {} |
| impl ::core::clone::Clone for USB_WMI_DEVICE_NODE_TYPE { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::core::default::Default for USB_WMI_DEVICE_NODE_TYPE { |
| fn default() -> Self { |
| Self(0) |
| } |
| } |
| impl ::windows::core::TypeKind for USB_WMI_DEVICE_NODE_TYPE { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::fmt::Debug for USB_WMI_DEVICE_NODE_TYPE { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_tuple("USB_WMI_DEVICE_NODE_TYPE").field(&self.0).finish() |
| } |
| } |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| #[repr(transparent)] |
| #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] |
| pub struct WDMUSB_POWER_STATE(pub i32); |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const WdmUsbPowerNotMapped: WDMUSB_POWER_STATE = WDMUSB_POWER_STATE(0i32); |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const WdmUsbPowerSystemUnspecified: WDMUSB_POWER_STATE = WDMUSB_POWER_STATE(100i32); |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const WdmUsbPowerSystemWorking: WDMUSB_POWER_STATE = WDMUSB_POWER_STATE(101i32); |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const WdmUsbPowerSystemSleeping1: WDMUSB_POWER_STATE = WDMUSB_POWER_STATE(102i32); |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const WdmUsbPowerSystemSleeping2: WDMUSB_POWER_STATE = WDMUSB_POWER_STATE(103i32); |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const WdmUsbPowerSystemSleeping3: WDMUSB_POWER_STATE = WDMUSB_POWER_STATE(104i32); |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const WdmUsbPowerSystemHibernate: WDMUSB_POWER_STATE = WDMUSB_POWER_STATE(105i32); |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const WdmUsbPowerSystemShutdown: WDMUSB_POWER_STATE = WDMUSB_POWER_STATE(106i32); |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const WdmUsbPowerDeviceUnspecified: WDMUSB_POWER_STATE = WDMUSB_POWER_STATE(200i32); |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const WdmUsbPowerDeviceD0: WDMUSB_POWER_STATE = WDMUSB_POWER_STATE(201i32); |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const WdmUsbPowerDeviceD1: WDMUSB_POWER_STATE = WDMUSB_POWER_STATE(202i32); |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const WdmUsbPowerDeviceD2: WDMUSB_POWER_STATE = WDMUSB_POWER_STATE(203i32); |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const WdmUsbPowerDeviceD3: WDMUSB_POWER_STATE = WDMUSB_POWER_STATE(204i32); |
| impl ::core::marker::Copy for WDMUSB_POWER_STATE {} |
| impl ::core::clone::Clone for WDMUSB_POWER_STATE { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::core::default::Default for WDMUSB_POWER_STATE { |
| fn default() -> Self { |
| Self(0) |
| } |
| } |
| impl ::windows::core::TypeKind for WDMUSB_POWER_STATE { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::fmt::Debug for WDMUSB_POWER_STATE { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_tuple("WDMUSB_POWER_STATE").field(&self.0).finish() |
| } |
| } |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| #[repr(transparent)] |
| #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] |
| pub struct WINUSB_PIPE_POLICY(pub u32); |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const SHORT_PACKET_TERMINATE: WINUSB_PIPE_POLICY = WINUSB_PIPE_POLICY(1u32); |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const AUTO_CLEAR_STALL: WINUSB_PIPE_POLICY = WINUSB_PIPE_POLICY(2u32); |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const PIPE_TRANSFER_TIMEOUT: WINUSB_PIPE_POLICY = WINUSB_PIPE_POLICY(3u32); |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const IGNORE_SHORT_PACKETS: WINUSB_PIPE_POLICY = WINUSB_PIPE_POLICY(4u32); |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const ALLOW_PARTIAL_READS: WINUSB_PIPE_POLICY = WINUSB_PIPE_POLICY(5u32); |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const AUTO_FLUSH: WINUSB_PIPE_POLICY = WINUSB_PIPE_POLICY(6u32); |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const RAW_IO: WINUSB_PIPE_POLICY = WINUSB_PIPE_POLICY(7u32); |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const MAXIMUM_TRANSFER_SIZE: WINUSB_PIPE_POLICY = WINUSB_PIPE_POLICY(8u32); |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const RESET_PIPE_ON_RESUME: WINUSB_PIPE_POLICY = WINUSB_PIPE_POLICY(9u32); |
| impl ::core::marker::Copy for WINUSB_PIPE_POLICY {} |
| impl ::core::clone::Clone for WINUSB_PIPE_POLICY { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::core::default::Default for WINUSB_PIPE_POLICY { |
| fn default() -> Self { |
| Self(0) |
| } |
| } |
| impl ::windows::core::TypeKind for WINUSB_PIPE_POLICY { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::fmt::Debug for WINUSB_PIPE_POLICY { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_tuple("WINUSB_PIPE_POLICY").field(&self.0).finish() |
| } |
| } |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| #[repr(transparent)] |
| #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] |
| pub struct WINUSB_POWER_POLICY(pub u32); |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const AUTO_SUSPEND: WINUSB_POWER_POLICY = WINUSB_POWER_POLICY(129u32); |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub const SUSPEND_DELAY: WINUSB_POWER_POLICY = WINUSB_POWER_POLICY(131u32); |
| impl ::core::marker::Copy for WINUSB_POWER_POLICY {} |
| impl ::core::clone::Clone for WINUSB_POWER_POLICY { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::core::default::Default for WINUSB_POWER_POLICY { |
| fn default() -> Self { |
| Self(0) |
| } |
| } |
| impl ::windows::core::TypeKind for WINUSB_POWER_POLICY { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::fmt::Debug for WINUSB_POWER_POLICY { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_tuple("WINUSB_POWER_POLICY").field(&self.0).finish() |
| } |
| } |
| #[repr(C)] |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub struct ALTERNATE_INTERFACE { |
| pub InterfaceNumber: u16, |
| pub AlternateInterfaceNumber: u16, |
| } |
| impl ::core::marker::Copy for ALTERNATE_INTERFACE {} |
| impl ::core::clone::Clone for ALTERNATE_INTERFACE { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::core::fmt::Debug for ALTERNATE_INTERFACE { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_struct("ALTERNATE_INTERFACE").field("InterfaceNumber", &self.InterfaceNumber).field("AlternateInterfaceNumber", &self.AlternateInterfaceNumber).finish() |
| } |
| } |
| impl ::windows::core::TypeKind for ALTERNATE_INTERFACE { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::cmp::PartialEq for ALTERNATE_INTERFACE { |
| fn eq(&self, other: &Self) -> bool { |
| self.InterfaceNumber == other.InterfaceNumber && self.AlternateInterfaceNumber == other.AlternateInterfaceNumber |
| } |
| } |
| impl ::core::cmp::Eq for ALTERNATE_INTERFACE {} |
| impl ::core::default::Default for ALTERNATE_INTERFACE { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C)] |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub union BM_REQUEST_TYPE { |
| pub s: BM_REQUEST_TYPE_0, |
| pub B: u8, |
| } |
| impl ::core::marker::Copy for BM_REQUEST_TYPE {} |
| impl ::core::clone::Clone for BM_REQUEST_TYPE { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::windows::core::TypeKind for BM_REQUEST_TYPE { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::default::Default for BM_REQUEST_TYPE { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C)] |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub struct BM_REQUEST_TYPE_0 { |
| pub _bitfield: u8, |
| } |
| impl ::core::marker::Copy for BM_REQUEST_TYPE_0 {} |
| impl ::core::clone::Clone for BM_REQUEST_TYPE_0 { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::core::fmt::Debug for BM_REQUEST_TYPE_0 { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_struct("BM_REQUEST_TYPE_0").field("_bitfield", &self._bitfield).finish() |
| } |
| } |
| impl ::windows::core::TypeKind for BM_REQUEST_TYPE_0 { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::cmp::PartialEq for BM_REQUEST_TYPE_0 { |
| fn eq(&self, other: &Self) -> bool { |
| self._bitfield == other._bitfield |
| } |
| } |
| impl ::core::cmp::Eq for BM_REQUEST_TYPE_0 {} |
| impl ::core::default::Default for BM_REQUEST_TYPE_0 { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C)] |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub struct CHANNEL_INFO { |
| pub EventChannelSize: u32, |
| pub uReadDataAlignment: u32, |
| pub uWriteDataAlignment: u32, |
| } |
| impl ::core::marker::Copy for CHANNEL_INFO {} |
| impl ::core::clone::Clone for CHANNEL_INFO { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::core::fmt::Debug for CHANNEL_INFO { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_struct("CHANNEL_INFO").field("EventChannelSize", &self.EventChannelSize).field("uReadDataAlignment", &self.uReadDataAlignment).field("uWriteDataAlignment", &self.uWriteDataAlignment).finish() |
| } |
| } |
| impl ::windows::core::TypeKind for CHANNEL_INFO { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::cmp::PartialEq for CHANNEL_INFO { |
| fn eq(&self, other: &Self) -> bool { |
| self.EventChannelSize == other.EventChannelSize && self.uReadDataAlignment == other.uReadDataAlignment && self.uWriteDataAlignment == other.uWriteDataAlignment |
| } |
| } |
| impl ::core::cmp::Eq for CHANNEL_INFO {} |
| impl ::core::default::Default for CHANNEL_INFO { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C)] |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub struct DEVICE_DESCRIPTOR { |
| pub usVendorId: u16, |
| pub usProductId: u16, |
| pub usBcdDevice: u16, |
| pub usLanguageId: u16, |
| } |
| impl ::core::marker::Copy for DEVICE_DESCRIPTOR {} |
| impl ::core::clone::Clone for DEVICE_DESCRIPTOR { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::core::fmt::Debug for DEVICE_DESCRIPTOR { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_struct("DEVICE_DESCRIPTOR").field("usVendorId", &self.usVendorId).field("usProductId", &self.usProductId).field("usBcdDevice", &self.usBcdDevice).field("usLanguageId", &self.usLanguageId).finish() |
| } |
| } |
| impl ::windows::core::TypeKind for DEVICE_DESCRIPTOR { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::cmp::PartialEq for DEVICE_DESCRIPTOR { |
| fn eq(&self, other: &Self) -> bool { |
| self.usVendorId == other.usVendorId && self.usProductId == other.usProductId && self.usBcdDevice == other.usBcdDevice && self.usLanguageId == other.usLanguageId |
| } |
| } |
| impl ::core::cmp::Eq for DEVICE_DESCRIPTOR {} |
| impl ::core::default::Default for DEVICE_DESCRIPTOR { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C)] |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub struct DRV_VERSION { |
| pub major: u32, |
| pub minor: u32, |
| pub internal: u32, |
| } |
| impl ::core::marker::Copy for DRV_VERSION {} |
| impl ::core::clone::Clone for DRV_VERSION { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::core::fmt::Debug for DRV_VERSION { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_struct("DRV_VERSION").field("major", &self.major).field("minor", &self.minor).field("internal", &self.internal).finish() |
| } |
| } |
| impl ::windows::core::TypeKind for DRV_VERSION { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::cmp::PartialEq for DRV_VERSION { |
| fn eq(&self, other: &Self) -> bool { |
| self.major == other.major && self.minor == other.minor && self.internal == other.internal |
| } |
| } |
| impl ::core::cmp::Eq for DRV_VERSION {} |
| impl ::core::default::Default for DRV_VERSION { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C, packed(1))] |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub struct HCD_ISO_STAT_COUNTERS { |
| pub LateUrbs: u16, |
| pub DoubleBufferedPackets: u16, |
| pub TransfersCF_5ms: u16, |
| pub TransfersCF_2ms: u16, |
| pub TransfersCF_1ms: u16, |
| pub MaxInterruptLatency: u16, |
| pub BadStartFrame: u16, |
| pub StaleUrbs: u16, |
| pub IsoPacketNotAccesed: u16, |
| pub IsoPacketHWError: u16, |
| pub SmallestUrbPacketCount: u16, |
| pub LargestUrbPacketCount: u16, |
| pub IsoCRC_Error: u16, |
| pub IsoOVERRUN_Error: u16, |
| pub IsoINTERNAL_Error: u16, |
| pub IsoUNKNOWN_Error: u16, |
| pub IsoBytesTransferred: u32, |
| pub LateMissedCount: u16, |
| pub HWIsoMissedCount: u16, |
| pub Reserved7: [u32; 8], |
| } |
| impl ::core::marker::Copy for HCD_ISO_STAT_COUNTERS {} |
| impl ::core::clone::Clone for HCD_ISO_STAT_COUNTERS { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::windows::core::TypeKind for HCD_ISO_STAT_COUNTERS { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::default::Default for HCD_ISO_STAT_COUNTERS { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C, packed(1))] |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub struct HCD_STAT_COUNTERS { |
| pub BytesTransferred: u32, |
| pub IsoMissedCount: u16, |
| pub DataOverrunErrorCount: u16, |
| pub CrcErrorCount: u16, |
| pub ScheduleOverrunCount: u16, |
| pub TimeoutErrorCount: u16, |
| pub InternalHcErrorCount: u16, |
| pub BufferOverrunErrorCount: u16, |
| pub SWErrorCount: u16, |
| pub StallPidCount: u16, |
| pub PortDisableCount: u16, |
| } |
| impl ::core::marker::Copy for HCD_STAT_COUNTERS {} |
| impl ::core::clone::Clone for HCD_STAT_COUNTERS { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::windows::core::TypeKind for HCD_STAT_COUNTERS { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::default::Default for HCD_STAT_COUNTERS { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C, packed(1))] |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub struct HCD_STAT_INFORMATION_1 { |
| pub Reserved1: u32, |
| pub Reserved2: u32, |
| pub ResetCounters: u32, |
| pub TimeRead: i64, |
| pub Counters: HCD_STAT_COUNTERS, |
| } |
| impl ::core::marker::Copy for HCD_STAT_INFORMATION_1 {} |
| impl ::core::clone::Clone for HCD_STAT_INFORMATION_1 { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::windows::core::TypeKind for HCD_STAT_INFORMATION_1 { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::default::Default for HCD_STAT_INFORMATION_1 { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C, packed(1))] |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub struct HCD_STAT_INFORMATION_2 { |
| pub Reserved1: u32, |
| pub Reserved2: u32, |
| pub ResetCounters: u32, |
| pub TimeRead: i64, |
| pub LockedMemoryUsed: i32, |
| pub Counters: HCD_STAT_COUNTERS, |
| pub IsoCounters: HCD_ISO_STAT_COUNTERS, |
| } |
| impl ::core::marker::Copy for HCD_STAT_INFORMATION_2 {} |
| impl ::core::clone::Clone for HCD_STAT_INFORMATION_2 { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::windows::core::TypeKind for HCD_STAT_INFORMATION_2 { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::default::Default for HCD_STAT_INFORMATION_2 { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C, packed(1))] |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub struct HUB_DEVICE_CONFIG_INFO { |
| pub Version: u32, |
| pub Length: u32, |
| pub HubFlags: USB_HUB_CAP_FLAGS, |
| pub HardwareIds: USB_ID_STRING, |
| pub CompatibleIds: USB_ID_STRING, |
| pub DeviceDescription: USB_ID_STRING, |
| pub Reserved: [u32; 19], |
| pub UxdSettings: USB_HUB_DEVICE_UXD_SETTINGS, |
| } |
| impl ::core::marker::Copy for HUB_DEVICE_CONFIG_INFO {} |
| impl ::core::clone::Clone for HUB_DEVICE_CONFIG_INFO { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::windows::core::TypeKind for HUB_DEVICE_CONFIG_INFO { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::default::Default for HUB_DEVICE_CONFIG_INFO { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C)] |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub struct IO_BLOCK { |
| pub uOffset: u32, |
| pub uLength: u32, |
| pub pbyData: *mut u8, |
| pub uIndex: u32, |
| } |
| impl ::core::marker::Copy for IO_BLOCK {} |
| impl ::core::clone::Clone for IO_BLOCK { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::core::fmt::Debug for IO_BLOCK { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_struct("IO_BLOCK").field("uOffset", &self.uOffset).field("uLength", &self.uLength).field("pbyData", &self.pbyData).field("uIndex", &self.uIndex).finish() |
| } |
| } |
| impl ::windows::core::TypeKind for IO_BLOCK { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::cmp::PartialEq for IO_BLOCK { |
| fn eq(&self, other: &Self) -> bool { |
| self.uOffset == other.uOffset && self.uLength == other.uLength && self.pbyData == other.pbyData && self.uIndex == other.uIndex |
| } |
| } |
| impl ::core::cmp::Eq for IO_BLOCK {} |
| impl ::core::default::Default for IO_BLOCK { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C)] |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub struct IO_BLOCK_EX { |
| pub uOffset: u32, |
| pub uLength: u32, |
| pub pbyData: *mut u8, |
| pub uIndex: u32, |
| pub bRequest: u8, |
| pub bmRequestType: u8, |
| pub fTransferDirectionIn: u8, |
| } |
| impl ::core::marker::Copy for IO_BLOCK_EX {} |
| impl ::core::clone::Clone for IO_BLOCK_EX { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::core::fmt::Debug for IO_BLOCK_EX { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_struct("IO_BLOCK_EX").field("uOffset", &self.uOffset).field("uLength", &self.uLength).field("pbyData", &self.pbyData).field("uIndex", &self.uIndex).field("bRequest", &self.bRequest).field("bmRequestType", &self.bmRequestType).field("fTransferDirectionIn", &self.fTransferDirectionIn).finish() |
| } |
| } |
| impl ::windows::core::TypeKind for IO_BLOCK_EX { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::cmp::PartialEq for IO_BLOCK_EX { |
| fn eq(&self, other: &Self) -> bool { |
| self.uOffset == other.uOffset && self.uLength == other.uLength && self.pbyData == other.pbyData && self.uIndex == other.uIndex && self.bRequest == other.bRequest && self.bmRequestType == other.bmRequestType && self.fTransferDirectionIn == other.fTransferDirectionIn |
| } |
| } |
| impl ::core::cmp::Eq for IO_BLOCK_EX {} |
| impl ::core::default::Default for IO_BLOCK_EX { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C)] |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub struct OS_STRING { |
| pub bLength: u8, |
| pub bDescriptorType: u8, |
| pub MicrosoftString: [u16; 7], |
| pub bVendorCode: u8, |
| pub Anonymous: OS_STRING_0, |
| } |
| impl ::core::marker::Copy for OS_STRING {} |
| impl ::core::clone::Clone for OS_STRING { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::windows::core::TypeKind for OS_STRING { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::default::Default for OS_STRING { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C)] |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub union OS_STRING_0 { |
| pub bPad: u8, |
| pub bFlags: u8, |
| } |
| impl ::core::marker::Copy for OS_STRING_0 {} |
| impl ::core::clone::Clone for OS_STRING_0 { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::windows::core::TypeKind for OS_STRING_0 { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::default::Default for OS_STRING_0 { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C, packed(1))] |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub struct PACKET_PARAMETERS { |
| pub DeviceAddress: u8, |
| pub EndpointAddress: u8, |
| pub MaximumPacketSize: u16, |
| pub Timeout: u32, |
| pub Flags: u32, |
| pub DataLength: u32, |
| pub HubDeviceAddress: u16, |
| pub PortTTNumber: u16, |
| pub ErrorCount: u8, |
| pub Pad: [u8; 3], |
| pub UsbdStatusCode: i32, |
| pub Data: [u8; 4], |
| } |
| impl ::core::marker::Copy for PACKET_PARAMETERS {} |
| impl ::core::clone::Clone for PACKET_PARAMETERS { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::windows::core::TypeKind for PACKET_PARAMETERS { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::default::Default for PACKET_PARAMETERS { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C, packed(1))] |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub struct RAW_RESET_PORT_PARAMETERS { |
| pub PortNumber: u16, |
| pub PortStatus: u16, |
| } |
| impl ::core::marker::Copy for RAW_RESET_PORT_PARAMETERS {} |
| impl ::core::clone::Clone for RAW_RESET_PORT_PARAMETERS { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::windows::core::TypeKind for RAW_RESET_PORT_PARAMETERS { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::default::Default for RAW_RESET_PORT_PARAMETERS { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C, packed(1))] |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub struct RAW_ROOTPORT_FEATURE { |
| pub PortNumber: u16, |
| pub PortFeature: u16, |
| pub PortStatus: u16, |
| } |
| impl ::core::marker::Copy for RAW_ROOTPORT_FEATURE {} |
| impl ::core::clone::Clone for RAW_ROOTPORT_FEATURE { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::windows::core::TypeKind for RAW_ROOTPORT_FEATURE { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::default::Default for RAW_ROOTPORT_FEATURE { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C, packed(1))] |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub struct RAW_ROOTPORT_PARAMETERS { |
| pub PortNumber: u16, |
| pub PortStatus: u16, |
| } |
| impl ::core::marker::Copy for RAW_ROOTPORT_PARAMETERS {} |
| impl ::core::clone::Clone for RAW_ROOTPORT_PARAMETERS { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::windows::core::TypeKind for RAW_ROOTPORT_PARAMETERS { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::default::Default for RAW_ROOTPORT_PARAMETERS { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C)] |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub struct URB { |
| pub Anonymous: URB_0, |
| } |
| impl ::core::marker::Copy for URB {} |
| impl ::core::clone::Clone for URB { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::windows::core::TypeKind for URB { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::default::Default for URB { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C)] |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub union URB_0 { |
| pub UrbHeader: _URB_HEADER, |
| pub UrbSelectInterface: _URB_SELECT_INTERFACE, |
| pub UrbSelectConfiguration: _URB_SELECT_CONFIGURATION, |
| pub UrbPipeRequest: _URB_PIPE_REQUEST, |
| pub UrbFrameLengthControl: _URB_FRAME_LENGTH_CONTROL, |
| pub UrbGetFrameLength: _URB_GET_FRAME_LENGTH, |
| pub UrbSetFrameLength: _URB_SET_FRAME_LENGTH, |
| pub UrbGetCurrentFrameNumber: _URB_GET_CURRENT_FRAME_NUMBER, |
| pub UrbControlTransfer: _URB_CONTROL_TRANSFER, |
| pub UrbControlTransferEx: _URB_CONTROL_TRANSFER_EX, |
| pub UrbBulkOrInterruptTransfer: _URB_BULK_OR_INTERRUPT_TRANSFER, |
| pub UrbIsochronousTransfer: _URB_ISOCH_TRANSFER, |
| pub UrbControlDescriptorRequest: _URB_CONTROL_DESCRIPTOR_REQUEST, |
| pub UrbControlGetStatusRequest: _URB_CONTROL_GET_STATUS_REQUEST, |
| pub UrbControlFeatureRequest: _URB_CONTROL_FEATURE_REQUEST, |
| pub UrbControlVendorClassRequest: _URB_CONTROL_VENDOR_OR_CLASS_REQUEST, |
| pub UrbControlGetInterfaceRequest: _URB_CONTROL_GET_INTERFACE_REQUEST, |
| pub UrbControlGetConfigurationRequest: _URB_CONTROL_GET_CONFIGURATION_REQUEST, |
| pub UrbOSFeatureDescriptorRequest: _URB_OS_FEATURE_DESCRIPTOR_REQUEST, |
| pub UrbOpenStaticStreams: _URB_OPEN_STATIC_STREAMS, |
| pub UrbGetIsochPipeTransferPathDelays: _URB_GET_ISOCH_PIPE_TRANSFER_PATH_DELAYS, |
| } |
| impl ::core::marker::Copy for URB_0 {} |
| impl ::core::clone::Clone for URB_0 { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::windows::core::TypeKind for URB_0 { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::default::Default for URB_0 { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C)] |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub struct USBD_DEVICE_INFORMATION { |
| pub OffsetNext: u32, |
| pub UsbdDeviceHandle: *mut ::core::ffi::c_void, |
| pub DeviceDescriptor: USB_DEVICE_DESCRIPTOR, |
| } |
| impl ::core::marker::Copy for USBD_DEVICE_INFORMATION {} |
| impl ::core::clone::Clone for USBD_DEVICE_INFORMATION { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::windows::core::TypeKind for USBD_DEVICE_INFORMATION { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::default::Default for USBD_DEVICE_INFORMATION { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C, packed(1))] |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub struct USBD_ENDPOINT_OFFLOAD_INFORMATION { |
| pub Size: u32, |
| pub EndpointAddress: u16, |
| pub ResourceId: u32, |
| pub Mode: USBD_ENDPOINT_OFFLOAD_MODE, |
| pub _bitfield1: u32, |
| pub _bitfield2: u32, |
| pub TransferSegmentLA: i64, |
| pub TransferSegmentVA: *mut ::core::ffi::c_void, |
| pub TransferRingSize: usize, |
| pub TransferRingInitialCycleBit: u32, |
| pub MessageNumber: u32, |
| pub EventRingSegmentLA: i64, |
| pub EventRingSegmentVA: *mut ::core::ffi::c_void, |
| pub EventRingSize: usize, |
| pub EventRingInitialCycleBit: u32, |
| } |
| impl ::core::marker::Copy for USBD_ENDPOINT_OFFLOAD_INFORMATION {} |
| impl ::core::clone::Clone for USBD_ENDPOINT_OFFLOAD_INFORMATION { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::windows::core::TypeKind for USBD_ENDPOINT_OFFLOAD_INFORMATION { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::default::Default for USBD_ENDPOINT_OFFLOAD_INFORMATION { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C)] |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub struct USBD_INTERFACE_INFORMATION { |
| pub Length: u16, |
| pub InterfaceNumber: u8, |
| pub AlternateSetting: u8, |
| pub Class: u8, |
| pub SubClass: u8, |
| pub Protocol: u8, |
| pub Reserved: u8, |
| pub InterfaceHandle: *mut ::core::ffi::c_void, |
| pub NumberOfPipes: u32, |
| pub Pipes: [USBD_PIPE_INFORMATION; 1], |
| } |
| impl ::core::marker::Copy for USBD_INTERFACE_INFORMATION {} |
| impl ::core::clone::Clone for USBD_INTERFACE_INFORMATION { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::core::fmt::Debug for USBD_INTERFACE_INFORMATION { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_struct("USBD_INTERFACE_INFORMATION").field("Length", &self.Length).field("InterfaceNumber", &self.InterfaceNumber).field("AlternateSetting", &self.AlternateSetting).field("Class", &self.Class).field("SubClass", &self.SubClass).field("Protocol", &self.Protocol).field("Reserved", &self.Reserved).field("InterfaceHandle", &self.InterfaceHandle).field("NumberOfPipes", &self.NumberOfPipes).field("Pipes", &self.Pipes).finish() |
| } |
| } |
| impl ::windows::core::TypeKind for USBD_INTERFACE_INFORMATION { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::cmp::PartialEq for USBD_INTERFACE_INFORMATION { |
| fn eq(&self, other: &Self) -> bool { |
| self.Length == other.Length && self.InterfaceNumber == other.InterfaceNumber && self.AlternateSetting == other.AlternateSetting && self.Class == other.Class && self.SubClass == other.SubClass && self.Protocol == other.Protocol && self.Reserved == other.Reserved && self.InterfaceHandle == other.InterfaceHandle && self.NumberOfPipes == other.NumberOfPipes && self.Pipes == other.Pipes |
| } |
| } |
| impl ::core::cmp::Eq for USBD_INTERFACE_INFORMATION {} |
| impl ::core::default::Default for USBD_INTERFACE_INFORMATION { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C)] |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub struct USBD_ISO_PACKET_DESCRIPTOR { |
| pub Offset: u32, |
| pub Length: u32, |
| pub Status: i32, |
| } |
| impl ::core::marker::Copy for USBD_ISO_PACKET_DESCRIPTOR {} |
| impl ::core::clone::Clone for USBD_ISO_PACKET_DESCRIPTOR { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::core::fmt::Debug for USBD_ISO_PACKET_DESCRIPTOR { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_struct("USBD_ISO_PACKET_DESCRIPTOR").field("Offset", &self.Offset).field("Length", &self.Length).field("Status", &self.Status).finish() |
| } |
| } |
| impl ::windows::core::TypeKind for USBD_ISO_PACKET_DESCRIPTOR { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::cmp::PartialEq for USBD_ISO_PACKET_DESCRIPTOR { |
| fn eq(&self, other: &Self) -> bool { |
| self.Offset == other.Offset && self.Length == other.Length && self.Status == other.Status |
| } |
| } |
| impl ::core::cmp::Eq for USBD_ISO_PACKET_DESCRIPTOR {} |
| impl ::core::default::Default for USBD_ISO_PACKET_DESCRIPTOR { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C)] |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub struct USBD_PIPE_INFORMATION { |
| pub MaximumPacketSize: u16, |
| pub EndpointAddress: u8, |
| pub Interval: u8, |
| pub PipeType: USBD_PIPE_TYPE, |
| pub PipeHandle: *mut ::core::ffi::c_void, |
| pub MaximumTransferSize: u32, |
| pub PipeFlags: u32, |
| } |
| impl ::core::marker::Copy for USBD_PIPE_INFORMATION {} |
| impl ::core::clone::Clone for USBD_PIPE_INFORMATION { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::core::fmt::Debug for USBD_PIPE_INFORMATION { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_struct("USBD_PIPE_INFORMATION").field("MaximumPacketSize", &self.MaximumPacketSize).field("EndpointAddress", &self.EndpointAddress).field("Interval", &self.Interval).field("PipeType", &self.PipeType).field("PipeHandle", &self.PipeHandle).field("MaximumTransferSize", &self.MaximumTransferSize).field("PipeFlags", &self.PipeFlags).finish() |
| } |
| } |
| impl ::windows::core::TypeKind for USBD_PIPE_INFORMATION { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::cmp::PartialEq for USBD_PIPE_INFORMATION { |
| fn eq(&self, other: &Self) -> bool { |
| self.MaximumPacketSize == other.MaximumPacketSize && self.EndpointAddress == other.EndpointAddress && self.Interval == other.Interval && self.PipeType == other.PipeType && self.PipeHandle == other.PipeHandle && self.MaximumTransferSize == other.MaximumTransferSize && self.PipeFlags == other.PipeFlags |
| } |
| } |
| impl ::core::cmp::Eq for USBD_PIPE_INFORMATION {} |
| impl ::core::default::Default for USBD_PIPE_INFORMATION { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C)] |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub struct USBD_STREAM_INFORMATION { |
| pub PipeHandle: *mut ::core::ffi::c_void, |
| pub StreamID: u32, |
| pub MaximumTransferSize: u32, |
| pub PipeFlags: u32, |
| } |
| impl ::core::marker::Copy for USBD_STREAM_INFORMATION {} |
| impl ::core::clone::Clone for USBD_STREAM_INFORMATION { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::core::fmt::Debug for USBD_STREAM_INFORMATION { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_struct("USBD_STREAM_INFORMATION").field("PipeHandle", &self.PipeHandle).field("StreamID", &self.StreamID).field("MaximumTransferSize", &self.MaximumTransferSize).field("PipeFlags", &self.PipeFlags).finish() |
| } |
| } |
| impl ::windows::core::TypeKind for USBD_STREAM_INFORMATION { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::cmp::PartialEq for USBD_STREAM_INFORMATION { |
| fn eq(&self, other: &Self) -> bool { |
| self.PipeHandle == other.PipeHandle && self.StreamID == other.StreamID && self.MaximumTransferSize == other.MaximumTransferSize && self.PipeFlags == other.PipeFlags |
| } |
| } |
| impl ::core::cmp::Eq for USBD_STREAM_INFORMATION {} |
| impl ::core::default::Default for USBD_STREAM_INFORMATION { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C)] |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub struct USBD_VERSION_INFORMATION { |
| pub USBDI_Version: u32, |
| pub Supported_USB_Version: u32, |
| } |
| impl ::core::marker::Copy for USBD_VERSION_INFORMATION {} |
| impl ::core::clone::Clone for USBD_VERSION_INFORMATION { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::core::fmt::Debug for USBD_VERSION_INFORMATION { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_struct("USBD_VERSION_INFORMATION").field("USBDI_Version", &self.USBDI_Version).field("Supported_USB_Version", &self.Supported_USB_Version).finish() |
| } |
| } |
| impl ::windows::core::TypeKind for USBD_VERSION_INFORMATION { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::cmp::PartialEq for USBD_VERSION_INFORMATION { |
| fn eq(&self, other: &Self) -> bool { |
| self.USBDI_Version == other.USBDI_Version && self.Supported_USB_Version == other.Supported_USB_Version |
| } |
| } |
| impl ::core::cmp::Eq for USBD_VERSION_INFORMATION {} |
| impl ::core::default::Default for USBD_VERSION_INFORMATION { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C)] |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`, `\"Win32_Foundation\"`*"] |
| #[cfg(feature = "Win32_Foundation")] |
| pub struct USBFN_BUS_CONFIGURATION_INFO { |
| pub ConfigurationName: [u16; 40], |
| pub IsCurrent: super::super::Foundation::BOOLEAN, |
| pub IsActive: super::super::Foundation::BOOLEAN, |
| } |
| #[cfg(feature = "Win32_Foundation")] |
| impl ::core::marker::Copy for USBFN_BUS_CONFIGURATION_INFO {} |
| #[cfg(feature = "Win32_Foundation")] |
| impl ::core::clone::Clone for USBFN_BUS_CONFIGURATION_INFO { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| #[cfg(feature = "Win32_Foundation")] |
| impl ::core::fmt::Debug for USBFN_BUS_CONFIGURATION_INFO { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_struct("USBFN_BUS_CONFIGURATION_INFO").field("ConfigurationName", &self.ConfigurationName).field("IsCurrent", &self.IsCurrent).field("IsActive", &self.IsActive).finish() |
| } |
| } |
| #[cfg(feature = "Win32_Foundation")] |
| impl ::windows::core::TypeKind for USBFN_BUS_CONFIGURATION_INFO { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| #[cfg(feature = "Win32_Foundation")] |
| impl ::core::cmp::PartialEq for USBFN_BUS_CONFIGURATION_INFO { |
| fn eq(&self, other: &Self) -> bool { |
| self.ConfigurationName == other.ConfigurationName && self.IsCurrent == other.IsCurrent && self.IsActive == other.IsActive |
| } |
| } |
| #[cfg(feature = "Win32_Foundation")] |
| impl ::core::cmp::Eq for USBFN_BUS_CONFIGURATION_INFO {} |
| #[cfg(feature = "Win32_Foundation")] |
| impl ::core::default::Default for USBFN_BUS_CONFIGURATION_INFO { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C)] |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`, `\"Win32_Foundation\"`*"] |
| #[cfg(feature = "Win32_Foundation")] |
| pub struct USBFN_CLASS_INFORMATION_PACKET { |
| pub FullSpeedClassInterface: USBFN_CLASS_INTERFACE, |
| pub HighSpeedClassInterface: USBFN_CLASS_INTERFACE, |
| pub InterfaceName: [u16; 40], |
| pub InterfaceGuid: [u16; 39], |
| pub HasInterfaceGuid: super::super::Foundation::BOOLEAN, |
| pub SuperSpeedClassInterface: USBFN_CLASS_INTERFACE, |
| } |
| #[cfg(feature = "Win32_Foundation")] |
| impl ::core::marker::Copy for USBFN_CLASS_INFORMATION_PACKET {} |
| #[cfg(feature = "Win32_Foundation")] |
| impl ::core::clone::Clone for USBFN_CLASS_INFORMATION_PACKET { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| #[cfg(feature = "Win32_Foundation")] |
| impl ::windows::core::TypeKind for USBFN_CLASS_INFORMATION_PACKET { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| #[cfg(feature = "Win32_Foundation")] |
| impl ::core::default::Default for USBFN_CLASS_INFORMATION_PACKET { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C)] |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`, `\"Win32_Foundation\"`*"] |
| #[cfg(feature = "Win32_Foundation")] |
| pub struct USBFN_CLASS_INFORMATION_PACKET_EX { |
| pub FullSpeedClassInterfaceEx: USBFN_CLASS_INTERFACE_EX, |
| pub HighSpeedClassInterfaceEx: USBFN_CLASS_INTERFACE_EX, |
| pub SuperSpeedClassInterfaceEx: USBFN_CLASS_INTERFACE_EX, |
| pub InterfaceName: [u16; 40], |
| pub InterfaceGuid: [u16; 39], |
| pub HasInterfaceGuid: super::super::Foundation::BOOLEAN, |
| } |
| #[cfg(feature = "Win32_Foundation")] |
| impl ::core::marker::Copy for USBFN_CLASS_INFORMATION_PACKET_EX {} |
| #[cfg(feature = "Win32_Foundation")] |
| impl ::core::clone::Clone for USBFN_CLASS_INFORMATION_PACKET_EX { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| #[cfg(feature = "Win32_Foundation")] |
| impl ::windows::core::TypeKind for USBFN_CLASS_INFORMATION_PACKET_EX { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| #[cfg(feature = "Win32_Foundation")] |
| impl ::core::default::Default for USBFN_CLASS_INFORMATION_PACKET_EX { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C)] |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub struct USBFN_CLASS_INTERFACE { |
| pub InterfaceNumber: u8, |
| pub PipeCount: u8, |
| pub PipeArr: [USBFN_PIPE_INFORMATION; 16], |
| } |
| impl ::core::marker::Copy for USBFN_CLASS_INTERFACE {} |
| impl ::core::clone::Clone for USBFN_CLASS_INTERFACE { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::windows::core::TypeKind for USBFN_CLASS_INTERFACE { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::default::Default for USBFN_CLASS_INTERFACE { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C)] |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub struct USBFN_CLASS_INTERFACE_EX { |
| pub BaseInterfaceNumber: u8, |
| pub InterfaceCount: u8, |
| pub PipeCount: u8, |
| pub PipeArr: [USBFN_PIPE_INFORMATION; 16], |
| } |
| impl ::core::marker::Copy for USBFN_CLASS_INTERFACE_EX {} |
| impl ::core::clone::Clone for USBFN_CLASS_INTERFACE_EX { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::windows::core::TypeKind for USBFN_CLASS_INTERFACE_EX { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::default::Default for USBFN_CLASS_INTERFACE_EX { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C)] |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub struct USBFN_INTERFACE_INFO { |
| pub InterfaceNumber: u8, |
| pub Speed: USBFN_BUS_SPEED, |
| pub Size: u16, |
| pub InterfaceDescriptorSet: [u8; 1], |
| } |
| impl ::core::marker::Copy for USBFN_INTERFACE_INFO {} |
| impl ::core::clone::Clone for USBFN_INTERFACE_INFO { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::core::fmt::Debug for USBFN_INTERFACE_INFO { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_struct("USBFN_INTERFACE_INFO").field("InterfaceNumber", &self.InterfaceNumber).field("Speed", &self.Speed).field("Size", &self.Size).field("InterfaceDescriptorSet", &self.InterfaceDescriptorSet).finish() |
| } |
| } |
| impl ::windows::core::TypeKind for USBFN_INTERFACE_INFO { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::cmp::PartialEq for USBFN_INTERFACE_INFO { |
| fn eq(&self, other: &Self) -> bool { |
| self.InterfaceNumber == other.InterfaceNumber && self.Speed == other.Speed && self.Size == other.Size && self.InterfaceDescriptorSet == other.InterfaceDescriptorSet |
| } |
| } |
| impl ::core::cmp::Eq for USBFN_INTERFACE_INFO {} |
| impl ::core::default::Default for USBFN_INTERFACE_INFO { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C)] |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub struct USBFN_NOTIFICATION { |
| pub Event: USBFN_EVENT, |
| pub u: USBFN_NOTIFICATION_0, |
| } |
| impl ::core::marker::Copy for USBFN_NOTIFICATION {} |
| impl ::core::clone::Clone for USBFN_NOTIFICATION { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::windows::core::TypeKind for USBFN_NOTIFICATION { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::default::Default for USBFN_NOTIFICATION { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C)] |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub union USBFN_NOTIFICATION_0 { |
| pub BusSpeed: USBFN_BUS_SPEED, |
| pub SetupPacket: USB_DEFAULT_PIPE_SETUP_PACKET, |
| pub ConfigurationValue: u16, |
| pub PortType: USBFN_PORT_TYPE, |
| pub AlternateInterface: ALTERNATE_INTERFACE, |
| } |
| impl ::core::marker::Copy for USBFN_NOTIFICATION_0 {} |
| impl ::core::clone::Clone for USBFN_NOTIFICATION_0 { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::windows::core::TypeKind for USBFN_NOTIFICATION_0 { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::default::Default for USBFN_NOTIFICATION_0 { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C)] |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub struct USBFN_PIPE_INFORMATION { |
| pub EpDesc: USB_ENDPOINT_DESCRIPTOR, |
| pub PipeId: u32, |
| } |
| impl ::core::marker::Copy for USBFN_PIPE_INFORMATION {} |
| impl ::core::clone::Clone for USBFN_PIPE_INFORMATION { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::windows::core::TypeKind for USBFN_PIPE_INFORMATION { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::default::Default for USBFN_PIPE_INFORMATION { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C)] |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub struct USBFN_USB_STRING { |
| pub StringIndex: u8, |
| pub UsbString: [u16; 255], |
| } |
| impl ::core::marker::Copy for USBFN_USB_STRING {} |
| impl ::core::clone::Clone for USBFN_USB_STRING { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::core::fmt::Debug for USBFN_USB_STRING { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_struct("USBFN_USB_STRING").field("StringIndex", &self.StringIndex).field("UsbString", &self.UsbString).finish() |
| } |
| } |
| impl ::windows::core::TypeKind for USBFN_USB_STRING { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::cmp::PartialEq for USBFN_USB_STRING { |
| fn eq(&self, other: &Self) -> bool { |
| self.StringIndex == other.StringIndex && self.UsbString == other.UsbString |
| } |
| } |
| impl ::core::cmp::Eq for USBFN_USB_STRING {} |
| impl ::core::default::Default for USBFN_USB_STRING { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C)] |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub struct USBSCAN_GET_DESCRIPTOR { |
| pub DescriptorType: u8, |
| pub Index: u8, |
| pub LanguageId: u16, |
| } |
| impl ::core::marker::Copy for USBSCAN_GET_DESCRIPTOR {} |
| impl ::core::clone::Clone for USBSCAN_GET_DESCRIPTOR { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::core::fmt::Debug for USBSCAN_GET_DESCRIPTOR { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_struct("USBSCAN_GET_DESCRIPTOR").field("DescriptorType", &self.DescriptorType).field("Index", &self.Index).field("LanguageId", &self.LanguageId).finish() |
| } |
| } |
| impl ::windows::core::TypeKind for USBSCAN_GET_DESCRIPTOR { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::cmp::PartialEq for USBSCAN_GET_DESCRIPTOR { |
| fn eq(&self, other: &Self) -> bool { |
| self.DescriptorType == other.DescriptorType && self.Index == other.Index && self.LanguageId == other.LanguageId |
| } |
| } |
| impl ::core::cmp::Eq for USBSCAN_GET_DESCRIPTOR {} |
| impl ::core::default::Default for USBSCAN_GET_DESCRIPTOR { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C)] |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub struct USBSCAN_PIPE_CONFIGURATION { |
| pub NumberOfPipes: u32, |
| pub PipeInfo: [USBSCAN_PIPE_INFORMATION; 8], |
| } |
| impl ::core::marker::Copy for USBSCAN_PIPE_CONFIGURATION {} |
| impl ::core::clone::Clone for USBSCAN_PIPE_CONFIGURATION { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::core::fmt::Debug for USBSCAN_PIPE_CONFIGURATION { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_struct("USBSCAN_PIPE_CONFIGURATION").field("NumberOfPipes", &self.NumberOfPipes).field("PipeInfo", &self.PipeInfo).finish() |
| } |
| } |
| impl ::windows::core::TypeKind for USBSCAN_PIPE_CONFIGURATION { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::cmp::PartialEq for USBSCAN_PIPE_CONFIGURATION { |
| fn eq(&self, other: &Self) -> bool { |
| self.NumberOfPipes == other.NumberOfPipes && self.PipeInfo == other.PipeInfo |
| } |
| } |
| impl ::core::cmp::Eq for USBSCAN_PIPE_CONFIGURATION {} |
| impl ::core::default::Default for USBSCAN_PIPE_CONFIGURATION { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C)] |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub struct USBSCAN_PIPE_INFORMATION { |
| pub MaximumPacketSize: u16, |
| pub EndpointAddress: u8, |
| pub Interval: u8, |
| pub PipeType: RAW_PIPE_TYPE, |
| } |
| impl ::core::marker::Copy for USBSCAN_PIPE_INFORMATION {} |
| impl ::core::clone::Clone for USBSCAN_PIPE_INFORMATION { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::core::fmt::Debug for USBSCAN_PIPE_INFORMATION { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_struct("USBSCAN_PIPE_INFORMATION").field("MaximumPacketSize", &self.MaximumPacketSize).field("EndpointAddress", &self.EndpointAddress).field("Interval", &self.Interval).field("PipeType", &self.PipeType).finish() |
| } |
| } |
| impl ::windows::core::TypeKind for USBSCAN_PIPE_INFORMATION { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::cmp::PartialEq for USBSCAN_PIPE_INFORMATION { |
| fn eq(&self, other: &Self) -> bool { |
| self.MaximumPacketSize == other.MaximumPacketSize && self.EndpointAddress == other.EndpointAddress && self.Interval == other.Interval && self.PipeType == other.PipeType |
| } |
| } |
| impl ::core::cmp::Eq for USBSCAN_PIPE_INFORMATION {} |
| impl ::core::default::Default for USBSCAN_PIPE_INFORMATION { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C)] |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub struct USBSCAN_TIMEOUT { |
| pub TimeoutRead: u32, |
| pub TimeoutWrite: u32, |
| pub TimeoutEvent: u32, |
| } |
| impl ::core::marker::Copy for USBSCAN_TIMEOUT {} |
| impl ::core::clone::Clone for USBSCAN_TIMEOUT { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::core::fmt::Debug for USBSCAN_TIMEOUT { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_struct("USBSCAN_TIMEOUT").field("TimeoutRead", &self.TimeoutRead).field("TimeoutWrite", &self.TimeoutWrite).field("TimeoutEvent", &self.TimeoutEvent).finish() |
| } |
| } |
| impl ::windows::core::TypeKind for USBSCAN_TIMEOUT { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::cmp::PartialEq for USBSCAN_TIMEOUT { |
| fn eq(&self, other: &Self) -> bool { |
| self.TimeoutRead == other.TimeoutRead && self.TimeoutWrite == other.TimeoutWrite && self.TimeoutEvent == other.TimeoutEvent |
| } |
| } |
| impl ::core::cmp::Eq for USBSCAN_TIMEOUT {} |
| impl ::core::default::Default for USBSCAN_TIMEOUT { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C, packed(1))] |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub struct USBUSER_BANDWIDTH_INFO_REQUEST { |
| pub Header: USBUSER_REQUEST_HEADER, |
| pub BandwidthInformation: USB_BANDWIDTH_INFO, |
| } |
| impl ::core::marker::Copy for USBUSER_BANDWIDTH_INFO_REQUEST {} |
| impl ::core::clone::Clone for USBUSER_BANDWIDTH_INFO_REQUEST { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::windows::core::TypeKind for USBUSER_BANDWIDTH_INFO_REQUEST { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::default::Default for USBUSER_BANDWIDTH_INFO_REQUEST { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C, packed(1))] |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`, `\"Win32_Foundation\"`*"] |
| #[cfg(feature = "Win32_Foundation")] |
| pub struct USBUSER_BUS_STATISTICS_0_REQUEST { |
| pub Header: USBUSER_REQUEST_HEADER, |
| pub BusStatistics0: USB_BUS_STATISTICS_0, |
| } |
| #[cfg(feature = "Win32_Foundation")] |
| impl ::core::marker::Copy for USBUSER_BUS_STATISTICS_0_REQUEST {} |
| #[cfg(feature = "Win32_Foundation")] |
| impl ::core::clone::Clone for USBUSER_BUS_STATISTICS_0_REQUEST { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| #[cfg(feature = "Win32_Foundation")] |
| impl ::windows::core::TypeKind for USBUSER_BUS_STATISTICS_0_REQUEST { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| #[cfg(feature = "Win32_Foundation")] |
| impl ::core::default::Default for USBUSER_BUS_STATISTICS_0_REQUEST { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C, packed(1))] |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub struct USBUSER_CLOSE_RAW_DEVICE { |
| pub Header: USBUSER_REQUEST_HEADER, |
| pub Parameters: USB_CLOSE_RAW_DEVICE_PARAMETERS, |
| } |
| impl ::core::marker::Copy for USBUSER_CLOSE_RAW_DEVICE {} |
| impl ::core::clone::Clone for USBUSER_CLOSE_RAW_DEVICE { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::windows::core::TypeKind for USBUSER_CLOSE_RAW_DEVICE { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::default::Default for USBUSER_CLOSE_RAW_DEVICE { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C, packed(1))] |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub struct USBUSER_CONTROLLER_INFO_0 { |
| pub Header: USBUSER_REQUEST_HEADER, |
| pub Info0: USB_CONTROLLER_INFO_0, |
| } |
| impl ::core::marker::Copy for USBUSER_CONTROLLER_INFO_0 {} |
| impl ::core::clone::Clone for USBUSER_CONTROLLER_INFO_0 { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::windows::core::TypeKind for USBUSER_CONTROLLER_INFO_0 { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::default::Default for USBUSER_CONTROLLER_INFO_0 { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C, packed(1))] |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub struct USBUSER_CONTROLLER_UNICODE_NAME { |
| pub Header: USBUSER_REQUEST_HEADER, |
| pub UnicodeName: USB_UNICODE_NAME, |
| } |
| impl ::core::marker::Copy for USBUSER_CONTROLLER_UNICODE_NAME {} |
| impl ::core::clone::Clone for USBUSER_CONTROLLER_UNICODE_NAME { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::windows::core::TypeKind for USBUSER_CONTROLLER_UNICODE_NAME { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::default::Default for USBUSER_CONTROLLER_UNICODE_NAME { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C, packed(1))] |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`, `\"Win32_Foundation\"`*"] |
| #[cfg(feature = "Win32_Foundation")] |
| pub struct USBUSER_GET_DRIVER_VERSION { |
| pub Header: USBUSER_REQUEST_HEADER, |
| pub Parameters: USB_DRIVER_VERSION_PARAMETERS, |
| } |
| #[cfg(feature = "Win32_Foundation")] |
| impl ::core::marker::Copy for USBUSER_GET_DRIVER_VERSION {} |
| #[cfg(feature = "Win32_Foundation")] |
| impl ::core::clone::Clone for USBUSER_GET_DRIVER_VERSION { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| #[cfg(feature = "Win32_Foundation")] |
| impl ::windows::core::TypeKind for USBUSER_GET_DRIVER_VERSION { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| #[cfg(feature = "Win32_Foundation")] |
| impl ::core::default::Default for USBUSER_GET_DRIVER_VERSION { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C, packed(1))] |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub struct USBUSER_GET_USB2HW_VERSION { |
| pub Header: USBUSER_REQUEST_HEADER, |
| pub Parameters: USB_USB2HW_VERSION_PARAMETERS, |
| } |
| impl ::core::marker::Copy for USBUSER_GET_USB2HW_VERSION {} |
| impl ::core::clone::Clone for USBUSER_GET_USB2HW_VERSION { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::windows::core::TypeKind for USBUSER_GET_USB2HW_VERSION { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::default::Default for USBUSER_GET_USB2HW_VERSION { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C, packed(1))] |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub struct USBUSER_OPEN_RAW_DEVICE { |
| pub Header: USBUSER_REQUEST_HEADER, |
| pub Parameters: USB_OPEN_RAW_DEVICE_PARAMETERS, |
| } |
| impl ::core::marker::Copy for USBUSER_OPEN_RAW_DEVICE {} |
| impl ::core::clone::Clone for USBUSER_OPEN_RAW_DEVICE { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::windows::core::TypeKind for USBUSER_OPEN_RAW_DEVICE { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::default::Default for USBUSER_OPEN_RAW_DEVICE { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C, packed(1))] |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub struct USBUSER_PASS_THRU_REQUEST { |
| pub Header: USBUSER_REQUEST_HEADER, |
| pub PassThru: USB_PASS_THRU_PARAMETERS, |
| } |
| impl ::core::marker::Copy for USBUSER_PASS_THRU_REQUEST {} |
| impl ::core::clone::Clone for USBUSER_PASS_THRU_REQUEST { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::windows::core::TypeKind for USBUSER_PASS_THRU_REQUEST { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::default::Default for USBUSER_PASS_THRU_REQUEST { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C, packed(1))] |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`, `\"Win32_Foundation\"`*"] |
| #[cfg(feature = "Win32_Foundation")] |
| pub struct USBUSER_POWER_INFO_REQUEST { |
| pub Header: USBUSER_REQUEST_HEADER, |
| pub PowerInformation: USB_POWER_INFO, |
| } |
| #[cfg(feature = "Win32_Foundation")] |
| impl ::core::marker::Copy for USBUSER_POWER_INFO_REQUEST {} |
| #[cfg(feature = "Win32_Foundation")] |
| impl ::core::clone::Clone for USBUSER_POWER_INFO_REQUEST { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| #[cfg(feature = "Win32_Foundation")] |
| impl ::windows::core::TypeKind for USBUSER_POWER_INFO_REQUEST { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| #[cfg(feature = "Win32_Foundation")] |
| impl ::core::default::Default for USBUSER_POWER_INFO_REQUEST { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C, packed(1))] |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub struct USBUSER_RAW_RESET_ROOT_PORT { |
| pub Header: USBUSER_REQUEST_HEADER, |
| pub Parameters: RAW_RESET_PORT_PARAMETERS, |
| } |
| impl ::core::marker::Copy for USBUSER_RAW_RESET_ROOT_PORT {} |
| impl ::core::clone::Clone for USBUSER_RAW_RESET_ROOT_PORT { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::windows::core::TypeKind for USBUSER_RAW_RESET_ROOT_PORT { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::default::Default for USBUSER_RAW_RESET_ROOT_PORT { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C, packed(1))] |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub struct USBUSER_REFRESH_HCT_REG { |
| pub Header: USBUSER_REQUEST_HEADER, |
| pub Flags: u32, |
| } |
| impl ::core::marker::Copy for USBUSER_REFRESH_HCT_REG {} |
| impl ::core::clone::Clone for USBUSER_REFRESH_HCT_REG { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::windows::core::TypeKind for USBUSER_REFRESH_HCT_REG { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::default::Default for USBUSER_REFRESH_HCT_REG { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C, packed(1))] |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub struct USBUSER_REQUEST_HEADER { |
| pub UsbUserRequest: u32, |
| pub UsbUserStatusCode: USB_USER_ERROR_CODE, |
| pub RequestBufferLength: u32, |
| pub ActualBufferLength: u32, |
| } |
| impl ::core::marker::Copy for USBUSER_REQUEST_HEADER {} |
| impl ::core::clone::Clone for USBUSER_REQUEST_HEADER { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::windows::core::TypeKind for USBUSER_REQUEST_HEADER { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::default::Default for USBUSER_REQUEST_HEADER { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C, packed(1))] |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub struct USBUSER_ROOTPORT_FEATURE_REQUEST { |
| pub Header: USBUSER_REQUEST_HEADER, |
| pub Parameters: RAW_ROOTPORT_FEATURE, |
| } |
| impl ::core::marker::Copy for USBUSER_ROOTPORT_FEATURE_REQUEST {} |
| impl ::core::clone::Clone for USBUSER_ROOTPORT_FEATURE_REQUEST { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::windows::core::TypeKind for USBUSER_ROOTPORT_FEATURE_REQUEST { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::default::Default for USBUSER_ROOTPORT_FEATURE_REQUEST { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C, packed(1))] |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub struct USBUSER_ROOTPORT_PARAMETERS { |
| pub Header: USBUSER_REQUEST_HEADER, |
| pub Parameters: RAW_ROOTPORT_PARAMETERS, |
| } |
| impl ::core::marker::Copy for USBUSER_ROOTPORT_PARAMETERS {} |
| impl ::core::clone::Clone for USBUSER_ROOTPORT_PARAMETERS { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::windows::core::TypeKind for USBUSER_ROOTPORT_PARAMETERS { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::default::Default for USBUSER_ROOTPORT_PARAMETERS { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C, packed(1))] |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub struct USBUSER_SEND_ONE_PACKET { |
| pub Header: USBUSER_REQUEST_HEADER, |
| pub PacketParameters: PACKET_PARAMETERS, |
| } |
| impl ::core::marker::Copy for USBUSER_SEND_ONE_PACKET {} |
| impl ::core::clone::Clone for USBUSER_SEND_ONE_PACKET { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::windows::core::TypeKind for USBUSER_SEND_ONE_PACKET { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::default::Default for USBUSER_SEND_ONE_PACKET { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C, packed(1))] |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub struct USBUSER_SEND_RAW_COMMAND { |
| pub Header: USBUSER_REQUEST_HEADER, |
| pub Parameters: USB_SEND_RAW_COMMAND_PARAMETERS, |
| } |
| impl ::core::marker::Copy for USBUSER_SEND_RAW_COMMAND {} |
| impl ::core::clone::Clone for USBUSER_SEND_RAW_COMMAND { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::windows::core::TypeKind for USBUSER_SEND_RAW_COMMAND { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::default::Default for USBUSER_SEND_RAW_COMMAND { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C, packed(1))] |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub union USB_20_PORT_CHANGE { |
| pub AsUshort16: u16, |
| pub Anonymous: USB_20_PORT_CHANGE_0, |
| } |
| impl ::core::marker::Copy for USB_20_PORT_CHANGE {} |
| impl ::core::clone::Clone for USB_20_PORT_CHANGE { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::windows::core::TypeKind for USB_20_PORT_CHANGE { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::default::Default for USB_20_PORT_CHANGE { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C, packed(1))] |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub struct USB_20_PORT_CHANGE_0 { |
| pub _bitfield: u16, |
| } |
| impl ::core::marker::Copy for USB_20_PORT_CHANGE_0 {} |
| impl ::core::clone::Clone for USB_20_PORT_CHANGE_0 { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::windows::core::TypeKind for USB_20_PORT_CHANGE_0 { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::default::Default for USB_20_PORT_CHANGE_0 { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C, packed(1))] |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub union USB_20_PORT_STATUS { |
| pub AsUshort16: u16, |
| pub Anonymous: USB_20_PORT_STATUS_0, |
| } |
| impl ::core::marker::Copy for USB_20_PORT_STATUS {} |
| impl ::core::clone::Clone for USB_20_PORT_STATUS { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::windows::core::TypeKind for USB_20_PORT_STATUS { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::default::Default for USB_20_PORT_STATUS { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C, packed(1))] |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub struct USB_20_PORT_STATUS_0 { |
| pub _bitfield: u16, |
| } |
| impl ::core::marker::Copy for USB_20_PORT_STATUS_0 {} |
| impl ::core::clone::Clone for USB_20_PORT_STATUS_0 { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::windows::core::TypeKind for USB_20_PORT_STATUS_0 { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::default::Default for USB_20_PORT_STATUS_0 { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C, packed(1))] |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub struct USB_30_HUB_DESCRIPTOR { |
| pub bLength: u8, |
| pub bDescriptorType: u8, |
| pub bNumberOfPorts: u8, |
| pub wHubCharacteristics: u16, |
| pub bPowerOnToPowerGood: u8, |
| pub bHubControlCurrent: u8, |
| pub bHubHdrDecLat: u8, |
| pub wHubDelay: u16, |
| pub DeviceRemovable: u16, |
| } |
| impl ::core::marker::Copy for USB_30_HUB_DESCRIPTOR {} |
| impl ::core::clone::Clone for USB_30_HUB_DESCRIPTOR { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::windows::core::TypeKind for USB_30_HUB_DESCRIPTOR { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::default::Default for USB_30_HUB_DESCRIPTOR { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C, packed(1))] |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub union USB_30_PORT_CHANGE { |
| pub AsUshort16: u16, |
| pub Anonymous: USB_30_PORT_CHANGE_0, |
| } |
| impl ::core::marker::Copy for USB_30_PORT_CHANGE {} |
| impl ::core::clone::Clone for USB_30_PORT_CHANGE { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::windows::core::TypeKind for USB_30_PORT_CHANGE { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::default::Default for USB_30_PORT_CHANGE { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C, packed(1))] |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub struct USB_30_PORT_CHANGE_0 { |
| pub _bitfield: u16, |
| } |
| impl ::core::marker::Copy for USB_30_PORT_CHANGE_0 {} |
| impl ::core::clone::Clone for USB_30_PORT_CHANGE_0 { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::windows::core::TypeKind for USB_30_PORT_CHANGE_0 { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::default::Default for USB_30_PORT_CHANGE_0 { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C, packed(1))] |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub union USB_30_PORT_STATUS { |
| pub AsUshort16: u16, |
| pub Anonymous: USB_30_PORT_STATUS_0, |
| } |
| impl ::core::marker::Copy for USB_30_PORT_STATUS {} |
| impl ::core::clone::Clone for USB_30_PORT_STATUS { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::windows::core::TypeKind for USB_30_PORT_STATUS { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::default::Default for USB_30_PORT_STATUS { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C, packed(1))] |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub struct USB_30_PORT_STATUS_0 { |
| pub _bitfield: u16, |
| } |
| impl ::core::marker::Copy for USB_30_PORT_STATUS_0 {} |
| impl ::core::clone::Clone for USB_30_PORT_STATUS_0 { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::windows::core::TypeKind for USB_30_PORT_STATUS_0 { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::default::Default for USB_30_PORT_STATUS_0 { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C, packed(1))] |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub struct USB_ACQUIRE_INFO { |
| pub NotificationType: USB_NOTIFICATION_TYPE, |
| pub TotalSize: u32, |
| pub Buffer: [u16; 1], |
| } |
| impl ::core::marker::Copy for USB_ACQUIRE_INFO {} |
| impl ::core::clone::Clone for USB_ACQUIRE_INFO { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::windows::core::TypeKind for USB_ACQUIRE_INFO { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::default::Default for USB_ACQUIRE_INFO { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C, packed(1))] |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub struct USB_BANDWIDTH_INFO { |
| pub DeviceCount: u32, |
| pub TotalBusBandwidth: u32, |
| pub Total32secBandwidth: u32, |
| pub AllocedBulkAndControl: u32, |
| pub AllocedIso: u32, |
| pub AllocedInterrupt_1ms: u32, |
| pub AllocedInterrupt_2ms: u32, |
| pub AllocedInterrupt_4ms: u32, |
| pub AllocedInterrupt_8ms: u32, |
| pub AllocedInterrupt_16ms: u32, |
| pub AllocedInterrupt_32ms: u32, |
| } |
| impl ::core::marker::Copy for USB_BANDWIDTH_INFO {} |
| impl ::core::clone::Clone for USB_BANDWIDTH_INFO { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::windows::core::TypeKind for USB_BANDWIDTH_INFO { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::default::Default for USB_BANDWIDTH_INFO { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C, packed(1))] |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub struct USB_BOS_DESCRIPTOR { |
| pub bLength: u8, |
| pub bDescriptorType: u8, |
| pub wTotalLength: u16, |
| pub bNumDeviceCaps: u8, |
| } |
| impl ::core::marker::Copy for USB_BOS_DESCRIPTOR {} |
| impl ::core::clone::Clone for USB_BOS_DESCRIPTOR { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::windows::core::TypeKind for USB_BOS_DESCRIPTOR { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::default::Default for USB_BOS_DESCRIPTOR { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C, packed(1))] |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub struct USB_BUS_NOTIFICATION { |
| pub NotificationType: USB_NOTIFICATION_TYPE, |
| pub TotalBandwidth: u32, |
| pub ConsumedBandwidth: u32, |
| pub ControllerNameLength: u32, |
| } |
| impl ::core::marker::Copy for USB_BUS_NOTIFICATION {} |
| impl ::core::clone::Clone for USB_BUS_NOTIFICATION { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::windows::core::TypeKind for USB_BUS_NOTIFICATION { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::default::Default for USB_BUS_NOTIFICATION { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C, packed(1))] |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`, `\"Win32_Foundation\"`*"] |
| #[cfg(feature = "Win32_Foundation")] |
| pub struct USB_BUS_STATISTICS_0 { |
| pub DeviceCount: u32, |
| pub CurrentSystemTime: i64, |
| pub CurrentUsbFrame: u32, |
| pub BulkBytes: u32, |
| pub IsoBytes: u32, |
| pub InterruptBytes: u32, |
| pub ControlDataBytes: u32, |
| pub PciInterruptCount: u32, |
| pub HardResetCount: u32, |
| pub WorkerSignalCount: u32, |
| pub CommonBufferBytes: u32, |
| pub WorkerIdleTimeMs: u32, |
| pub RootHubEnabled: super::super::Foundation::BOOLEAN, |
| pub RootHubDevicePowerState: u8, |
| pub Unused: u8, |
| pub NameIndex: u8, |
| } |
| #[cfg(feature = "Win32_Foundation")] |
| impl ::core::marker::Copy for USB_BUS_STATISTICS_0 {} |
| #[cfg(feature = "Win32_Foundation")] |
| impl ::core::clone::Clone for USB_BUS_STATISTICS_0 { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| #[cfg(feature = "Win32_Foundation")] |
| impl ::windows::core::TypeKind for USB_BUS_STATISTICS_0 { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| #[cfg(feature = "Win32_Foundation")] |
| impl ::core::default::Default for USB_BUS_STATISTICS_0 { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(transparent)] |
| #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] |
| pub struct USB_CHANGE_REGISTRATION_HANDLE(pub isize); |
| impl ::core::default::Default for USB_CHANGE_REGISTRATION_HANDLE { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| impl ::core::clone::Clone for USB_CHANGE_REGISTRATION_HANDLE { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::core::marker::Copy for USB_CHANGE_REGISTRATION_HANDLE {} |
| impl ::core::fmt::Debug for USB_CHANGE_REGISTRATION_HANDLE { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_tuple("USB_CHANGE_REGISTRATION_HANDLE").field(&self.0).finish() |
| } |
| } |
| impl ::windows::core::TypeKind for USB_CHANGE_REGISTRATION_HANDLE { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| #[repr(C, packed(1))] |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub struct USB_CLOSE_RAW_DEVICE_PARAMETERS { |
| pub xxx: u32, |
| } |
| impl ::core::marker::Copy for USB_CLOSE_RAW_DEVICE_PARAMETERS {} |
| impl ::core::clone::Clone for USB_CLOSE_RAW_DEVICE_PARAMETERS { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::windows::core::TypeKind for USB_CLOSE_RAW_DEVICE_PARAMETERS { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::default::Default for USB_CLOSE_RAW_DEVICE_PARAMETERS { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C)] |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub struct USB_COMMON_DESCRIPTOR { |
| pub bLength: u8, |
| pub bDescriptorType: u8, |
| } |
| impl ::core::marker::Copy for USB_COMMON_DESCRIPTOR {} |
| impl ::core::clone::Clone for USB_COMMON_DESCRIPTOR { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::core::fmt::Debug for USB_COMMON_DESCRIPTOR { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_struct("USB_COMMON_DESCRIPTOR").field("bLength", &self.bLength).field("bDescriptorType", &self.bDescriptorType).finish() |
| } |
| } |
| impl ::windows::core::TypeKind for USB_COMMON_DESCRIPTOR { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::cmp::PartialEq for USB_COMMON_DESCRIPTOR { |
| fn eq(&self, other: &Self) -> bool { |
| self.bLength == other.bLength && self.bDescriptorType == other.bDescriptorType |
| } |
| } |
| impl ::core::cmp::Eq for USB_COMMON_DESCRIPTOR {} |
| impl ::core::default::Default for USB_COMMON_DESCRIPTOR { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C)] |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`, `\"Win32_Foundation\"`*"] |
| #[cfg(feature = "Win32_Foundation")] |
| pub struct USB_COMPOSITE_DEVICE_INFO { |
| pub DeviceDescriptor: USB_DEVICE_DESCRIPTOR, |
| pub CurrentConfigDescriptor: USB_CONFIGURATION_DESCRIPTOR, |
| pub CurrentConfigurationValue: u8, |
| pub NumberOfFunctions: u8, |
| pub FunctionInfo: [USB_COMPOSITE_FUNCTION_INFO; 1], |
| } |
| #[cfg(feature = "Win32_Foundation")] |
| impl ::core::marker::Copy for USB_COMPOSITE_DEVICE_INFO {} |
| #[cfg(feature = "Win32_Foundation")] |
| impl ::core::clone::Clone for USB_COMPOSITE_DEVICE_INFO { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| #[cfg(feature = "Win32_Foundation")] |
| impl ::windows::core::TypeKind for USB_COMPOSITE_DEVICE_INFO { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| #[cfg(feature = "Win32_Foundation")] |
| impl ::core::default::Default for USB_COMPOSITE_DEVICE_INFO { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C)] |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`, `\"Win32_Foundation\"`*"] |
| #[cfg(feature = "Win32_Foundation")] |
| pub struct USB_COMPOSITE_FUNCTION_INFO { |
| pub FunctionNumber: u8, |
| pub BaseInterfaceNumber: u8, |
| pub NumberOfInterfaces: u8, |
| pub FunctionIsIdle: super::super::Foundation::BOOLEAN, |
| } |
| #[cfg(feature = "Win32_Foundation")] |
| impl ::core::marker::Copy for USB_COMPOSITE_FUNCTION_INFO {} |
| #[cfg(feature = "Win32_Foundation")] |
| impl ::core::clone::Clone for USB_COMPOSITE_FUNCTION_INFO { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| #[cfg(feature = "Win32_Foundation")] |
| impl ::core::fmt::Debug for USB_COMPOSITE_FUNCTION_INFO { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_struct("USB_COMPOSITE_FUNCTION_INFO").field("FunctionNumber", &self.FunctionNumber).field("BaseInterfaceNumber", &self.BaseInterfaceNumber).field("NumberOfInterfaces", &self.NumberOfInterfaces).field("FunctionIsIdle", &self.FunctionIsIdle).finish() |
| } |
| } |
| #[cfg(feature = "Win32_Foundation")] |
| impl ::windows::core::TypeKind for USB_COMPOSITE_FUNCTION_INFO { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| #[cfg(feature = "Win32_Foundation")] |
| impl ::core::cmp::PartialEq for USB_COMPOSITE_FUNCTION_INFO { |
| fn eq(&self, other: &Self) -> bool { |
| self.FunctionNumber == other.FunctionNumber && self.BaseInterfaceNumber == other.BaseInterfaceNumber && self.NumberOfInterfaces == other.NumberOfInterfaces && self.FunctionIsIdle == other.FunctionIsIdle |
| } |
| } |
| #[cfg(feature = "Win32_Foundation")] |
| impl ::core::cmp::Eq for USB_COMPOSITE_FUNCTION_INFO {} |
| #[cfg(feature = "Win32_Foundation")] |
| impl ::core::default::Default for USB_COMPOSITE_FUNCTION_INFO { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C, packed(1))] |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub struct USB_CONFIGURATION_DESCRIPTOR { |
| pub bLength: u8, |
| pub bDescriptorType: u8, |
| pub wTotalLength: u16, |
| pub bNumInterfaces: u8, |
| pub bConfigurationValue: u8, |
| pub iConfiguration: u8, |
| pub bmAttributes: u8, |
| pub MaxPower: u8, |
| } |
| impl ::core::marker::Copy for USB_CONFIGURATION_DESCRIPTOR {} |
| impl ::core::clone::Clone for USB_CONFIGURATION_DESCRIPTOR { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::windows::core::TypeKind for USB_CONFIGURATION_DESCRIPTOR { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::default::Default for USB_CONFIGURATION_DESCRIPTOR { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C, packed(1))] |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub struct USB_CONFIGURATION_POWER_DESCRIPTOR { |
| pub bLength: u8, |
| pub bDescriptorType: u8, |
| pub SelfPowerConsumedD0: [u8; 3], |
| pub bPowerSummaryId: u8, |
| pub bBusPowerSavingD1: u8, |
| pub bSelfPowerSavingD1: u8, |
| pub bBusPowerSavingD2: u8, |
| pub bSelfPowerSavingD2: u8, |
| pub bBusPowerSavingD3: u8, |
| pub bSelfPowerSavingD3: u8, |
| pub TransitionTimeFromD1: u16, |
| pub TransitionTimeFromD2: u16, |
| pub TransitionTimeFromD3: u16, |
| } |
| impl ::core::marker::Copy for USB_CONFIGURATION_POWER_DESCRIPTOR {} |
| impl ::core::clone::Clone for USB_CONFIGURATION_POWER_DESCRIPTOR { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::windows::core::TypeKind for USB_CONFIGURATION_POWER_DESCRIPTOR { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::default::Default for USB_CONFIGURATION_POWER_DESCRIPTOR { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C, packed(1))] |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub struct USB_CONNECTION_NOTIFICATION { |
| pub NotificationType: USB_NOTIFICATION_TYPE, |
| pub ConnectionNumber: u32, |
| pub RequestedBandwidth: u32, |
| pub EnumerationFailReason: u32, |
| pub PowerRequested: u32, |
| pub HubNameLength: u32, |
| } |
| impl ::core::marker::Copy for USB_CONNECTION_NOTIFICATION {} |
| impl ::core::clone::Clone for USB_CONNECTION_NOTIFICATION { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::windows::core::TypeKind for USB_CONNECTION_NOTIFICATION { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::default::Default for USB_CONNECTION_NOTIFICATION { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C, packed(1))] |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub struct USB_CONTROLLER_DEVICE_INFO { |
| pub PciVendorId: u32, |
| pub PciDeviceId: u32, |
| pub PciRevision: u32, |
| pub NumberOfRootPorts: u32, |
| pub HcFeatureFlags: u32, |
| } |
| impl ::core::marker::Copy for USB_CONTROLLER_DEVICE_INFO {} |
| impl ::core::clone::Clone for USB_CONTROLLER_DEVICE_INFO { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::windows::core::TypeKind for USB_CONTROLLER_DEVICE_INFO { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::default::Default for USB_CONTROLLER_DEVICE_INFO { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C, packed(1))] |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub struct USB_CONTROLLER_INFO_0 { |
| pub PciVendorId: u32, |
| pub PciDeviceId: u32, |
| pub PciRevision: u32, |
| pub NumberOfRootPorts: u32, |
| pub ControllerFlavor: USB_CONTROLLER_FLAVOR, |
| pub HcFeatureFlags: u32, |
| } |
| impl ::core::marker::Copy for USB_CONTROLLER_INFO_0 {} |
| impl ::core::clone::Clone for USB_CONTROLLER_INFO_0 { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::windows::core::TypeKind for USB_CONTROLLER_INFO_0 { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::default::Default for USB_CONTROLLER_INFO_0 { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C, packed(1))] |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub struct USB_CYCLE_PORT_PARAMS { |
| pub ConnectionIndex: u32, |
| pub StatusReturned: u32, |
| } |
| impl ::core::marker::Copy for USB_CYCLE_PORT_PARAMS {} |
| impl ::core::clone::Clone for USB_CYCLE_PORT_PARAMS { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::windows::core::TypeKind for USB_CYCLE_PORT_PARAMS { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::default::Default for USB_CYCLE_PORT_PARAMS { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C, packed(1))] |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub struct USB_DEFAULT_PIPE_SETUP_PACKET { |
| pub bmRequestType: BM_REQUEST_TYPE, |
| pub bRequest: u8, |
| pub wValue: USB_DEFAULT_PIPE_SETUP_PACKET_1, |
| pub wIndex: USB_DEFAULT_PIPE_SETUP_PACKET_0, |
| pub wLength: u16, |
| } |
| impl ::core::marker::Copy for USB_DEFAULT_PIPE_SETUP_PACKET {} |
| impl ::core::clone::Clone for USB_DEFAULT_PIPE_SETUP_PACKET { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::windows::core::TypeKind for USB_DEFAULT_PIPE_SETUP_PACKET { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::default::Default for USB_DEFAULT_PIPE_SETUP_PACKET { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C, packed(1))] |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub union USB_DEFAULT_PIPE_SETUP_PACKET_0 { |
| pub Anonymous: USB_DEFAULT_PIPE_SETUP_PACKET_0_0, |
| pub W: u16, |
| } |
| impl ::core::marker::Copy for USB_DEFAULT_PIPE_SETUP_PACKET_0 {} |
| impl ::core::clone::Clone for USB_DEFAULT_PIPE_SETUP_PACKET_0 { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::windows::core::TypeKind for USB_DEFAULT_PIPE_SETUP_PACKET_0 { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::default::Default for USB_DEFAULT_PIPE_SETUP_PACKET_0 { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C)] |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub struct USB_DEFAULT_PIPE_SETUP_PACKET_0_0 { |
| pub LowByte: u8, |
| pub HiByte: u8, |
| } |
| impl ::core::marker::Copy for USB_DEFAULT_PIPE_SETUP_PACKET_0_0 {} |
| impl ::core::clone::Clone for USB_DEFAULT_PIPE_SETUP_PACKET_0_0 { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::core::fmt::Debug for USB_DEFAULT_PIPE_SETUP_PACKET_0_0 { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_struct("USB_DEFAULT_PIPE_SETUP_PACKET_0_0").field("LowByte", &self.LowByte).field("HiByte", &self.HiByte).finish() |
| } |
| } |
| impl ::windows::core::TypeKind for USB_DEFAULT_PIPE_SETUP_PACKET_0_0 { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::cmp::PartialEq for USB_DEFAULT_PIPE_SETUP_PACKET_0_0 { |
| fn eq(&self, other: &Self) -> bool { |
| self.LowByte == other.LowByte && self.HiByte == other.HiByte |
| } |
| } |
| impl ::core::cmp::Eq for USB_DEFAULT_PIPE_SETUP_PACKET_0_0 {} |
| impl ::core::default::Default for USB_DEFAULT_PIPE_SETUP_PACKET_0_0 { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C, packed(1))] |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub union USB_DEFAULT_PIPE_SETUP_PACKET_1 { |
| pub Anonymous: USB_DEFAULT_PIPE_SETUP_PACKET_1_0, |
| pub W: u16, |
| } |
| impl ::core::marker::Copy for USB_DEFAULT_PIPE_SETUP_PACKET_1 {} |
| impl ::core::clone::Clone for USB_DEFAULT_PIPE_SETUP_PACKET_1 { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::windows::core::TypeKind for USB_DEFAULT_PIPE_SETUP_PACKET_1 { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::default::Default for USB_DEFAULT_PIPE_SETUP_PACKET_1 { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C)] |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub struct USB_DEFAULT_PIPE_SETUP_PACKET_1_0 { |
| pub LowByte: u8, |
| pub HiByte: u8, |
| } |
| impl ::core::marker::Copy for USB_DEFAULT_PIPE_SETUP_PACKET_1_0 {} |
| impl ::core::clone::Clone for USB_DEFAULT_PIPE_SETUP_PACKET_1_0 { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::core::fmt::Debug for USB_DEFAULT_PIPE_SETUP_PACKET_1_0 { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_struct("USB_DEFAULT_PIPE_SETUP_PACKET_1_0").field("LowByte", &self.LowByte).field("HiByte", &self.HiByte).finish() |
| } |
| } |
| impl ::windows::core::TypeKind for USB_DEFAULT_PIPE_SETUP_PACKET_1_0 { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::cmp::PartialEq for USB_DEFAULT_PIPE_SETUP_PACKET_1_0 { |
| fn eq(&self, other: &Self) -> bool { |
| self.LowByte == other.LowByte && self.HiByte == other.HiByte |
| } |
| } |
| impl ::core::cmp::Eq for USB_DEFAULT_PIPE_SETUP_PACKET_1_0 {} |
| impl ::core::default::Default for USB_DEFAULT_PIPE_SETUP_PACKET_1_0 { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C, packed(1))] |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub struct USB_DESCRIPTOR_REQUEST { |
| pub ConnectionIndex: u32, |
| pub SetupPacket: USB_DESCRIPTOR_REQUEST_0, |
| pub Data: [u8; 1], |
| } |
| impl ::core::marker::Copy for USB_DESCRIPTOR_REQUEST {} |
| impl ::core::clone::Clone for USB_DESCRIPTOR_REQUEST { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::windows::core::TypeKind for USB_DESCRIPTOR_REQUEST { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::default::Default for USB_DESCRIPTOR_REQUEST { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C, packed(1))] |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub struct USB_DESCRIPTOR_REQUEST_0 { |
| pub bmRequest: u8, |
| pub bRequest: u8, |
| pub wValue: u16, |
| pub wIndex: u16, |
| pub wLength: u16, |
| } |
| impl ::core::marker::Copy for USB_DESCRIPTOR_REQUEST_0 {} |
| impl ::core::clone::Clone for USB_DESCRIPTOR_REQUEST_0 { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::windows::core::TypeKind for USB_DESCRIPTOR_REQUEST_0 { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::default::Default for USB_DESCRIPTOR_REQUEST_0 { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C, packed(1))] |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub struct USB_DEVICE_CAPABILITY_BILLBOARD_DESCRIPTOR { |
| pub bLength: u8, |
| pub bDescriptorType: u8, |
| pub bDevCapabilityType: u8, |
| pub iAddtionalInfoURL: u8, |
| pub bNumberOfAlternateModes: u8, |
| pub bPreferredAlternateMode: u8, |
| pub VconnPower: USB_DEVICE_CAPABILITY_BILLBOARD_DESCRIPTOR_1, |
| pub bmConfigured: [u8; 32], |
| pub bReserved: u32, |
| pub AlternateMode: [USB_DEVICE_CAPABILITY_BILLBOARD_DESCRIPTOR_0; 1], |
| } |
| impl ::core::marker::Copy for USB_DEVICE_CAPABILITY_BILLBOARD_DESCRIPTOR {} |
| impl ::core::clone::Clone for USB_DEVICE_CAPABILITY_BILLBOARD_DESCRIPTOR { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::windows::core::TypeKind for USB_DEVICE_CAPABILITY_BILLBOARD_DESCRIPTOR { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::default::Default for USB_DEVICE_CAPABILITY_BILLBOARD_DESCRIPTOR { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C, packed(1))] |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub struct USB_DEVICE_CAPABILITY_BILLBOARD_DESCRIPTOR_0 { |
| pub wSVID: u16, |
| pub bAlternateMode: u8, |
| pub iAlternateModeSetting: u8, |
| } |
| impl ::core::marker::Copy for USB_DEVICE_CAPABILITY_BILLBOARD_DESCRIPTOR_0 {} |
| impl ::core::clone::Clone for USB_DEVICE_CAPABILITY_BILLBOARD_DESCRIPTOR_0 { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::windows::core::TypeKind for USB_DEVICE_CAPABILITY_BILLBOARD_DESCRIPTOR_0 { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::default::Default for USB_DEVICE_CAPABILITY_BILLBOARD_DESCRIPTOR_0 { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C, packed(1))] |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub union USB_DEVICE_CAPABILITY_BILLBOARD_DESCRIPTOR_1 { |
| pub AsUshort: u16, |
| pub Anonymous: USB_DEVICE_CAPABILITY_BILLBOARD_DESCRIPTOR_1_0, |
| } |
| impl ::core::marker::Copy for USB_DEVICE_CAPABILITY_BILLBOARD_DESCRIPTOR_1 {} |
| impl ::core::clone::Clone for USB_DEVICE_CAPABILITY_BILLBOARD_DESCRIPTOR_1 { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::windows::core::TypeKind for USB_DEVICE_CAPABILITY_BILLBOARD_DESCRIPTOR_1 { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::default::Default for USB_DEVICE_CAPABILITY_BILLBOARD_DESCRIPTOR_1 { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C, packed(1))] |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub struct USB_DEVICE_CAPABILITY_BILLBOARD_DESCRIPTOR_1_0 { |
| pub _bitfield: u16, |
| } |
| impl ::core::marker::Copy for USB_DEVICE_CAPABILITY_BILLBOARD_DESCRIPTOR_1_0 {} |
| impl ::core::clone::Clone for USB_DEVICE_CAPABILITY_BILLBOARD_DESCRIPTOR_1_0 { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::windows::core::TypeKind for USB_DEVICE_CAPABILITY_BILLBOARD_DESCRIPTOR_1_0 { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::default::Default for USB_DEVICE_CAPABILITY_BILLBOARD_DESCRIPTOR_1_0 { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C)] |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub struct USB_DEVICE_CAPABILITY_CONTAINER_ID_DESCRIPTOR { |
| pub bLength: u8, |
| pub bDescriptorType: u8, |
| pub bDevCapabilityType: u8, |
| pub bReserved: u8, |
| pub ContainerID: [u8; 16], |
| } |
| impl ::core::marker::Copy for USB_DEVICE_CAPABILITY_CONTAINER_ID_DESCRIPTOR {} |
| impl ::core::clone::Clone for USB_DEVICE_CAPABILITY_CONTAINER_ID_DESCRIPTOR { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::core::fmt::Debug for USB_DEVICE_CAPABILITY_CONTAINER_ID_DESCRIPTOR { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_struct("USB_DEVICE_CAPABILITY_CONTAINER_ID_DESCRIPTOR").field("bLength", &self.bLength).field("bDescriptorType", &self.bDescriptorType).field("bDevCapabilityType", &self.bDevCapabilityType).field("bReserved", &self.bReserved).field("ContainerID", &self.ContainerID).finish() |
| } |
| } |
| impl ::windows::core::TypeKind for USB_DEVICE_CAPABILITY_CONTAINER_ID_DESCRIPTOR { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::cmp::PartialEq for USB_DEVICE_CAPABILITY_CONTAINER_ID_DESCRIPTOR { |
| fn eq(&self, other: &Self) -> bool { |
| self.bLength == other.bLength && self.bDescriptorType == other.bDescriptorType && self.bDevCapabilityType == other.bDevCapabilityType && self.bReserved == other.bReserved && self.ContainerID == other.ContainerID |
| } |
| } |
| impl ::core::cmp::Eq for USB_DEVICE_CAPABILITY_CONTAINER_ID_DESCRIPTOR {} |
| impl ::core::default::Default for USB_DEVICE_CAPABILITY_CONTAINER_ID_DESCRIPTOR { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C)] |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub struct USB_DEVICE_CAPABILITY_DESCRIPTOR { |
| pub bLength: u8, |
| pub bDescriptorType: u8, |
| pub bDevCapabilityType: u8, |
| } |
| impl ::core::marker::Copy for USB_DEVICE_CAPABILITY_DESCRIPTOR {} |
| impl ::core::clone::Clone for USB_DEVICE_CAPABILITY_DESCRIPTOR { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::core::fmt::Debug for USB_DEVICE_CAPABILITY_DESCRIPTOR { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_struct("USB_DEVICE_CAPABILITY_DESCRIPTOR").field("bLength", &self.bLength).field("bDescriptorType", &self.bDescriptorType).field("bDevCapabilityType", &self.bDevCapabilityType).finish() |
| } |
| } |
| impl ::windows::core::TypeKind for USB_DEVICE_CAPABILITY_DESCRIPTOR { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::cmp::PartialEq for USB_DEVICE_CAPABILITY_DESCRIPTOR { |
| fn eq(&self, other: &Self) -> bool { |
| self.bLength == other.bLength && self.bDescriptorType == other.bDescriptorType && self.bDevCapabilityType == other.bDevCapabilityType |
| } |
| } |
| impl ::core::cmp::Eq for USB_DEVICE_CAPABILITY_DESCRIPTOR {} |
| impl ::core::default::Default for USB_DEVICE_CAPABILITY_DESCRIPTOR { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C)] |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub struct USB_DEVICE_CAPABILITY_FIRMWARE_STATUS_DESCRIPTOR { |
| pub bLength: u8, |
| pub bDescriptorType: u8, |
| pub bDevCapabilityType: u8, |
| pub bcdDescriptorVersion: u8, |
| pub bmAttributes: USB_DEVICE_CAPABILITY_FIRMWARE_STATUS_DESCRIPTOR_0, |
| } |
| impl ::core::marker::Copy for USB_DEVICE_CAPABILITY_FIRMWARE_STATUS_DESCRIPTOR {} |
| impl ::core::clone::Clone for USB_DEVICE_CAPABILITY_FIRMWARE_STATUS_DESCRIPTOR { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::windows::core::TypeKind for USB_DEVICE_CAPABILITY_FIRMWARE_STATUS_DESCRIPTOR { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::default::Default for USB_DEVICE_CAPABILITY_FIRMWARE_STATUS_DESCRIPTOR { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C, packed(1))] |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub union USB_DEVICE_CAPABILITY_FIRMWARE_STATUS_DESCRIPTOR_0 { |
| pub AsUlong: u32, |
| pub Anonymous: USB_DEVICE_CAPABILITY_FIRMWARE_STATUS_DESCRIPTOR_0_0, |
| } |
| impl ::core::marker::Copy for USB_DEVICE_CAPABILITY_FIRMWARE_STATUS_DESCRIPTOR_0 {} |
| impl ::core::clone::Clone for USB_DEVICE_CAPABILITY_FIRMWARE_STATUS_DESCRIPTOR_0 { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::windows::core::TypeKind for USB_DEVICE_CAPABILITY_FIRMWARE_STATUS_DESCRIPTOR_0 { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::default::Default for USB_DEVICE_CAPABILITY_FIRMWARE_STATUS_DESCRIPTOR_0 { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C, packed(1))] |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub struct USB_DEVICE_CAPABILITY_FIRMWARE_STATUS_DESCRIPTOR_0_0 { |
| pub _bitfield: u32, |
| } |
| impl ::core::marker::Copy for USB_DEVICE_CAPABILITY_FIRMWARE_STATUS_DESCRIPTOR_0_0 {} |
| impl ::core::clone::Clone for USB_DEVICE_CAPABILITY_FIRMWARE_STATUS_DESCRIPTOR_0_0 { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::windows::core::TypeKind for USB_DEVICE_CAPABILITY_FIRMWARE_STATUS_DESCRIPTOR_0_0 { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::default::Default for USB_DEVICE_CAPABILITY_FIRMWARE_STATUS_DESCRIPTOR_0_0 { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C, packed(1))] |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub struct USB_DEVICE_CAPABILITY_PD_CONSUMER_PORT_DESCRIPTOR { |
| pub bLength: u8, |
| pub bDescriptorType: u8, |
| pub bDevCapabilityType: u8, |
| pub bReserved: u8, |
| pub bmCapabilities: USB_DEVICE_CAPABILITY_PD_CONSUMER_PORT_DESCRIPTOR_0, |
| pub wMinVoltage: u16, |
| pub wMaxVoltage: u16, |
| pub wReserved: u16, |
| pub dwMaxOperatingPower: u32, |
| pub dwMaxPeakPower: u32, |
| pub dwMaxPeakPowerTime: u32, |
| } |
| impl ::core::marker::Copy for USB_DEVICE_CAPABILITY_PD_CONSUMER_PORT_DESCRIPTOR {} |
| impl ::core::clone::Clone for USB_DEVICE_CAPABILITY_PD_CONSUMER_PORT_DESCRIPTOR { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::windows::core::TypeKind for USB_DEVICE_CAPABILITY_PD_CONSUMER_PORT_DESCRIPTOR { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::default::Default for USB_DEVICE_CAPABILITY_PD_CONSUMER_PORT_DESCRIPTOR { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C, packed(1))] |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub union USB_DEVICE_CAPABILITY_PD_CONSUMER_PORT_DESCRIPTOR_0 { |
| pub AsUshort: u16, |
| pub Anonymous: USB_DEVICE_CAPABILITY_PD_CONSUMER_PORT_DESCRIPTOR_0_0, |
| } |
| impl ::core::marker::Copy for USB_DEVICE_CAPABILITY_PD_CONSUMER_PORT_DESCRIPTOR_0 {} |
| impl ::core::clone::Clone for USB_DEVICE_CAPABILITY_PD_CONSUMER_PORT_DESCRIPTOR_0 { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::windows::core::TypeKind for USB_DEVICE_CAPABILITY_PD_CONSUMER_PORT_DESCRIPTOR_0 { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::default::Default for USB_DEVICE_CAPABILITY_PD_CONSUMER_PORT_DESCRIPTOR_0 { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C, packed(1))] |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub struct USB_DEVICE_CAPABILITY_PD_CONSUMER_PORT_DESCRIPTOR_0_0 { |
| pub _bitfield: u16, |
| } |
| impl ::core::marker::Copy for USB_DEVICE_CAPABILITY_PD_CONSUMER_PORT_DESCRIPTOR_0_0 {} |
| impl ::core::clone::Clone for USB_DEVICE_CAPABILITY_PD_CONSUMER_PORT_DESCRIPTOR_0_0 { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::windows::core::TypeKind for USB_DEVICE_CAPABILITY_PD_CONSUMER_PORT_DESCRIPTOR_0_0 { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::default::Default for USB_DEVICE_CAPABILITY_PD_CONSUMER_PORT_DESCRIPTOR_0_0 { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C, packed(1))] |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub struct USB_DEVICE_CAPABILITY_PLATFORM_DESCRIPTOR { |
| pub bLength: u8, |
| pub bDescriptorType: u8, |
| pub bDevCapabilityType: u8, |
| pub bReserved: u8, |
| pub PlatformCapabilityUuid: ::windows::core::GUID, |
| pub CapabililityData: [u8; 1], |
| } |
| impl ::core::marker::Copy for USB_DEVICE_CAPABILITY_PLATFORM_DESCRIPTOR {} |
| impl ::core::clone::Clone for USB_DEVICE_CAPABILITY_PLATFORM_DESCRIPTOR { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::windows::core::TypeKind for USB_DEVICE_CAPABILITY_PLATFORM_DESCRIPTOR { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::default::Default for USB_DEVICE_CAPABILITY_PLATFORM_DESCRIPTOR { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C, packed(1))] |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub struct USB_DEVICE_CAPABILITY_POWER_DELIVERY_DESCRIPTOR { |
| pub bLength: u8, |
| pub bDescriptorType: u8, |
| pub bDevCapabilityType: u8, |
| pub bReserved: u8, |
| pub bmAttributes: USB_DEVICE_CAPABILITY_POWER_DELIVERY_DESCRIPTOR_0, |
| pub bmProviderPorts: u16, |
| pub bmConsumerPorts: u16, |
| pub bcdBCVersion: u16, |
| pub bcdPDVersion: u16, |
| pub bcdUSBTypeCVersion: u16, |
| } |
| impl ::core::marker::Copy for USB_DEVICE_CAPABILITY_POWER_DELIVERY_DESCRIPTOR {} |
| impl ::core::clone::Clone for USB_DEVICE_CAPABILITY_POWER_DELIVERY_DESCRIPTOR { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::windows::core::TypeKind for USB_DEVICE_CAPABILITY_POWER_DELIVERY_DESCRIPTOR { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::default::Default for USB_DEVICE_CAPABILITY_POWER_DELIVERY_DESCRIPTOR { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C, packed(1))] |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub union USB_DEVICE_CAPABILITY_POWER_DELIVERY_DESCRIPTOR_0 { |
| pub AsUlong: u32, |
| pub Anonymous: USB_DEVICE_CAPABILITY_POWER_DELIVERY_DESCRIPTOR_0_0, |
| } |
| impl ::core::marker::Copy for USB_DEVICE_CAPABILITY_POWER_DELIVERY_DESCRIPTOR_0 {} |
| impl ::core::clone::Clone for USB_DEVICE_CAPABILITY_POWER_DELIVERY_DESCRIPTOR_0 { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::windows::core::TypeKind for USB_DEVICE_CAPABILITY_POWER_DELIVERY_DESCRIPTOR_0 { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::default::Default for USB_DEVICE_CAPABILITY_POWER_DELIVERY_DESCRIPTOR_0 { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C, packed(1))] |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub struct USB_DEVICE_CAPABILITY_POWER_DELIVERY_DESCRIPTOR_0_0 { |
| pub _bitfield: u32, |
| } |
| impl ::core::marker::Copy for USB_DEVICE_CAPABILITY_POWER_DELIVERY_DESCRIPTOR_0_0 {} |
| impl ::core::clone::Clone for USB_DEVICE_CAPABILITY_POWER_DELIVERY_DESCRIPTOR_0_0 { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::windows::core::TypeKind for USB_DEVICE_CAPABILITY_POWER_DELIVERY_DESCRIPTOR_0_0 { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::default::Default for USB_DEVICE_CAPABILITY_POWER_DELIVERY_DESCRIPTOR_0_0 { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C, packed(1))] |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub union USB_DEVICE_CAPABILITY_SUPERSPEEDPLUS_SPEED { |
| pub AsUlong32: u32, |
| pub Anonymous: USB_DEVICE_CAPABILITY_SUPERSPEEDPLUS_SPEED_0, |
| } |
| impl ::core::marker::Copy for USB_DEVICE_CAPABILITY_SUPERSPEEDPLUS_SPEED {} |
| impl ::core::clone::Clone for USB_DEVICE_CAPABILITY_SUPERSPEEDPLUS_SPEED { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::windows::core::TypeKind for USB_DEVICE_CAPABILITY_SUPERSPEEDPLUS_SPEED { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::default::Default for USB_DEVICE_CAPABILITY_SUPERSPEEDPLUS_SPEED { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C, packed(1))] |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub struct USB_DEVICE_CAPABILITY_SUPERSPEEDPLUS_SPEED_0 { |
| pub _bitfield: u32, |
| } |
| impl ::core::marker::Copy for USB_DEVICE_CAPABILITY_SUPERSPEEDPLUS_SPEED_0 {} |
| impl ::core::clone::Clone for USB_DEVICE_CAPABILITY_SUPERSPEEDPLUS_SPEED_0 { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::windows::core::TypeKind for USB_DEVICE_CAPABILITY_SUPERSPEEDPLUS_SPEED_0 { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::default::Default for USB_DEVICE_CAPABILITY_SUPERSPEEDPLUS_SPEED_0 { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C, packed(1))] |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub struct USB_DEVICE_CAPABILITY_SUPERSPEEDPLUS_USB_DESCRIPTOR { |
| pub bLength: u8, |
| pub bDescriptorType: u8, |
| pub bDevCapabilityType: u8, |
| pub bReserved: u8, |
| pub bmAttributes: USB_DEVICE_CAPABILITY_SUPERSPEEDPLUS_USB_DESCRIPTOR_0, |
| pub wFunctionalitySupport: USB_DEVICE_CAPABILITY_SUPERSPEEDPLUS_USB_DESCRIPTOR_1, |
| pub wReserved: u16, |
| pub bmSublinkSpeedAttr: [USB_DEVICE_CAPABILITY_SUPERSPEEDPLUS_SPEED; 1], |
| } |
| impl ::core::marker::Copy for USB_DEVICE_CAPABILITY_SUPERSPEEDPLUS_USB_DESCRIPTOR {} |
| impl ::core::clone::Clone for USB_DEVICE_CAPABILITY_SUPERSPEEDPLUS_USB_DESCRIPTOR { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::windows::core::TypeKind for USB_DEVICE_CAPABILITY_SUPERSPEEDPLUS_USB_DESCRIPTOR { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::default::Default for USB_DEVICE_CAPABILITY_SUPERSPEEDPLUS_USB_DESCRIPTOR { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C, packed(1))] |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub union USB_DEVICE_CAPABILITY_SUPERSPEEDPLUS_USB_DESCRIPTOR_0 { |
| pub AsUlong: u32, |
| pub Anonymous: USB_DEVICE_CAPABILITY_SUPERSPEEDPLUS_USB_DESCRIPTOR_0_0, |
| } |
| impl ::core::marker::Copy for USB_DEVICE_CAPABILITY_SUPERSPEEDPLUS_USB_DESCRIPTOR_0 {} |
| impl ::core::clone::Clone for USB_DEVICE_CAPABILITY_SUPERSPEEDPLUS_USB_DESCRIPTOR_0 { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::windows::core::TypeKind for USB_DEVICE_CAPABILITY_SUPERSPEEDPLUS_USB_DESCRIPTOR_0 { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::default::Default for USB_DEVICE_CAPABILITY_SUPERSPEEDPLUS_USB_DESCRIPTOR_0 { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C, packed(1))] |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub struct USB_DEVICE_CAPABILITY_SUPERSPEEDPLUS_USB_DESCRIPTOR_0_0 { |
| pub _bitfield: u32, |
| } |
| impl ::core::marker::Copy for USB_DEVICE_CAPABILITY_SUPERSPEEDPLUS_USB_DESCRIPTOR_0_0 {} |
| impl ::core::clone::Clone for USB_DEVICE_CAPABILITY_SUPERSPEEDPLUS_USB_DESCRIPTOR_0_0 { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::windows::core::TypeKind for USB_DEVICE_CAPABILITY_SUPERSPEEDPLUS_USB_DESCRIPTOR_0_0 { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::default::Default for USB_DEVICE_CAPABILITY_SUPERSPEEDPLUS_USB_DESCRIPTOR_0_0 { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C, packed(1))] |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub union USB_DEVICE_CAPABILITY_SUPERSPEEDPLUS_USB_DESCRIPTOR_1 { |
| pub AsUshort: u16, |
| pub Anonymous: USB_DEVICE_CAPABILITY_SUPERSPEEDPLUS_USB_DESCRIPTOR_1_0, |
| } |
| impl ::core::marker::Copy for USB_DEVICE_CAPABILITY_SUPERSPEEDPLUS_USB_DESCRIPTOR_1 {} |
| impl ::core::clone::Clone for USB_DEVICE_CAPABILITY_SUPERSPEEDPLUS_USB_DESCRIPTOR_1 { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::windows::core::TypeKind for USB_DEVICE_CAPABILITY_SUPERSPEEDPLUS_USB_DESCRIPTOR_1 { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::default::Default for USB_DEVICE_CAPABILITY_SUPERSPEEDPLUS_USB_DESCRIPTOR_1 { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C, packed(1))] |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub struct USB_DEVICE_CAPABILITY_SUPERSPEEDPLUS_USB_DESCRIPTOR_1_0 { |
| pub _bitfield: u16, |
| } |
| impl ::core::marker::Copy for USB_DEVICE_CAPABILITY_SUPERSPEEDPLUS_USB_DESCRIPTOR_1_0 {} |
| impl ::core::clone::Clone for USB_DEVICE_CAPABILITY_SUPERSPEEDPLUS_USB_DESCRIPTOR_1_0 { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::windows::core::TypeKind for USB_DEVICE_CAPABILITY_SUPERSPEEDPLUS_USB_DESCRIPTOR_1_0 { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::default::Default for USB_DEVICE_CAPABILITY_SUPERSPEEDPLUS_USB_DESCRIPTOR_1_0 { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C, packed(1))] |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub struct USB_DEVICE_CAPABILITY_SUPERSPEED_USB_DESCRIPTOR { |
| pub bLength: u8, |
| pub bDescriptorType: u8, |
| pub bDevCapabilityType: u8, |
| pub bmAttributes: u8, |
| pub wSpeedsSupported: u16, |
| pub bFunctionalitySupport: u8, |
| pub bU1DevExitLat: u8, |
| pub wU2DevExitLat: u16, |
| } |
| impl ::core::marker::Copy for USB_DEVICE_CAPABILITY_SUPERSPEED_USB_DESCRIPTOR {} |
| impl ::core::clone::Clone for USB_DEVICE_CAPABILITY_SUPERSPEED_USB_DESCRIPTOR { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::windows::core::TypeKind for USB_DEVICE_CAPABILITY_SUPERSPEED_USB_DESCRIPTOR { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::default::Default for USB_DEVICE_CAPABILITY_SUPERSPEED_USB_DESCRIPTOR { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C)] |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub struct USB_DEVICE_CAPABILITY_USB20_EXTENSION_DESCRIPTOR { |
| pub bLength: u8, |
| pub bDescriptorType: u8, |
| pub bDevCapabilityType: u8, |
| pub bmAttributes: USB_DEVICE_CAPABILITY_USB20_EXTENSION_DESCRIPTOR_0, |
| } |
| impl ::core::marker::Copy for USB_DEVICE_CAPABILITY_USB20_EXTENSION_DESCRIPTOR {} |
| impl ::core::clone::Clone for USB_DEVICE_CAPABILITY_USB20_EXTENSION_DESCRIPTOR { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::windows::core::TypeKind for USB_DEVICE_CAPABILITY_USB20_EXTENSION_DESCRIPTOR { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::default::Default for USB_DEVICE_CAPABILITY_USB20_EXTENSION_DESCRIPTOR { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C, packed(1))] |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub union USB_DEVICE_CAPABILITY_USB20_EXTENSION_DESCRIPTOR_0 { |
| pub AsUlong: u32, |
| pub Anonymous: USB_DEVICE_CAPABILITY_USB20_EXTENSION_DESCRIPTOR_0_0, |
| } |
| impl ::core::marker::Copy for USB_DEVICE_CAPABILITY_USB20_EXTENSION_DESCRIPTOR_0 {} |
| impl ::core::clone::Clone for USB_DEVICE_CAPABILITY_USB20_EXTENSION_DESCRIPTOR_0 { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::windows::core::TypeKind for USB_DEVICE_CAPABILITY_USB20_EXTENSION_DESCRIPTOR_0 { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::default::Default for USB_DEVICE_CAPABILITY_USB20_EXTENSION_DESCRIPTOR_0 { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C, packed(1))] |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub struct USB_DEVICE_CAPABILITY_USB20_EXTENSION_DESCRIPTOR_0_0 { |
| pub _bitfield: u32, |
| } |
| impl ::core::marker::Copy for USB_DEVICE_CAPABILITY_USB20_EXTENSION_DESCRIPTOR_0_0 {} |
| impl ::core::clone::Clone for USB_DEVICE_CAPABILITY_USB20_EXTENSION_DESCRIPTOR_0_0 { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::windows::core::TypeKind for USB_DEVICE_CAPABILITY_USB20_EXTENSION_DESCRIPTOR_0_0 { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::default::Default for USB_DEVICE_CAPABILITY_USB20_EXTENSION_DESCRIPTOR_0_0 { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C, packed(1))] |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub struct USB_DEVICE_CHARACTERISTICS { |
| pub Version: u32, |
| pub Reserved: [u32; 2], |
| pub UsbDeviceCharacteristicsFlags: u32, |
| pub MaximumSendPathDelayInMilliSeconds: u32, |
| pub MaximumCompletionPathDelayInMilliSeconds: u32, |
| } |
| impl ::core::marker::Copy for USB_DEVICE_CHARACTERISTICS {} |
| impl ::core::clone::Clone for USB_DEVICE_CHARACTERISTICS { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::windows::core::TypeKind for USB_DEVICE_CHARACTERISTICS { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::default::Default for USB_DEVICE_CHARACTERISTICS { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C, packed(1))] |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub struct USB_DEVICE_DESCRIPTOR { |
| pub bLength: u8, |
| pub bDescriptorType: u8, |
| pub bcdUSB: u16, |
| pub bDeviceClass: u8, |
| pub bDeviceSubClass: u8, |
| pub bDeviceProtocol: u8, |
| pub bMaxPacketSize0: u8, |
| pub idVendor: u16, |
| pub idProduct: u16, |
| pub bcdDevice: u16, |
| pub iManufacturer: u8, |
| pub iProduct: u8, |
| pub iSerialNumber: u8, |
| pub bNumConfigurations: u8, |
| } |
| impl ::core::marker::Copy for USB_DEVICE_DESCRIPTOR {} |
| impl ::core::clone::Clone for USB_DEVICE_DESCRIPTOR { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::windows::core::TypeKind for USB_DEVICE_DESCRIPTOR { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::default::Default for USB_DEVICE_DESCRIPTOR { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C, packed(1))] |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub struct USB_DEVICE_INFO { |
| pub DeviceState: USB_DEVICE_STATE, |
| pub PortNumber: u16, |
| pub DeviceDescriptor: USB_DEVICE_DESCRIPTOR, |
| pub CurrentConfigurationValue: u8, |
| pub Speed: USB_DEVICE_SPEED, |
| pub DeviceAddress: u16, |
| pub ConnectionIndex: u32, |
| pub ConnectionStatus: USB_CONNECTION_STATUS, |
| pub PnpHardwareId: [u16; 128], |
| pub PnpCompatibleId: [u16; 128], |
| pub SerialNumberId: [u16; 128], |
| pub PnpDeviceDescription: [u16; 128], |
| pub NumberOfOpenPipes: u32, |
| pub PipeList: [USB_PIPE_INFO; 1], |
| } |
| impl ::core::marker::Copy for USB_DEVICE_INFO {} |
| impl ::core::clone::Clone for USB_DEVICE_INFO { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::windows::core::TypeKind for USB_DEVICE_INFO { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::default::Default for USB_DEVICE_INFO { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C, packed(1))] |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`, `\"Win32_Foundation\"`*"] |
| #[cfg(feature = "Win32_Foundation")] |
| pub struct USB_DEVICE_NODE_INFO { |
| pub Sig: u32, |
| pub LengthInBytes: u32, |
| pub DeviceDescription: [u16; 40], |
| pub NodeType: USB_WMI_DEVICE_NODE_TYPE, |
| pub BusAddress: USB_TOPOLOGY_ADDRESS, |
| pub Anonymous: USB_DEVICE_NODE_INFO_0, |
| } |
| #[cfg(feature = "Win32_Foundation")] |
| impl ::core::marker::Copy for USB_DEVICE_NODE_INFO {} |
| #[cfg(feature = "Win32_Foundation")] |
| impl ::core::clone::Clone for USB_DEVICE_NODE_INFO { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| #[cfg(feature = "Win32_Foundation")] |
| impl ::windows::core::TypeKind for USB_DEVICE_NODE_INFO { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| #[cfg(feature = "Win32_Foundation")] |
| impl ::core::default::Default for USB_DEVICE_NODE_INFO { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C)] |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`, `\"Win32_Foundation\"`*"] |
| #[cfg(feature = "Win32_Foundation")] |
| pub union USB_DEVICE_NODE_INFO_0 { |
| pub UsbDeviceInfo: USB_DEVICE_INFO, |
| pub HubDeviceInfo: USB_HUB_DEVICE_INFO, |
| pub CompositeDeviceInfo: USB_COMPOSITE_DEVICE_INFO, |
| pub ControllerDeviceInfo: USB_CONTROLLER_DEVICE_INFO, |
| pub DeviceInformation: [u8; 4], |
| } |
| #[cfg(feature = "Win32_Foundation")] |
| impl ::core::marker::Copy for USB_DEVICE_NODE_INFO_0 {} |
| #[cfg(feature = "Win32_Foundation")] |
| impl ::core::clone::Clone for USB_DEVICE_NODE_INFO_0 { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| #[cfg(feature = "Win32_Foundation")] |
| impl ::windows::core::TypeKind for USB_DEVICE_NODE_INFO_0 { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| #[cfg(feature = "Win32_Foundation")] |
| impl ::core::default::Default for USB_DEVICE_NODE_INFO_0 { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C, packed(1))] |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub struct USB_DEVICE_PERFORMANCE_INFO { |
| pub BulkBytes: u32, |
| pub ControlDataBytes: u32, |
| pub IsoBytes: u32, |
| pub InterruptBytes: u32, |
| pub BulkUrbCount: u32, |
| pub ControlUrbCount: u32, |
| pub IsoUrbCount: u32, |
| pub InterruptUrbCount: u32, |
| pub AllocedInterrupt: [u32; 6], |
| pub AllocedIso: u32, |
| pub Total32secBandwidth: u32, |
| pub TotalTtBandwidth: u32, |
| pub DeviceDescription: [u16; 60], |
| pub DeviceSpeed: USB_DEVICE_SPEED, |
| pub TotalIsoLatency: u32, |
| pub DroppedIsoPackets: u32, |
| pub TransferErrors: u32, |
| pub PciInterruptCount: u32, |
| pub HcIdleState: u32, |
| pub HcAsyncIdleState: u32, |
| pub HcAsyncCacheFlushCount: u32, |
| pub HcPeriodicIdleState: u32, |
| pub HcPeriodicCacheFlushCount: u32, |
| } |
| impl ::core::marker::Copy for USB_DEVICE_PERFORMANCE_INFO {} |
| impl ::core::clone::Clone for USB_DEVICE_PERFORMANCE_INFO { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::windows::core::TypeKind for USB_DEVICE_PERFORMANCE_INFO { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::default::Default for USB_DEVICE_PERFORMANCE_INFO { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C, packed(1))] |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub struct USB_DEVICE_QUALIFIER_DESCRIPTOR { |
| pub bLength: u8, |
| pub bDescriptorType: u8, |
| pub bcdUSB: u16, |
| pub bDeviceClass: u8, |
| pub bDeviceSubClass: u8, |
| pub bDeviceProtocol: u8, |
| pub bMaxPacketSize0: u8, |
| pub bNumConfigurations: u8, |
| pub bReserved: u8, |
| } |
| impl ::core::marker::Copy for USB_DEVICE_QUALIFIER_DESCRIPTOR {} |
| impl ::core::clone::Clone for USB_DEVICE_QUALIFIER_DESCRIPTOR { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::windows::core::TypeKind for USB_DEVICE_QUALIFIER_DESCRIPTOR { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::default::Default for USB_DEVICE_QUALIFIER_DESCRIPTOR { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C, packed(1))] |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub struct USB_DEVICE_STATE { |
| pub _bitfield: u32, |
| } |
| impl ::core::marker::Copy for USB_DEVICE_STATE {} |
| impl ::core::clone::Clone for USB_DEVICE_STATE { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::windows::core::TypeKind for USB_DEVICE_STATE { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::default::Default for USB_DEVICE_STATE { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C, packed(1))] |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub union USB_DEVICE_STATUS { |
| pub AsUshort16: u16, |
| pub Anonymous: USB_DEVICE_STATUS_0, |
| } |
| impl ::core::marker::Copy for USB_DEVICE_STATUS {} |
| impl ::core::clone::Clone for USB_DEVICE_STATUS { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::windows::core::TypeKind for USB_DEVICE_STATUS { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::default::Default for USB_DEVICE_STATUS { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C, packed(1))] |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub struct USB_DEVICE_STATUS_0 { |
| pub _bitfield: u16, |
| } |
| impl ::core::marker::Copy for USB_DEVICE_STATUS_0 {} |
| impl ::core::clone::Clone for USB_DEVICE_STATUS_0 { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::windows::core::TypeKind for USB_DEVICE_STATUS_0 { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::default::Default for USB_DEVICE_STATUS_0 { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C, packed(1))] |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`, `\"Win32_Foundation\"`*"] |
| #[cfg(feature = "Win32_Foundation")] |
| pub struct USB_DRIVER_VERSION_PARAMETERS { |
| pub DriverTrackingCode: u32, |
| pub USBDI_Version: u32, |
| pub USBUSER_Version: u32, |
| pub CheckedPortDriver: super::super::Foundation::BOOLEAN, |
| pub CheckedMiniportDriver: super::super::Foundation::BOOLEAN, |
| pub USB_Version: u16, |
| } |
| #[cfg(feature = "Win32_Foundation")] |
| impl ::core::marker::Copy for USB_DRIVER_VERSION_PARAMETERS {} |
| #[cfg(feature = "Win32_Foundation")] |
| impl ::core::clone::Clone for USB_DRIVER_VERSION_PARAMETERS { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| #[cfg(feature = "Win32_Foundation")] |
| impl ::windows::core::TypeKind for USB_DRIVER_VERSION_PARAMETERS { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| #[cfg(feature = "Win32_Foundation")] |
| impl ::core::default::Default for USB_DRIVER_VERSION_PARAMETERS { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C, packed(1))] |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub struct USB_ENDPOINT_DESCRIPTOR { |
| pub bLength: u8, |
| pub bDescriptorType: u8, |
| pub bEndpointAddress: u8, |
| pub bmAttributes: u8, |
| pub wMaxPacketSize: u16, |
| pub bInterval: u8, |
| } |
| impl ::core::marker::Copy for USB_ENDPOINT_DESCRIPTOR {} |
| impl ::core::clone::Clone for USB_ENDPOINT_DESCRIPTOR { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::windows::core::TypeKind for USB_ENDPOINT_DESCRIPTOR { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::default::Default for USB_ENDPOINT_DESCRIPTOR { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C, packed(1))] |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub union USB_ENDPOINT_STATUS { |
| pub AsUshort16: u16, |
| pub Anonymous: USB_ENDPOINT_STATUS_0, |
| } |
| impl ::core::marker::Copy for USB_ENDPOINT_STATUS {} |
| impl ::core::clone::Clone for USB_ENDPOINT_STATUS { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::windows::core::TypeKind for USB_ENDPOINT_STATUS { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::default::Default for USB_ENDPOINT_STATUS { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C, packed(1))] |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub struct USB_ENDPOINT_STATUS_0 { |
| pub _bitfield: u16, |
| } |
| impl ::core::marker::Copy for USB_ENDPOINT_STATUS_0 {} |
| impl ::core::clone::Clone for USB_ENDPOINT_STATUS_0 { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::windows::core::TypeKind for USB_ENDPOINT_STATUS_0 { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::default::Default for USB_ENDPOINT_STATUS_0 { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C, packed(1))] |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`, `\"Win32_Foundation\"`*"] |
| #[cfg(feature = "Win32_Foundation")] |
| pub struct USB_FRAME_NUMBER_AND_QPC_FOR_TIME_SYNC_INFORMATION { |
| pub TimeTrackingHandle: super::super::Foundation::HANDLE, |
| pub InputFrameNumber: u32, |
| pub InputMicroFrameNumber: u32, |
| pub QueryPerformanceCounterAtInputFrameOrMicroFrame: i64, |
| pub QueryPerformanceCounterFrequency: i64, |
| pub PredictedAccuracyInMicroSeconds: u32, |
| pub CurrentGenerationID: u32, |
| pub CurrentQueryPerformanceCounter: i64, |
| pub CurrentHardwareFrameNumber: u32, |
| pub CurrentHardwareMicroFrameNumber: u32, |
| pub CurrentUSBFrameNumber: u32, |
| } |
| #[cfg(feature = "Win32_Foundation")] |
| impl ::core::marker::Copy for USB_FRAME_NUMBER_AND_QPC_FOR_TIME_SYNC_INFORMATION {} |
| #[cfg(feature = "Win32_Foundation")] |
| impl ::core::clone::Clone for USB_FRAME_NUMBER_AND_QPC_FOR_TIME_SYNC_INFORMATION { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| #[cfg(feature = "Win32_Foundation")] |
| impl ::windows::core::TypeKind for USB_FRAME_NUMBER_AND_QPC_FOR_TIME_SYNC_INFORMATION { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| #[cfg(feature = "Win32_Foundation")] |
| impl ::core::default::Default for USB_FRAME_NUMBER_AND_QPC_FOR_TIME_SYNC_INFORMATION { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C)] |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub union USB_FUNCTION_SUSPEND_OPTIONS { |
| pub AsUchar: u8, |
| pub Anonymous: USB_FUNCTION_SUSPEND_OPTIONS_0, |
| } |
| impl ::core::marker::Copy for USB_FUNCTION_SUSPEND_OPTIONS {} |
| impl ::core::clone::Clone for USB_FUNCTION_SUSPEND_OPTIONS { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::windows::core::TypeKind for USB_FUNCTION_SUSPEND_OPTIONS { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::default::Default for USB_FUNCTION_SUSPEND_OPTIONS { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C)] |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub struct USB_FUNCTION_SUSPEND_OPTIONS_0 { |
| pub _bitfield: u8, |
| } |
| impl ::core::marker::Copy for USB_FUNCTION_SUSPEND_OPTIONS_0 {} |
| impl ::core::clone::Clone for USB_FUNCTION_SUSPEND_OPTIONS_0 { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::core::fmt::Debug for USB_FUNCTION_SUSPEND_OPTIONS_0 { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_struct("USB_FUNCTION_SUSPEND_OPTIONS_0").field("_bitfield", &self._bitfield).finish() |
| } |
| } |
| impl ::windows::core::TypeKind for USB_FUNCTION_SUSPEND_OPTIONS_0 { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::cmp::PartialEq for USB_FUNCTION_SUSPEND_OPTIONS_0 { |
| fn eq(&self, other: &Self) -> bool { |
| self._bitfield == other._bitfield |
| } |
| } |
| impl ::core::cmp::Eq for USB_FUNCTION_SUSPEND_OPTIONS_0 {} |
| impl ::core::default::Default for USB_FUNCTION_SUSPEND_OPTIONS_0 { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C, packed(1))] |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub struct USB_HCD_DRIVERKEY_NAME { |
| pub ActualLength: u32, |
| pub DriverKeyName: [u16; 1], |
| } |
| impl ::core::marker::Copy for USB_HCD_DRIVERKEY_NAME {} |
| impl ::core::clone::Clone for USB_HCD_DRIVERKEY_NAME { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::windows::core::TypeKind for USB_HCD_DRIVERKEY_NAME { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::default::Default for USB_HCD_DRIVERKEY_NAME { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C, packed(1))] |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub union USB_HIGH_SPEED_MAXPACKET { |
| pub us: u16, |
| } |
| impl ::core::marker::Copy for USB_HIGH_SPEED_MAXPACKET {} |
| impl ::core::clone::Clone for USB_HIGH_SPEED_MAXPACKET { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::windows::core::TypeKind for USB_HIGH_SPEED_MAXPACKET { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::default::Default for USB_HIGH_SPEED_MAXPACKET { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C, packed(1))] |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub struct USB_HIGH_SPEED_MAXPACKET_0 { |
| pub _bitfield: u16, |
| } |
| impl ::core::marker::Copy for USB_HIGH_SPEED_MAXPACKET_0 {} |
| impl ::core::clone::Clone for USB_HIGH_SPEED_MAXPACKET_0 { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::windows::core::TypeKind for USB_HIGH_SPEED_MAXPACKET_0 { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::default::Default for USB_HIGH_SPEED_MAXPACKET_0 { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C)] |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub union USB_HUB_30_PORT_REMOTE_WAKE_MASK { |
| pub AsUchar8: u8, |
| pub Anonymous: USB_HUB_30_PORT_REMOTE_WAKE_MASK_0, |
| } |
| impl ::core::marker::Copy for USB_HUB_30_PORT_REMOTE_WAKE_MASK {} |
| impl ::core::clone::Clone for USB_HUB_30_PORT_REMOTE_WAKE_MASK { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::windows::core::TypeKind for USB_HUB_30_PORT_REMOTE_WAKE_MASK { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::default::Default for USB_HUB_30_PORT_REMOTE_WAKE_MASK { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C)] |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub struct USB_HUB_30_PORT_REMOTE_WAKE_MASK_0 { |
| pub _bitfield: u8, |
| } |
| impl ::core::marker::Copy for USB_HUB_30_PORT_REMOTE_WAKE_MASK_0 {} |
| impl ::core::clone::Clone for USB_HUB_30_PORT_REMOTE_WAKE_MASK_0 { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::core::fmt::Debug for USB_HUB_30_PORT_REMOTE_WAKE_MASK_0 { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_struct("USB_HUB_30_PORT_REMOTE_WAKE_MASK_0").field("_bitfield", &self._bitfield).finish() |
| } |
| } |
| impl ::windows::core::TypeKind for USB_HUB_30_PORT_REMOTE_WAKE_MASK_0 { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::cmp::PartialEq for USB_HUB_30_PORT_REMOTE_WAKE_MASK_0 { |
| fn eq(&self, other: &Self) -> bool { |
| self._bitfield == other._bitfield |
| } |
| } |
| impl ::core::cmp::Eq for USB_HUB_30_PORT_REMOTE_WAKE_MASK_0 {} |
| impl ::core::default::Default for USB_HUB_30_PORT_REMOTE_WAKE_MASK_0 { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C, packed(1))] |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub struct USB_HUB_CAPABILITIES { |
| pub _bitfield: u32, |
| } |
| impl ::core::marker::Copy for USB_HUB_CAPABILITIES {} |
| impl ::core::clone::Clone for USB_HUB_CAPABILITIES { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::windows::core::TypeKind for USB_HUB_CAPABILITIES { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::default::Default for USB_HUB_CAPABILITIES { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C)] |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub struct USB_HUB_CAPABILITIES_EX { |
| pub CapabilityFlags: USB_HUB_CAP_FLAGS, |
| } |
| impl ::core::marker::Copy for USB_HUB_CAPABILITIES_EX {} |
| impl ::core::clone::Clone for USB_HUB_CAPABILITIES_EX { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::windows::core::TypeKind for USB_HUB_CAPABILITIES_EX { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::default::Default for USB_HUB_CAPABILITIES_EX { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C, packed(1))] |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub union USB_HUB_CAP_FLAGS { |
| pub ul: u32, |
| pub Anonymous: USB_HUB_CAP_FLAGS_0, |
| } |
| impl ::core::marker::Copy for USB_HUB_CAP_FLAGS {} |
| impl ::core::clone::Clone for USB_HUB_CAP_FLAGS { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::windows::core::TypeKind for USB_HUB_CAP_FLAGS { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::default::Default for USB_HUB_CAP_FLAGS { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C, packed(1))] |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub struct USB_HUB_CAP_FLAGS_0 { |
| pub _bitfield: u32, |
| } |
| impl ::core::marker::Copy for USB_HUB_CAP_FLAGS_0 {} |
| impl ::core::clone::Clone for USB_HUB_CAP_FLAGS_0 { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::windows::core::TypeKind for USB_HUB_CAP_FLAGS_0 { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::default::Default for USB_HUB_CAP_FLAGS_0 { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C, packed(1))] |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub union USB_HUB_CHANGE { |
| pub AsUshort16: u16, |
| pub Anonymous: USB_HUB_CHANGE_0, |
| } |
| impl ::core::marker::Copy for USB_HUB_CHANGE {} |
| impl ::core::clone::Clone for USB_HUB_CHANGE { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::windows::core::TypeKind for USB_HUB_CHANGE { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::default::Default for USB_HUB_CHANGE { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C, packed(1))] |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub struct USB_HUB_CHANGE_0 { |
| pub _bitfield: u16, |
| } |
| impl ::core::marker::Copy for USB_HUB_CHANGE_0 {} |
| impl ::core::clone::Clone for USB_HUB_CHANGE_0 { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::windows::core::TypeKind for USB_HUB_CHANGE_0 { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::default::Default for USB_HUB_CHANGE_0 { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C, packed(1))] |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub struct USB_HUB_DESCRIPTOR { |
| pub bDescriptorLength: u8, |
| pub bDescriptorType: u8, |
| pub bNumberOfPorts: u8, |
| pub wHubCharacteristics: u16, |
| pub bPowerOnToPowerGood: u8, |
| pub bHubControlCurrent: u8, |
| pub bRemoveAndPowerMask: [u8; 64], |
| } |
| impl ::core::marker::Copy for USB_HUB_DESCRIPTOR {} |
| impl ::core::clone::Clone for USB_HUB_DESCRIPTOR { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::windows::core::TypeKind for USB_HUB_DESCRIPTOR { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::default::Default for USB_HUB_DESCRIPTOR { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C, packed(1))] |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`, `\"Win32_Foundation\"`*"] |
| #[cfg(feature = "Win32_Foundation")] |
| pub struct USB_HUB_DEVICE_INFO { |
| pub HubDescriptor: USB_HUB_DESCRIPTOR, |
| pub HubNumber: u32, |
| pub DeviceAddress: u16, |
| pub HubIsSelfPowered: super::super::Foundation::BOOLEAN, |
| pub HubIsRootHub: super::super::Foundation::BOOLEAN, |
| pub HubCapabilities: USB_HUB_CAPABILITIES, |
| pub NumberOfHubPorts: u32, |
| pub PortInfo: [USB_HUB_PORT_INFORMATION; 1], |
| } |
| #[cfg(feature = "Win32_Foundation")] |
| impl ::core::marker::Copy for USB_HUB_DEVICE_INFO {} |
| #[cfg(feature = "Win32_Foundation")] |
| impl ::core::clone::Clone for USB_HUB_DEVICE_INFO { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| #[cfg(feature = "Win32_Foundation")] |
| impl ::windows::core::TypeKind for USB_HUB_DEVICE_INFO { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| #[cfg(feature = "Win32_Foundation")] |
| impl ::core::default::Default for USB_HUB_DEVICE_INFO { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C, packed(1))] |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub struct USB_HUB_DEVICE_UXD_SETTINGS { |
| pub Version: u32, |
| pub PnpGuid: ::windows::core::GUID, |
| pub OwnerGuid: ::windows::core::GUID, |
| pub DeleteOnShutdown: u32, |
| pub DeleteOnReload: u32, |
| pub DeleteOnDisconnect: u32, |
| pub Reserved: [u32; 5], |
| } |
| impl ::core::marker::Copy for USB_HUB_DEVICE_UXD_SETTINGS {} |
| impl ::core::clone::Clone for USB_HUB_DEVICE_UXD_SETTINGS { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::windows::core::TypeKind for USB_HUB_DEVICE_UXD_SETTINGS { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::default::Default for USB_HUB_DEVICE_UXD_SETTINGS { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C)] |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`, `\"Win32_Foundation\"`*"] |
| #[cfg(feature = "Win32_Foundation")] |
| pub struct USB_HUB_INFORMATION { |
| pub HubDescriptor: USB_HUB_DESCRIPTOR, |
| pub HubIsBusPowered: super::super::Foundation::BOOLEAN, |
| } |
| #[cfg(feature = "Win32_Foundation")] |
| impl ::core::marker::Copy for USB_HUB_INFORMATION {} |
| #[cfg(feature = "Win32_Foundation")] |
| impl ::core::clone::Clone for USB_HUB_INFORMATION { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| #[cfg(feature = "Win32_Foundation")] |
| impl ::windows::core::TypeKind for USB_HUB_INFORMATION { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| #[cfg(feature = "Win32_Foundation")] |
| impl ::core::default::Default for USB_HUB_INFORMATION { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C, packed(1))] |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub struct USB_HUB_INFORMATION_EX { |
| pub HubType: USB_HUB_TYPE, |
| pub HighestPortNumber: u16, |
| pub u: USB_HUB_INFORMATION_EX_0, |
| } |
| impl ::core::marker::Copy for USB_HUB_INFORMATION_EX {} |
| impl ::core::clone::Clone for USB_HUB_INFORMATION_EX { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::windows::core::TypeKind for USB_HUB_INFORMATION_EX { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::default::Default for USB_HUB_INFORMATION_EX { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C)] |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub union USB_HUB_INFORMATION_EX_0 { |
| pub UsbHubDescriptor: USB_HUB_DESCRIPTOR, |
| pub Usb30HubDescriptor: USB_30_HUB_DESCRIPTOR, |
| } |
| impl ::core::marker::Copy for USB_HUB_INFORMATION_EX_0 {} |
| impl ::core::clone::Clone for USB_HUB_INFORMATION_EX_0 { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::windows::core::TypeKind for USB_HUB_INFORMATION_EX_0 { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::default::Default for USB_HUB_INFORMATION_EX_0 { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C, packed(1))] |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub struct USB_HUB_NAME { |
| pub ActualLength: u32, |
| pub HubName: [u16; 1], |
| } |
| impl ::core::marker::Copy for USB_HUB_NAME {} |
| impl ::core::clone::Clone for USB_HUB_NAME { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::windows::core::TypeKind for USB_HUB_NAME { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::default::Default for USB_HUB_NAME { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C, packed(1))] |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub struct USB_HUB_PORT_INFORMATION { |
| pub DeviceState: USB_DEVICE_STATE, |
| pub PortNumber: u16, |
| pub DeviceAddress: u16, |
| pub ConnectionIndex: u32, |
| pub ConnectionStatus: USB_CONNECTION_STATUS, |
| } |
| impl ::core::marker::Copy for USB_HUB_PORT_INFORMATION {} |
| impl ::core::clone::Clone for USB_HUB_PORT_INFORMATION { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::windows::core::TypeKind for USB_HUB_PORT_INFORMATION { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::default::Default for USB_HUB_PORT_INFORMATION { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C, packed(1))] |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub union USB_HUB_STATUS { |
| pub AsUshort16: u16, |
| pub Anonymous: USB_HUB_STATUS_0, |
| } |
| impl ::core::marker::Copy for USB_HUB_STATUS {} |
| impl ::core::clone::Clone for USB_HUB_STATUS { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::windows::core::TypeKind for USB_HUB_STATUS { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::default::Default for USB_HUB_STATUS { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C, packed(1))] |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub struct USB_HUB_STATUS_0 { |
| pub _bitfield: u16, |
| } |
| impl ::core::marker::Copy for USB_HUB_STATUS_0 {} |
| impl ::core::clone::Clone for USB_HUB_STATUS_0 { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::windows::core::TypeKind for USB_HUB_STATUS_0 { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::default::Default for USB_HUB_STATUS_0 { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C, packed(1))] |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub union USB_HUB_STATUS_AND_CHANGE { |
| pub AsUlong32: u32, |
| pub Anonymous: USB_HUB_STATUS_AND_CHANGE_0, |
| } |
| impl ::core::marker::Copy for USB_HUB_STATUS_AND_CHANGE {} |
| impl ::core::clone::Clone for USB_HUB_STATUS_AND_CHANGE { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::windows::core::TypeKind for USB_HUB_STATUS_AND_CHANGE { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::default::Default for USB_HUB_STATUS_AND_CHANGE { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C)] |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub struct USB_HUB_STATUS_AND_CHANGE_0 { |
| pub HubStatus: USB_HUB_STATUS, |
| pub HubChange: USB_HUB_CHANGE, |
| } |
| impl ::core::marker::Copy for USB_HUB_STATUS_AND_CHANGE_0 {} |
| impl ::core::clone::Clone for USB_HUB_STATUS_AND_CHANGE_0 { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::windows::core::TypeKind for USB_HUB_STATUS_AND_CHANGE_0 { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::default::Default for USB_HUB_STATUS_AND_CHANGE_0 { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C)] |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub struct USB_IDLE_CALLBACK_INFO { |
| pub IdleCallback: USB_IDLE_CALLBACK, |
| pub IdleContext: *mut ::core::ffi::c_void, |
| } |
| impl ::core::marker::Copy for USB_IDLE_CALLBACK_INFO {} |
| impl ::core::clone::Clone for USB_IDLE_CALLBACK_INFO { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::core::fmt::Debug for USB_IDLE_CALLBACK_INFO { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_struct("USB_IDLE_CALLBACK_INFO").field("IdleContext", &self.IdleContext).finish() |
| } |
| } |
| impl ::windows::core::TypeKind for USB_IDLE_CALLBACK_INFO { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::default::Default for USB_IDLE_CALLBACK_INFO { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C, packed(1))] |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub struct USB_ID_STRING { |
| pub LanguageId: u16, |
| pub Pad: u16, |
| pub LengthInBytes: u32, |
| pub Buffer: ::windows::core::PWSTR, |
| } |
| impl ::core::marker::Copy for USB_ID_STRING {} |
| impl ::core::clone::Clone for USB_ID_STRING { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::windows::core::TypeKind for USB_ID_STRING { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::default::Default for USB_ID_STRING { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C)] |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub struct USB_INTERFACE_ASSOCIATION_DESCRIPTOR { |
| pub bLength: u8, |
| pub bDescriptorType: u8, |
| pub bFirstInterface: u8, |
| pub bInterfaceCount: u8, |
| pub bFunctionClass: u8, |
| pub bFunctionSubClass: u8, |
| pub bFunctionProtocol: u8, |
| pub iFunction: u8, |
| } |
| impl ::core::marker::Copy for USB_INTERFACE_ASSOCIATION_DESCRIPTOR {} |
| impl ::core::clone::Clone for USB_INTERFACE_ASSOCIATION_DESCRIPTOR { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::core::fmt::Debug for USB_INTERFACE_ASSOCIATION_DESCRIPTOR { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_struct("USB_INTERFACE_ASSOCIATION_DESCRIPTOR").field("bLength", &self.bLength).field("bDescriptorType", &self.bDescriptorType).field("bFirstInterface", &self.bFirstInterface).field("bInterfaceCount", &self.bInterfaceCount).field("bFunctionClass", &self.bFunctionClass).field("bFunctionSubClass", &self.bFunctionSubClass).field("bFunctionProtocol", &self.bFunctionProtocol).field("iFunction", &self.iFunction).finish() |
| } |
| } |
| impl ::windows::core::TypeKind for USB_INTERFACE_ASSOCIATION_DESCRIPTOR { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::cmp::PartialEq for USB_INTERFACE_ASSOCIATION_DESCRIPTOR { |
| fn eq(&self, other: &Self) -> bool { |
| self.bLength == other.bLength && self.bDescriptorType == other.bDescriptorType && self.bFirstInterface == other.bFirstInterface && self.bInterfaceCount == other.bInterfaceCount && self.bFunctionClass == other.bFunctionClass && self.bFunctionSubClass == other.bFunctionSubClass && self.bFunctionProtocol == other.bFunctionProtocol && self.iFunction == other.iFunction |
| } |
| } |
| impl ::core::cmp::Eq for USB_INTERFACE_ASSOCIATION_DESCRIPTOR {} |
| impl ::core::default::Default for USB_INTERFACE_ASSOCIATION_DESCRIPTOR { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C)] |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub struct USB_INTERFACE_DESCRIPTOR { |
| pub bLength: u8, |
| pub bDescriptorType: u8, |
| pub bInterfaceNumber: u8, |
| pub bAlternateSetting: u8, |
| pub bNumEndpoints: u8, |
| pub bInterfaceClass: u8, |
| pub bInterfaceSubClass: u8, |
| pub bInterfaceProtocol: u8, |
| pub iInterface: u8, |
| } |
| impl ::core::marker::Copy for USB_INTERFACE_DESCRIPTOR {} |
| impl ::core::clone::Clone for USB_INTERFACE_DESCRIPTOR { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::core::fmt::Debug for USB_INTERFACE_DESCRIPTOR { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_struct("USB_INTERFACE_DESCRIPTOR").field("bLength", &self.bLength).field("bDescriptorType", &self.bDescriptorType).field("bInterfaceNumber", &self.bInterfaceNumber).field("bAlternateSetting", &self.bAlternateSetting).field("bNumEndpoints", &self.bNumEndpoints).field("bInterfaceClass", &self.bInterfaceClass).field("bInterfaceSubClass", &self.bInterfaceSubClass).field("bInterfaceProtocol", &self.bInterfaceProtocol).field("iInterface", &self.iInterface).finish() |
| } |
| } |
| impl ::windows::core::TypeKind for USB_INTERFACE_DESCRIPTOR { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::cmp::PartialEq for USB_INTERFACE_DESCRIPTOR { |
| fn eq(&self, other: &Self) -> bool { |
| self.bLength == other.bLength && self.bDescriptorType == other.bDescriptorType && self.bInterfaceNumber == other.bInterfaceNumber && self.bAlternateSetting == other.bAlternateSetting && self.bNumEndpoints == other.bNumEndpoints && self.bInterfaceClass == other.bInterfaceClass && self.bInterfaceSubClass == other.bInterfaceSubClass && self.bInterfaceProtocol == other.bInterfaceProtocol && self.iInterface == other.iInterface |
| } |
| } |
| impl ::core::cmp::Eq for USB_INTERFACE_DESCRIPTOR {} |
| impl ::core::default::Default for USB_INTERFACE_DESCRIPTOR { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C, packed(1))] |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub struct USB_INTERFACE_POWER_DESCRIPTOR { |
| pub bLength: u8, |
| pub bDescriptorType: u8, |
| pub bmCapabilitiesFlags: u8, |
| pub bBusPowerSavingD1: u8, |
| pub bSelfPowerSavingD1: u8, |
| pub bBusPowerSavingD2: u8, |
| pub bSelfPowerSavingD2: u8, |
| pub bBusPowerSavingD3: u8, |
| pub bSelfPowerSavingD3: u8, |
| pub TransitionTimeFromD1: u16, |
| pub TransitionTimeFromD2: u16, |
| pub TransitionTimeFromD3: u16, |
| } |
| impl ::core::marker::Copy for USB_INTERFACE_POWER_DESCRIPTOR {} |
| impl ::core::clone::Clone for USB_INTERFACE_POWER_DESCRIPTOR { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::windows::core::TypeKind for USB_INTERFACE_POWER_DESCRIPTOR { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::default::Default for USB_INTERFACE_POWER_DESCRIPTOR { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C, packed(1))] |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub union USB_INTERFACE_STATUS { |
| pub AsUshort16: u16, |
| pub Anonymous: USB_INTERFACE_STATUS_0, |
| } |
| impl ::core::marker::Copy for USB_INTERFACE_STATUS {} |
| impl ::core::clone::Clone for USB_INTERFACE_STATUS { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::windows::core::TypeKind for USB_INTERFACE_STATUS { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::default::Default for USB_INTERFACE_STATUS { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C, packed(1))] |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub struct USB_INTERFACE_STATUS_0 { |
| pub _bitfield: u16, |
| } |
| impl ::core::marker::Copy for USB_INTERFACE_STATUS_0 {} |
| impl ::core::clone::Clone for USB_INTERFACE_STATUS_0 { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::windows::core::TypeKind for USB_INTERFACE_STATUS_0 { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::default::Default for USB_INTERFACE_STATUS_0 { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C, packed(1))] |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub struct USB_MI_PARENT_INFORMATION { |
| pub NumberOfInterfaces: u32, |
| } |
| impl ::core::marker::Copy for USB_MI_PARENT_INFORMATION {} |
| impl ::core::clone::Clone for USB_MI_PARENT_INFORMATION { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::windows::core::TypeKind for USB_MI_PARENT_INFORMATION { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::default::Default for USB_MI_PARENT_INFORMATION { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C, packed(1))] |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub struct USB_NODE_CONNECTION_ATTRIBUTES { |
| pub ConnectionIndex: u32, |
| pub ConnectionStatus: USB_CONNECTION_STATUS, |
| pub PortAttributes: u32, |
| } |
| impl ::core::marker::Copy for USB_NODE_CONNECTION_ATTRIBUTES {} |
| impl ::core::clone::Clone for USB_NODE_CONNECTION_ATTRIBUTES { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::windows::core::TypeKind for USB_NODE_CONNECTION_ATTRIBUTES { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::default::Default for USB_NODE_CONNECTION_ATTRIBUTES { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C, packed(1))] |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub struct USB_NODE_CONNECTION_DRIVERKEY_NAME { |
| pub ConnectionIndex: u32, |
| pub ActualLength: u32, |
| pub DriverKeyName: [u16; 1], |
| } |
| impl ::core::marker::Copy for USB_NODE_CONNECTION_DRIVERKEY_NAME {} |
| impl ::core::clone::Clone for USB_NODE_CONNECTION_DRIVERKEY_NAME { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::windows::core::TypeKind for USB_NODE_CONNECTION_DRIVERKEY_NAME { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::default::Default for USB_NODE_CONNECTION_DRIVERKEY_NAME { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C, packed(1))] |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`, `\"Win32_Foundation\"`*"] |
| #[cfg(feature = "Win32_Foundation")] |
| pub struct USB_NODE_CONNECTION_INFORMATION { |
| pub ConnectionIndex: u32, |
| pub DeviceDescriptor: USB_DEVICE_DESCRIPTOR, |
| pub CurrentConfigurationValue: u8, |
| pub LowSpeed: super::super::Foundation::BOOLEAN, |
| pub DeviceIsHub: super::super::Foundation::BOOLEAN, |
| pub DeviceAddress: u16, |
| pub NumberOfOpenPipes: u32, |
| pub ConnectionStatus: USB_CONNECTION_STATUS, |
| pub PipeList: [USB_PIPE_INFO; 1], |
| } |
| #[cfg(feature = "Win32_Foundation")] |
| impl ::core::marker::Copy for USB_NODE_CONNECTION_INFORMATION {} |
| #[cfg(feature = "Win32_Foundation")] |
| impl ::core::clone::Clone for USB_NODE_CONNECTION_INFORMATION { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| #[cfg(feature = "Win32_Foundation")] |
| impl ::windows::core::TypeKind for USB_NODE_CONNECTION_INFORMATION { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| #[cfg(feature = "Win32_Foundation")] |
| impl ::core::default::Default for USB_NODE_CONNECTION_INFORMATION { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C, packed(1))] |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`, `\"Win32_Foundation\"`*"] |
| #[cfg(feature = "Win32_Foundation")] |
| pub struct USB_NODE_CONNECTION_INFORMATION_EX { |
| pub ConnectionIndex: u32, |
| pub DeviceDescriptor: USB_DEVICE_DESCRIPTOR, |
| pub CurrentConfigurationValue: u8, |
| pub Speed: u8, |
| pub DeviceIsHub: super::super::Foundation::BOOLEAN, |
| pub DeviceAddress: u16, |
| pub NumberOfOpenPipes: u32, |
| pub ConnectionStatus: USB_CONNECTION_STATUS, |
| pub PipeList: [USB_PIPE_INFO; 1], |
| } |
| #[cfg(feature = "Win32_Foundation")] |
| impl ::core::marker::Copy for USB_NODE_CONNECTION_INFORMATION_EX {} |
| #[cfg(feature = "Win32_Foundation")] |
| impl ::core::clone::Clone for USB_NODE_CONNECTION_INFORMATION_EX { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| #[cfg(feature = "Win32_Foundation")] |
| impl ::windows::core::TypeKind for USB_NODE_CONNECTION_INFORMATION_EX { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| #[cfg(feature = "Win32_Foundation")] |
| impl ::core::default::Default for USB_NODE_CONNECTION_INFORMATION_EX { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C, packed(1))] |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub struct USB_NODE_CONNECTION_INFORMATION_EX_V2 { |
| pub ConnectionIndex: u32, |
| pub Length: u32, |
| pub SupportedUsbProtocols: USB_PROTOCOLS, |
| pub Flags: USB_NODE_CONNECTION_INFORMATION_EX_V2_FLAGS, |
| } |
| impl ::core::marker::Copy for USB_NODE_CONNECTION_INFORMATION_EX_V2 {} |
| impl ::core::clone::Clone for USB_NODE_CONNECTION_INFORMATION_EX_V2 { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::windows::core::TypeKind for USB_NODE_CONNECTION_INFORMATION_EX_V2 { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::default::Default for USB_NODE_CONNECTION_INFORMATION_EX_V2 { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C, packed(1))] |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub union USB_NODE_CONNECTION_INFORMATION_EX_V2_FLAGS { |
| pub ul: u32, |
| pub Anonymous: USB_NODE_CONNECTION_INFORMATION_EX_V2_FLAGS_0, |
| } |
| impl ::core::marker::Copy for USB_NODE_CONNECTION_INFORMATION_EX_V2_FLAGS {} |
| impl ::core::clone::Clone for USB_NODE_CONNECTION_INFORMATION_EX_V2_FLAGS { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::windows::core::TypeKind for USB_NODE_CONNECTION_INFORMATION_EX_V2_FLAGS { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::default::Default for USB_NODE_CONNECTION_INFORMATION_EX_V2_FLAGS { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C, packed(1))] |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub struct USB_NODE_CONNECTION_INFORMATION_EX_V2_FLAGS_0 { |
| pub _bitfield: u32, |
| } |
| impl ::core::marker::Copy for USB_NODE_CONNECTION_INFORMATION_EX_V2_FLAGS_0 {} |
| impl ::core::clone::Clone for USB_NODE_CONNECTION_INFORMATION_EX_V2_FLAGS_0 { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::windows::core::TypeKind for USB_NODE_CONNECTION_INFORMATION_EX_V2_FLAGS_0 { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::default::Default for USB_NODE_CONNECTION_INFORMATION_EX_V2_FLAGS_0 { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C, packed(1))] |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub struct USB_NODE_CONNECTION_NAME { |
| pub ConnectionIndex: u32, |
| pub ActualLength: u32, |
| pub NodeName: [u16; 1], |
| } |
| impl ::core::marker::Copy for USB_NODE_CONNECTION_NAME {} |
| impl ::core::clone::Clone for USB_NODE_CONNECTION_NAME { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::windows::core::TypeKind for USB_NODE_CONNECTION_NAME { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::default::Default for USB_NODE_CONNECTION_NAME { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C, packed(1))] |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`, `\"Win32_Foundation\"`*"] |
| #[cfg(feature = "Win32_Foundation")] |
| pub struct USB_NODE_INFORMATION { |
| pub NodeType: USB_HUB_NODE, |
| pub u: USB_NODE_INFORMATION_0, |
| } |
| #[cfg(feature = "Win32_Foundation")] |
| impl ::core::marker::Copy for USB_NODE_INFORMATION {} |
| #[cfg(feature = "Win32_Foundation")] |
| impl ::core::clone::Clone for USB_NODE_INFORMATION { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| #[cfg(feature = "Win32_Foundation")] |
| impl ::windows::core::TypeKind for USB_NODE_INFORMATION { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| #[cfg(feature = "Win32_Foundation")] |
| impl ::core::default::Default for USB_NODE_INFORMATION { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C)] |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`, `\"Win32_Foundation\"`*"] |
| #[cfg(feature = "Win32_Foundation")] |
| pub union USB_NODE_INFORMATION_0 { |
| pub HubInformation: USB_HUB_INFORMATION, |
| pub MiParentInformation: USB_MI_PARENT_INFORMATION, |
| } |
| #[cfg(feature = "Win32_Foundation")] |
| impl ::core::marker::Copy for USB_NODE_INFORMATION_0 {} |
| #[cfg(feature = "Win32_Foundation")] |
| impl ::core::clone::Clone for USB_NODE_INFORMATION_0 { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| #[cfg(feature = "Win32_Foundation")] |
| impl ::windows::core::TypeKind for USB_NODE_INFORMATION_0 { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| #[cfg(feature = "Win32_Foundation")] |
| impl ::core::default::Default for USB_NODE_INFORMATION_0 { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C, packed(1))] |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub struct USB_NOTIFICATION { |
| pub NotificationType: USB_NOTIFICATION_TYPE, |
| } |
| impl ::core::marker::Copy for USB_NOTIFICATION {} |
| impl ::core::clone::Clone for USB_NOTIFICATION { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::windows::core::TypeKind for USB_NOTIFICATION { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::default::Default for USB_NOTIFICATION { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C, packed(1))] |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub struct USB_OPEN_RAW_DEVICE_PARAMETERS { |
| pub PortStatus: u16, |
| pub MaxPacketEp0: u16, |
| } |
| impl ::core::marker::Copy for USB_OPEN_RAW_DEVICE_PARAMETERS {} |
| impl ::core::clone::Clone for USB_OPEN_RAW_DEVICE_PARAMETERS { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::windows::core::TypeKind for USB_OPEN_RAW_DEVICE_PARAMETERS { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::default::Default for USB_OPEN_RAW_DEVICE_PARAMETERS { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C, packed(1))] |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub struct USB_PASS_THRU_PARAMETERS { |
| pub FunctionGUID: ::windows::core::GUID, |
| pub ParameterLength: u32, |
| pub Parameters: [u8; 4], |
| } |
| impl ::core::marker::Copy for USB_PASS_THRU_PARAMETERS {} |
| impl ::core::clone::Clone for USB_PASS_THRU_PARAMETERS { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::windows::core::TypeKind for USB_PASS_THRU_PARAMETERS { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::default::Default for USB_PASS_THRU_PARAMETERS { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C, packed(1))] |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub struct USB_PIPE_INFO { |
| pub EndpointDescriptor: USB_ENDPOINT_DESCRIPTOR, |
| pub ScheduleOffset: u32, |
| } |
| impl ::core::marker::Copy for USB_PIPE_INFO {} |
| impl ::core::clone::Clone for USB_PIPE_INFO { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::windows::core::TypeKind for USB_PIPE_INFO { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::default::Default for USB_PIPE_INFO { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C, packed(1))] |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub union USB_PORT_CHANGE { |
| pub AsUshort16: u16, |
| pub Usb20PortChange: USB_20_PORT_CHANGE, |
| pub Usb30PortChange: USB_30_PORT_CHANGE, |
| } |
| impl ::core::marker::Copy for USB_PORT_CHANGE {} |
| impl ::core::clone::Clone for USB_PORT_CHANGE { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::windows::core::TypeKind for USB_PORT_CHANGE { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::default::Default for USB_PORT_CHANGE { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C, packed(1))] |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub struct USB_PORT_CONNECTOR_PROPERTIES { |
| pub ConnectionIndex: u32, |
| pub ActualLength: u32, |
| pub UsbPortProperties: USB_PORT_PROPERTIES, |
| pub CompanionIndex: u16, |
| pub CompanionPortNumber: u16, |
| pub CompanionHubSymbolicLinkName: [u16; 1], |
| } |
| impl ::core::marker::Copy for USB_PORT_CONNECTOR_PROPERTIES {} |
| impl ::core::clone::Clone for USB_PORT_CONNECTOR_PROPERTIES { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::windows::core::TypeKind for USB_PORT_CONNECTOR_PROPERTIES { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::default::Default for USB_PORT_CONNECTOR_PROPERTIES { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C, packed(1))] |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub union USB_PORT_EXT_STATUS { |
| pub AsUlong32: u32, |
| pub Anonymous: USB_PORT_EXT_STATUS_0, |
| } |
| impl ::core::marker::Copy for USB_PORT_EXT_STATUS {} |
| impl ::core::clone::Clone for USB_PORT_EXT_STATUS { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::windows::core::TypeKind for USB_PORT_EXT_STATUS { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::default::Default for USB_PORT_EXT_STATUS { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C, packed(1))] |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub struct USB_PORT_EXT_STATUS_0 { |
| pub _bitfield: u32, |
| } |
| impl ::core::marker::Copy for USB_PORT_EXT_STATUS_0 {} |
| impl ::core::clone::Clone for USB_PORT_EXT_STATUS_0 { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::windows::core::TypeKind for USB_PORT_EXT_STATUS_0 { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::default::Default for USB_PORT_EXT_STATUS_0 { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C, packed(1))] |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub union USB_PORT_EXT_STATUS_AND_CHANGE { |
| pub AsUlong64: u64, |
| pub Anonymous: USB_PORT_EXT_STATUS_AND_CHANGE_0, |
| } |
| impl ::core::marker::Copy for USB_PORT_EXT_STATUS_AND_CHANGE {} |
| impl ::core::clone::Clone for USB_PORT_EXT_STATUS_AND_CHANGE { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::windows::core::TypeKind for USB_PORT_EXT_STATUS_AND_CHANGE { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::default::Default for USB_PORT_EXT_STATUS_AND_CHANGE { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C)] |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub struct USB_PORT_EXT_STATUS_AND_CHANGE_0 { |
| pub PortStatusChange: USB_PORT_STATUS_AND_CHANGE, |
| pub PortExtStatus: USB_PORT_EXT_STATUS, |
| } |
| impl ::core::marker::Copy for USB_PORT_EXT_STATUS_AND_CHANGE_0 {} |
| impl ::core::clone::Clone for USB_PORT_EXT_STATUS_AND_CHANGE_0 { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::windows::core::TypeKind for USB_PORT_EXT_STATUS_AND_CHANGE_0 { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::default::Default for USB_PORT_EXT_STATUS_AND_CHANGE_0 { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C, packed(1))] |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub union USB_PORT_PROPERTIES { |
| pub ul: u32, |
| pub Anonymous: USB_PORT_PROPERTIES_0, |
| } |
| impl ::core::marker::Copy for USB_PORT_PROPERTIES {} |
| impl ::core::clone::Clone for USB_PORT_PROPERTIES { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::windows::core::TypeKind for USB_PORT_PROPERTIES { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::default::Default for USB_PORT_PROPERTIES { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C, packed(1))] |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub struct USB_PORT_PROPERTIES_0 { |
| pub _bitfield: u32, |
| } |
| impl ::core::marker::Copy for USB_PORT_PROPERTIES_0 {} |
| impl ::core::clone::Clone for USB_PORT_PROPERTIES_0 { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::windows::core::TypeKind for USB_PORT_PROPERTIES_0 { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::default::Default for USB_PORT_PROPERTIES_0 { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C, packed(1))] |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub union USB_PORT_STATUS { |
| pub AsUshort16: u16, |
| pub Usb20PortStatus: USB_20_PORT_STATUS, |
| pub Usb30PortStatus: USB_30_PORT_STATUS, |
| } |
| impl ::core::marker::Copy for USB_PORT_STATUS {} |
| impl ::core::clone::Clone for USB_PORT_STATUS { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::windows::core::TypeKind for USB_PORT_STATUS { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::default::Default for USB_PORT_STATUS { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C, packed(1))] |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub union USB_PORT_STATUS_AND_CHANGE { |
| pub AsUlong32: u32, |
| pub Anonymous: USB_PORT_STATUS_AND_CHANGE_0, |
| } |
| impl ::core::marker::Copy for USB_PORT_STATUS_AND_CHANGE {} |
| impl ::core::clone::Clone for USB_PORT_STATUS_AND_CHANGE { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::windows::core::TypeKind for USB_PORT_STATUS_AND_CHANGE { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::default::Default for USB_PORT_STATUS_AND_CHANGE { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C)] |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub struct USB_PORT_STATUS_AND_CHANGE_0 { |
| pub PortStatus: USB_PORT_STATUS, |
| pub PortChange: USB_PORT_CHANGE, |
| } |
| impl ::core::marker::Copy for USB_PORT_STATUS_AND_CHANGE_0 {} |
| impl ::core::clone::Clone for USB_PORT_STATUS_AND_CHANGE_0 { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::windows::core::TypeKind for USB_PORT_STATUS_AND_CHANGE_0 { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::default::Default for USB_PORT_STATUS_AND_CHANGE_0 { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C, packed(1))] |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`, `\"Win32_Foundation\"`*"] |
| #[cfg(feature = "Win32_Foundation")] |
| pub struct USB_POWER_INFO { |
| pub SystemState: WDMUSB_POWER_STATE, |
| pub HcDevicePowerState: WDMUSB_POWER_STATE, |
| pub HcDeviceWake: WDMUSB_POWER_STATE, |
| pub HcSystemWake: WDMUSB_POWER_STATE, |
| pub RhDevicePowerState: WDMUSB_POWER_STATE, |
| pub RhDeviceWake: WDMUSB_POWER_STATE, |
| pub RhSystemWake: WDMUSB_POWER_STATE, |
| pub LastSystemSleepState: WDMUSB_POWER_STATE, |
| pub CanWakeup: super::super::Foundation::BOOLEAN, |
| pub IsPowered: super::super::Foundation::BOOLEAN, |
| } |
| #[cfg(feature = "Win32_Foundation")] |
| impl ::core::marker::Copy for USB_POWER_INFO {} |
| #[cfg(feature = "Win32_Foundation")] |
| impl ::core::clone::Clone for USB_POWER_INFO { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| #[cfg(feature = "Win32_Foundation")] |
| impl ::windows::core::TypeKind for USB_POWER_INFO { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| #[cfg(feature = "Win32_Foundation")] |
| impl ::core::default::Default for USB_POWER_INFO { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C, packed(1))] |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub union USB_PROTOCOLS { |
| pub ul: u32, |
| pub Anonymous: USB_PROTOCOLS_0, |
| } |
| impl ::core::marker::Copy for USB_PROTOCOLS {} |
| impl ::core::clone::Clone for USB_PROTOCOLS { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::windows::core::TypeKind for USB_PROTOCOLS { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::default::Default for USB_PROTOCOLS { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C, packed(1))] |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub struct USB_PROTOCOLS_0 { |
| pub _bitfield: u32, |
| } |
| impl ::core::marker::Copy for USB_PROTOCOLS_0 {} |
| impl ::core::clone::Clone for USB_PROTOCOLS_0 { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::windows::core::TypeKind for USB_PROTOCOLS_0 { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::default::Default for USB_PROTOCOLS_0 { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C, packed(1))] |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub struct USB_ROOT_HUB_NAME { |
| pub ActualLength: u32, |
| pub RootHubName: [u16; 1], |
| } |
| impl ::core::marker::Copy for USB_ROOT_HUB_NAME {} |
| impl ::core::clone::Clone for USB_ROOT_HUB_NAME { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::windows::core::TypeKind for USB_ROOT_HUB_NAME { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::default::Default for USB_ROOT_HUB_NAME { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C, packed(1))] |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub struct USB_SEND_RAW_COMMAND_PARAMETERS { |
| pub Usb_bmRequest: u8, |
| pub Usb_bRequest: u8, |
| pub Usb_wVlaue: u16, |
| pub Usb_wIndex: u16, |
| pub Usb_wLength: u16, |
| pub DeviceAddress: u16, |
| pub MaximumPacketSize: u16, |
| pub Timeout: u32, |
| pub DataLength: u32, |
| pub UsbdStatusCode: i32, |
| pub Data: [u8; 4], |
| } |
| impl ::core::marker::Copy for USB_SEND_RAW_COMMAND_PARAMETERS {} |
| impl ::core::clone::Clone for USB_SEND_RAW_COMMAND_PARAMETERS { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::windows::core::TypeKind for USB_SEND_RAW_COMMAND_PARAMETERS { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::default::Default for USB_SEND_RAW_COMMAND_PARAMETERS { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C, packed(1))] |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`, `\"Win32_Foundation\"`*"] |
| #[cfg(feature = "Win32_Foundation")] |
| pub struct USB_START_TRACKING_FOR_TIME_SYNC_INFORMATION { |
| pub TimeTrackingHandle: super::super::Foundation::HANDLE, |
| pub IsStartupDelayTolerable: super::super::Foundation::BOOLEAN, |
| } |
| #[cfg(feature = "Win32_Foundation")] |
| impl ::core::marker::Copy for USB_START_TRACKING_FOR_TIME_SYNC_INFORMATION {} |
| #[cfg(feature = "Win32_Foundation")] |
| impl ::core::clone::Clone for USB_START_TRACKING_FOR_TIME_SYNC_INFORMATION { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| #[cfg(feature = "Win32_Foundation")] |
| impl ::windows::core::TypeKind for USB_START_TRACKING_FOR_TIME_SYNC_INFORMATION { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| #[cfg(feature = "Win32_Foundation")] |
| impl ::core::default::Default for USB_START_TRACKING_FOR_TIME_SYNC_INFORMATION { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C, packed(1))] |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`, `\"Win32_Foundation\"`*"] |
| #[cfg(feature = "Win32_Foundation")] |
| pub struct USB_STOP_TRACKING_FOR_TIME_SYNC_INFORMATION { |
| pub TimeTrackingHandle: super::super::Foundation::HANDLE, |
| } |
| #[cfg(feature = "Win32_Foundation")] |
| impl ::core::marker::Copy for USB_STOP_TRACKING_FOR_TIME_SYNC_INFORMATION {} |
| #[cfg(feature = "Win32_Foundation")] |
| impl ::core::clone::Clone for USB_STOP_TRACKING_FOR_TIME_SYNC_INFORMATION { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| #[cfg(feature = "Win32_Foundation")] |
| impl ::windows::core::TypeKind for USB_STOP_TRACKING_FOR_TIME_SYNC_INFORMATION { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| #[cfg(feature = "Win32_Foundation")] |
| impl ::core::default::Default for USB_STOP_TRACKING_FOR_TIME_SYNC_INFORMATION { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C, packed(1))] |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub struct USB_STRING_DESCRIPTOR { |
| pub bLength: u8, |
| pub bDescriptorType: u8, |
| pub bString: [u16; 1], |
| } |
| impl ::core::marker::Copy for USB_STRING_DESCRIPTOR {} |
| impl ::core::clone::Clone for USB_STRING_DESCRIPTOR { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::windows::core::TypeKind for USB_STRING_DESCRIPTOR { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::default::Default for USB_STRING_DESCRIPTOR { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C, packed(1))] |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub struct USB_SUPERSPEEDPLUS_ISOCH_ENDPOINT_COMPANION_DESCRIPTOR { |
| pub bLength: u8, |
| pub bDescriptorType: u8, |
| pub wReserved: u16, |
| pub dwBytesPerInterval: u32, |
| } |
| impl ::core::marker::Copy for USB_SUPERSPEEDPLUS_ISOCH_ENDPOINT_COMPANION_DESCRIPTOR {} |
| impl ::core::clone::Clone for USB_SUPERSPEEDPLUS_ISOCH_ENDPOINT_COMPANION_DESCRIPTOR { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::windows::core::TypeKind for USB_SUPERSPEEDPLUS_ISOCH_ENDPOINT_COMPANION_DESCRIPTOR { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::default::Default for USB_SUPERSPEEDPLUS_ISOCH_ENDPOINT_COMPANION_DESCRIPTOR { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C, packed(1))] |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub struct USB_SUPERSPEED_ENDPOINT_COMPANION_DESCRIPTOR { |
| pub bLength: u8, |
| pub bDescriptorType: u8, |
| pub bMaxBurst: u8, |
| pub bmAttributes: USB_SUPERSPEED_ENDPOINT_COMPANION_DESCRIPTOR_0, |
| pub wBytesPerInterval: u16, |
| } |
| impl ::core::marker::Copy for USB_SUPERSPEED_ENDPOINT_COMPANION_DESCRIPTOR {} |
| impl ::core::clone::Clone for USB_SUPERSPEED_ENDPOINT_COMPANION_DESCRIPTOR { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::windows::core::TypeKind for USB_SUPERSPEED_ENDPOINT_COMPANION_DESCRIPTOR { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::default::Default for USB_SUPERSPEED_ENDPOINT_COMPANION_DESCRIPTOR { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C)] |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub union USB_SUPERSPEED_ENDPOINT_COMPANION_DESCRIPTOR_0 { |
| pub AsUchar: u8, |
| pub Bulk: USB_SUPERSPEED_ENDPOINT_COMPANION_DESCRIPTOR_0_0, |
| pub Isochronous: USB_SUPERSPEED_ENDPOINT_COMPANION_DESCRIPTOR_0_1, |
| } |
| impl ::core::marker::Copy for USB_SUPERSPEED_ENDPOINT_COMPANION_DESCRIPTOR_0 {} |
| impl ::core::clone::Clone for USB_SUPERSPEED_ENDPOINT_COMPANION_DESCRIPTOR_0 { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::windows::core::TypeKind for USB_SUPERSPEED_ENDPOINT_COMPANION_DESCRIPTOR_0 { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::default::Default for USB_SUPERSPEED_ENDPOINT_COMPANION_DESCRIPTOR_0 { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C)] |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub struct USB_SUPERSPEED_ENDPOINT_COMPANION_DESCRIPTOR_0_0 { |
| pub _bitfield: u8, |
| } |
| impl ::core::marker::Copy for USB_SUPERSPEED_ENDPOINT_COMPANION_DESCRIPTOR_0_0 {} |
| impl ::core::clone::Clone for USB_SUPERSPEED_ENDPOINT_COMPANION_DESCRIPTOR_0_0 { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::core::fmt::Debug for USB_SUPERSPEED_ENDPOINT_COMPANION_DESCRIPTOR_0_0 { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_struct("USB_SUPERSPEED_ENDPOINT_COMPANION_DESCRIPTOR_0_0").field("_bitfield", &self._bitfield).finish() |
| } |
| } |
| impl ::windows::core::TypeKind for USB_SUPERSPEED_ENDPOINT_COMPANION_DESCRIPTOR_0_0 { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::cmp::PartialEq for USB_SUPERSPEED_ENDPOINT_COMPANION_DESCRIPTOR_0_0 { |
| fn eq(&self, other: &Self) -> bool { |
| self._bitfield == other._bitfield |
| } |
| } |
| impl ::core::cmp::Eq for USB_SUPERSPEED_ENDPOINT_COMPANION_DESCRIPTOR_0_0 {} |
| impl ::core::default::Default for USB_SUPERSPEED_ENDPOINT_COMPANION_DESCRIPTOR_0_0 { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C)] |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub struct USB_SUPERSPEED_ENDPOINT_COMPANION_DESCRIPTOR_0_1 { |
| pub _bitfield: u8, |
| } |
| impl ::core::marker::Copy for USB_SUPERSPEED_ENDPOINT_COMPANION_DESCRIPTOR_0_1 {} |
| impl ::core::clone::Clone for USB_SUPERSPEED_ENDPOINT_COMPANION_DESCRIPTOR_0_1 { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::core::fmt::Debug for USB_SUPERSPEED_ENDPOINT_COMPANION_DESCRIPTOR_0_1 { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_struct("USB_SUPERSPEED_ENDPOINT_COMPANION_DESCRIPTOR_0_1").field("_bitfield", &self._bitfield).finish() |
| } |
| } |
| impl ::windows::core::TypeKind for USB_SUPERSPEED_ENDPOINT_COMPANION_DESCRIPTOR_0_1 { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::cmp::PartialEq for USB_SUPERSPEED_ENDPOINT_COMPANION_DESCRIPTOR_0_1 { |
| fn eq(&self, other: &Self) -> bool { |
| self._bitfield == other._bitfield |
| } |
| } |
| impl ::core::cmp::Eq for USB_SUPERSPEED_ENDPOINT_COMPANION_DESCRIPTOR_0_1 {} |
| impl ::core::default::Default for USB_SUPERSPEED_ENDPOINT_COMPANION_DESCRIPTOR_0_1 { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C)] |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub struct USB_TOPOLOGY_ADDRESS { |
| pub PciBusNumber: u32, |
| pub PciDeviceNumber: u32, |
| pub PciFunctionNumber: u32, |
| pub Reserved: u32, |
| pub RootHubPortNumber: u16, |
| pub HubPortNumber: [u16; 5], |
| pub Reserved2: u16, |
| } |
| impl ::core::marker::Copy for USB_TOPOLOGY_ADDRESS {} |
| impl ::core::clone::Clone for USB_TOPOLOGY_ADDRESS { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::core::fmt::Debug for USB_TOPOLOGY_ADDRESS { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_struct("USB_TOPOLOGY_ADDRESS").field("PciBusNumber", &self.PciBusNumber).field("PciDeviceNumber", &self.PciDeviceNumber).field("PciFunctionNumber", &self.PciFunctionNumber).field("Reserved", &self.Reserved).field("RootHubPortNumber", &self.RootHubPortNumber).field("HubPortNumber", &self.HubPortNumber).field("Reserved2", &self.Reserved2).finish() |
| } |
| } |
| impl ::windows::core::TypeKind for USB_TOPOLOGY_ADDRESS { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::cmp::PartialEq for USB_TOPOLOGY_ADDRESS { |
| fn eq(&self, other: &Self) -> bool { |
| self.PciBusNumber == other.PciBusNumber && self.PciDeviceNumber == other.PciDeviceNumber && self.PciFunctionNumber == other.PciFunctionNumber && self.Reserved == other.Reserved && self.RootHubPortNumber == other.RootHubPortNumber && self.HubPortNumber == other.HubPortNumber && self.Reserved2 == other.Reserved2 |
| } |
| } |
| impl ::core::cmp::Eq for USB_TOPOLOGY_ADDRESS {} |
| impl ::core::default::Default for USB_TOPOLOGY_ADDRESS { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C, packed(1))] |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub struct USB_TRANSPORT_CHARACTERISTICS { |
| pub Version: u32, |
| pub TransportCharacteristicsFlags: u32, |
| pub CurrentRoundtripLatencyInMilliSeconds: u64, |
| pub MaxPotentialBandwidth: u64, |
| } |
| impl ::core::marker::Copy for USB_TRANSPORT_CHARACTERISTICS {} |
| impl ::core::clone::Clone for USB_TRANSPORT_CHARACTERISTICS { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::windows::core::TypeKind for USB_TRANSPORT_CHARACTERISTICS { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::default::Default for USB_TRANSPORT_CHARACTERISTICS { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C, packed(1))] |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub struct USB_TRANSPORT_CHARACTERISTICS_CHANGE_NOTIFICATION { |
| pub Handle: USB_CHANGE_REGISTRATION_HANDLE, |
| pub UsbTransportCharacteristics: USB_TRANSPORT_CHARACTERISTICS, |
| } |
| impl ::core::marker::Copy for USB_TRANSPORT_CHARACTERISTICS_CHANGE_NOTIFICATION {} |
| impl ::core::clone::Clone for USB_TRANSPORT_CHARACTERISTICS_CHANGE_NOTIFICATION { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::windows::core::TypeKind for USB_TRANSPORT_CHARACTERISTICS_CHANGE_NOTIFICATION { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::default::Default for USB_TRANSPORT_CHARACTERISTICS_CHANGE_NOTIFICATION { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C, packed(1))] |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub struct USB_TRANSPORT_CHARACTERISTICS_CHANGE_REGISTRATION { |
| pub ChangeNotificationInputFlags: u32, |
| pub Handle: USB_CHANGE_REGISTRATION_HANDLE, |
| pub UsbTransportCharacteristics: USB_TRANSPORT_CHARACTERISTICS, |
| } |
| impl ::core::marker::Copy for USB_TRANSPORT_CHARACTERISTICS_CHANGE_REGISTRATION {} |
| impl ::core::clone::Clone for USB_TRANSPORT_CHARACTERISTICS_CHANGE_REGISTRATION { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::windows::core::TypeKind for USB_TRANSPORT_CHARACTERISTICS_CHANGE_REGISTRATION { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::default::Default for USB_TRANSPORT_CHARACTERISTICS_CHANGE_REGISTRATION { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C, packed(1))] |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub struct USB_TRANSPORT_CHARACTERISTICS_CHANGE_UNREGISTRATION { |
| pub Handle: USB_CHANGE_REGISTRATION_HANDLE, |
| } |
| impl ::core::marker::Copy for USB_TRANSPORT_CHARACTERISTICS_CHANGE_UNREGISTRATION {} |
| impl ::core::clone::Clone for USB_TRANSPORT_CHARACTERISTICS_CHANGE_UNREGISTRATION { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::windows::core::TypeKind for USB_TRANSPORT_CHARACTERISTICS_CHANGE_UNREGISTRATION { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::default::Default for USB_TRANSPORT_CHARACTERISTICS_CHANGE_UNREGISTRATION { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C, packed(1))] |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub struct USB_UNICODE_NAME { |
| pub Length: u32, |
| pub String: [u16; 1], |
| } |
| impl ::core::marker::Copy for USB_UNICODE_NAME {} |
| impl ::core::clone::Clone for USB_UNICODE_NAME { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::windows::core::TypeKind for USB_UNICODE_NAME { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::default::Default for USB_UNICODE_NAME { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C, packed(1))] |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub struct USB_USB2HW_VERSION_PARAMETERS { |
| pub Usb2HwRevision: u8, |
| } |
| impl ::core::marker::Copy for USB_USB2HW_VERSION_PARAMETERS {} |
| impl ::core::clone::Clone for USB_USB2HW_VERSION_PARAMETERS { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::windows::core::TypeKind for USB_USB2HW_VERSION_PARAMETERS { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::default::Default for USB_USB2HW_VERSION_PARAMETERS { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(transparent)] |
| #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] |
| pub struct WINUSB_INTERFACE_HANDLE(pub isize); |
| impl WINUSB_INTERFACE_HANDLE { |
| pub fn is_invalid(&self) -> bool { |
| self.0 == 0 |
| } |
| } |
| impl ::core::default::Default for WINUSB_INTERFACE_HANDLE { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| impl ::core::clone::Clone for WINUSB_INTERFACE_HANDLE { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::core::marker::Copy for WINUSB_INTERFACE_HANDLE {} |
| impl ::core::fmt::Debug for WINUSB_INTERFACE_HANDLE { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_tuple("WINUSB_INTERFACE_HANDLE").field(&self.0).finish() |
| } |
| } |
| impl ::windows::core::TypeKind for WINUSB_INTERFACE_HANDLE { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| #[repr(C)] |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub struct WINUSB_PIPE_INFORMATION { |
| pub PipeType: USBD_PIPE_TYPE, |
| pub PipeId: u8, |
| pub MaximumPacketSize: u16, |
| pub Interval: u8, |
| } |
| impl ::core::marker::Copy for WINUSB_PIPE_INFORMATION {} |
| impl ::core::clone::Clone for WINUSB_PIPE_INFORMATION { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::core::fmt::Debug for WINUSB_PIPE_INFORMATION { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_struct("WINUSB_PIPE_INFORMATION").field("PipeType", &self.PipeType).field("PipeId", &self.PipeId).field("MaximumPacketSize", &self.MaximumPacketSize).field("Interval", &self.Interval).finish() |
| } |
| } |
| impl ::windows::core::TypeKind for WINUSB_PIPE_INFORMATION { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::cmp::PartialEq for WINUSB_PIPE_INFORMATION { |
| fn eq(&self, other: &Self) -> bool { |
| self.PipeType == other.PipeType && self.PipeId == other.PipeId && self.MaximumPacketSize == other.MaximumPacketSize && self.Interval == other.Interval |
| } |
| } |
| impl ::core::cmp::Eq for WINUSB_PIPE_INFORMATION {} |
| impl ::core::default::Default for WINUSB_PIPE_INFORMATION { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C)] |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub struct WINUSB_PIPE_INFORMATION_EX { |
| pub PipeType: USBD_PIPE_TYPE, |
| pub PipeId: u8, |
| pub MaximumPacketSize: u16, |
| pub Interval: u8, |
| pub MaximumBytesPerInterval: u32, |
| } |
| impl ::core::marker::Copy for WINUSB_PIPE_INFORMATION_EX {} |
| impl ::core::clone::Clone for WINUSB_PIPE_INFORMATION_EX { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::core::fmt::Debug for WINUSB_PIPE_INFORMATION_EX { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_struct("WINUSB_PIPE_INFORMATION_EX").field("PipeType", &self.PipeType).field("PipeId", &self.PipeId).field("MaximumPacketSize", &self.MaximumPacketSize).field("Interval", &self.Interval).field("MaximumBytesPerInterval", &self.MaximumBytesPerInterval).finish() |
| } |
| } |
| impl ::windows::core::TypeKind for WINUSB_PIPE_INFORMATION_EX { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::cmp::PartialEq for WINUSB_PIPE_INFORMATION_EX { |
| fn eq(&self, other: &Self) -> bool { |
| self.PipeType == other.PipeType && self.PipeId == other.PipeId && self.MaximumPacketSize == other.MaximumPacketSize && self.Interval == other.Interval && self.MaximumBytesPerInterval == other.MaximumBytesPerInterval |
| } |
| } |
| impl ::core::cmp::Eq for WINUSB_PIPE_INFORMATION_EX {} |
| impl ::core::default::Default for WINUSB_PIPE_INFORMATION_EX { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C, packed(1))] |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub struct WINUSB_SETUP_PACKET { |
| pub RequestType: u8, |
| pub Request: u8, |
| pub Value: u16, |
| pub Index: u16, |
| pub Length: u16, |
| } |
| impl ::core::marker::Copy for WINUSB_SETUP_PACKET {} |
| impl ::core::clone::Clone for WINUSB_SETUP_PACKET { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::windows::core::TypeKind for WINUSB_SETUP_PACKET { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::default::Default for WINUSB_SETUP_PACKET { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C)] |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub struct _URB_BULK_OR_INTERRUPT_TRANSFER { |
| pub Hdr: _URB_HEADER, |
| pub PipeHandle: *mut ::core::ffi::c_void, |
| pub TransferFlags: u32, |
| pub TransferBufferLength: u32, |
| pub TransferBuffer: *mut ::core::ffi::c_void, |
| pub TransferBufferMDL: *mut ::core::ffi::c_void, |
| pub UrbLink: *mut URB, |
| pub hca: _URB_HCD_AREA, |
| } |
| impl ::core::marker::Copy for _URB_BULK_OR_INTERRUPT_TRANSFER {} |
| impl ::core::clone::Clone for _URB_BULK_OR_INTERRUPT_TRANSFER { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::core::fmt::Debug for _URB_BULK_OR_INTERRUPT_TRANSFER { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_struct("_URB_BULK_OR_INTERRUPT_TRANSFER").field("Hdr", &self.Hdr).field("PipeHandle", &self.PipeHandle).field("TransferFlags", &self.TransferFlags).field("TransferBufferLength", &self.TransferBufferLength).field("TransferBuffer", &self.TransferBuffer).field("TransferBufferMDL", &self.TransferBufferMDL).field("UrbLink", &self.UrbLink).field("hca", &self.hca).finish() |
| } |
| } |
| impl ::windows::core::TypeKind for _URB_BULK_OR_INTERRUPT_TRANSFER { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::cmp::PartialEq for _URB_BULK_OR_INTERRUPT_TRANSFER { |
| fn eq(&self, other: &Self) -> bool { |
| self.Hdr == other.Hdr && self.PipeHandle == other.PipeHandle && self.TransferFlags == other.TransferFlags && self.TransferBufferLength == other.TransferBufferLength && self.TransferBuffer == other.TransferBuffer && self.TransferBufferMDL == other.TransferBufferMDL && self.UrbLink == other.UrbLink && self.hca == other.hca |
| } |
| } |
| impl ::core::cmp::Eq for _URB_BULK_OR_INTERRUPT_TRANSFER {} |
| impl ::core::default::Default for _URB_BULK_OR_INTERRUPT_TRANSFER { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C)] |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub struct _URB_CONTROL_DESCRIPTOR_REQUEST { |
| pub Hdr: _URB_HEADER, |
| pub Reserved: *mut ::core::ffi::c_void, |
| pub Reserved0: u32, |
| pub TransferBufferLength: u32, |
| pub TransferBuffer: *mut ::core::ffi::c_void, |
| pub TransferBufferMDL: *mut ::core::ffi::c_void, |
| pub UrbLink: *mut URB, |
| pub hca: _URB_HCD_AREA, |
| pub Reserved1: u16, |
| pub Index: u8, |
| pub DescriptorType: u8, |
| pub LanguageId: u16, |
| pub Reserved2: u16, |
| } |
| impl ::core::marker::Copy for _URB_CONTROL_DESCRIPTOR_REQUEST {} |
| impl ::core::clone::Clone for _URB_CONTROL_DESCRIPTOR_REQUEST { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::core::fmt::Debug for _URB_CONTROL_DESCRIPTOR_REQUEST { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_struct("_URB_CONTROL_DESCRIPTOR_REQUEST") |
| .field("Hdr", &self.Hdr) |
| .field("Reserved", &self.Reserved) |
| .field("Reserved0", &self.Reserved0) |
| .field("TransferBufferLength", &self.TransferBufferLength) |
| .field("TransferBuffer", &self.TransferBuffer) |
| .field("TransferBufferMDL", &self.TransferBufferMDL) |
| .field("UrbLink", &self.UrbLink) |
| .field("hca", &self.hca) |
| .field("Reserved1", &self.Reserved1) |
| .field("Index", &self.Index) |
| .field("DescriptorType", &self.DescriptorType) |
| .field("LanguageId", &self.LanguageId) |
| .field("Reserved2", &self.Reserved2) |
| .finish() |
| } |
| } |
| impl ::windows::core::TypeKind for _URB_CONTROL_DESCRIPTOR_REQUEST { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::cmp::PartialEq for _URB_CONTROL_DESCRIPTOR_REQUEST { |
| fn eq(&self, other: &Self) -> bool { |
| self.Hdr == other.Hdr && self.Reserved == other.Reserved && self.Reserved0 == other.Reserved0 && self.TransferBufferLength == other.TransferBufferLength && self.TransferBuffer == other.TransferBuffer && self.TransferBufferMDL == other.TransferBufferMDL && self.UrbLink == other.UrbLink && self.hca == other.hca && self.Reserved1 == other.Reserved1 && self.Index == other.Index && self.DescriptorType == other.DescriptorType && self.LanguageId == other.LanguageId && self.Reserved2 == other.Reserved2 |
| } |
| } |
| impl ::core::cmp::Eq for _URB_CONTROL_DESCRIPTOR_REQUEST {} |
| impl ::core::default::Default for _URB_CONTROL_DESCRIPTOR_REQUEST { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C)] |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub struct _URB_CONTROL_FEATURE_REQUEST { |
| pub Hdr: _URB_HEADER, |
| pub Reserved: *mut ::core::ffi::c_void, |
| pub Reserved2: u32, |
| pub Reserved3: u32, |
| pub Reserved4: *mut ::core::ffi::c_void, |
| pub Reserved5: *mut ::core::ffi::c_void, |
| pub UrbLink: *mut URB, |
| pub hca: _URB_HCD_AREA, |
| pub Reserved0: u16, |
| pub FeatureSelector: u16, |
| pub Index: u16, |
| pub Reserved1: u16, |
| } |
| impl ::core::marker::Copy for _URB_CONTROL_FEATURE_REQUEST {} |
| impl ::core::clone::Clone for _URB_CONTROL_FEATURE_REQUEST { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::core::fmt::Debug for _URB_CONTROL_FEATURE_REQUEST { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_struct("_URB_CONTROL_FEATURE_REQUEST").field("Hdr", &self.Hdr).field("Reserved", &self.Reserved).field("Reserved2", &self.Reserved2).field("Reserved3", &self.Reserved3).field("Reserved4", &self.Reserved4).field("Reserved5", &self.Reserved5).field("UrbLink", &self.UrbLink).field("hca", &self.hca).field("Reserved0", &self.Reserved0).field("FeatureSelector", &self.FeatureSelector).field("Index", &self.Index).field("Reserved1", &self.Reserved1).finish() |
| } |
| } |
| impl ::windows::core::TypeKind for _URB_CONTROL_FEATURE_REQUEST { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::cmp::PartialEq for _URB_CONTROL_FEATURE_REQUEST { |
| fn eq(&self, other: &Self) -> bool { |
| self.Hdr == other.Hdr && self.Reserved == other.Reserved && self.Reserved2 == other.Reserved2 && self.Reserved3 == other.Reserved3 && self.Reserved4 == other.Reserved4 && self.Reserved5 == other.Reserved5 && self.UrbLink == other.UrbLink && self.hca == other.hca && self.Reserved0 == other.Reserved0 && self.FeatureSelector == other.FeatureSelector && self.Index == other.Index && self.Reserved1 == other.Reserved1 |
| } |
| } |
| impl ::core::cmp::Eq for _URB_CONTROL_FEATURE_REQUEST {} |
| impl ::core::default::Default for _URB_CONTROL_FEATURE_REQUEST { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C)] |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub struct _URB_CONTROL_GET_CONFIGURATION_REQUEST { |
| pub Hdr: _URB_HEADER, |
| pub Reserved: *mut ::core::ffi::c_void, |
| pub Reserved0: u32, |
| pub TransferBufferLength: u32, |
| pub TransferBuffer: *mut ::core::ffi::c_void, |
| pub TransferBufferMDL: *mut ::core::ffi::c_void, |
| pub UrbLink: *mut URB, |
| pub hca: _URB_HCD_AREA, |
| pub Reserved1: [u8; 8], |
| } |
| impl ::core::marker::Copy for _URB_CONTROL_GET_CONFIGURATION_REQUEST {} |
| impl ::core::clone::Clone for _URB_CONTROL_GET_CONFIGURATION_REQUEST { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::core::fmt::Debug for _URB_CONTROL_GET_CONFIGURATION_REQUEST { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_struct("_URB_CONTROL_GET_CONFIGURATION_REQUEST").field("Hdr", &self.Hdr).field("Reserved", &self.Reserved).field("Reserved0", &self.Reserved0).field("TransferBufferLength", &self.TransferBufferLength).field("TransferBuffer", &self.TransferBuffer).field("TransferBufferMDL", &self.TransferBufferMDL).field("UrbLink", &self.UrbLink).field("hca", &self.hca).field("Reserved1", &self.Reserved1).finish() |
| } |
| } |
| impl ::windows::core::TypeKind for _URB_CONTROL_GET_CONFIGURATION_REQUEST { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::cmp::PartialEq for _URB_CONTROL_GET_CONFIGURATION_REQUEST { |
| fn eq(&self, other: &Self) -> bool { |
| self.Hdr == other.Hdr && self.Reserved == other.Reserved && self.Reserved0 == other.Reserved0 && self.TransferBufferLength == other.TransferBufferLength && self.TransferBuffer == other.TransferBuffer && self.TransferBufferMDL == other.TransferBufferMDL && self.UrbLink == other.UrbLink && self.hca == other.hca && self.Reserved1 == other.Reserved1 |
| } |
| } |
| impl ::core::cmp::Eq for _URB_CONTROL_GET_CONFIGURATION_REQUEST {} |
| impl ::core::default::Default for _URB_CONTROL_GET_CONFIGURATION_REQUEST { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C)] |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub struct _URB_CONTROL_GET_INTERFACE_REQUEST { |
| pub Hdr: _URB_HEADER, |
| pub Reserved: *mut ::core::ffi::c_void, |
| pub Reserved0: u32, |
| pub TransferBufferLength: u32, |
| pub TransferBuffer: *mut ::core::ffi::c_void, |
| pub TransferBufferMDL: *mut ::core::ffi::c_void, |
| pub UrbLink: *mut URB, |
| pub hca: _URB_HCD_AREA, |
| pub Reserved1: [u8; 4], |
| pub Interface: u16, |
| pub Reserved2: u16, |
| } |
| impl ::core::marker::Copy for _URB_CONTROL_GET_INTERFACE_REQUEST {} |
| impl ::core::clone::Clone for _URB_CONTROL_GET_INTERFACE_REQUEST { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::core::fmt::Debug for _URB_CONTROL_GET_INTERFACE_REQUEST { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_struct("_URB_CONTROL_GET_INTERFACE_REQUEST").field("Hdr", &self.Hdr).field("Reserved", &self.Reserved).field("Reserved0", &self.Reserved0).field("TransferBufferLength", &self.TransferBufferLength).field("TransferBuffer", &self.TransferBuffer).field("TransferBufferMDL", &self.TransferBufferMDL).field("UrbLink", &self.UrbLink).field("hca", &self.hca).field("Reserved1", &self.Reserved1).field("Interface", &self.Interface).field("Reserved2", &self.Reserved2).finish() |
| } |
| } |
| impl ::windows::core::TypeKind for _URB_CONTROL_GET_INTERFACE_REQUEST { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::cmp::PartialEq for _URB_CONTROL_GET_INTERFACE_REQUEST { |
| fn eq(&self, other: &Self) -> bool { |
| self.Hdr == other.Hdr && self.Reserved == other.Reserved && self.Reserved0 == other.Reserved0 && self.TransferBufferLength == other.TransferBufferLength && self.TransferBuffer == other.TransferBuffer && self.TransferBufferMDL == other.TransferBufferMDL && self.UrbLink == other.UrbLink && self.hca == other.hca && self.Reserved1 == other.Reserved1 && self.Interface == other.Interface && self.Reserved2 == other.Reserved2 |
| } |
| } |
| impl ::core::cmp::Eq for _URB_CONTROL_GET_INTERFACE_REQUEST {} |
| impl ::core::default::Default for _URB_CONTROL_GET_INTERFACE_REQUEST { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C)] |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub struct _URB_CONTROL_GET_STATUS_REQUEST { |
| pub Hdr: _URB_HEADER, |
| pub Reserved: *mut ::core::ffi::c_void, |
| pub Reserved0: u32, |
| pub TransferBufferLength: u32, |
| pub TransferBuffer: *mut ::core::ffi::c_void, |
| pub TransferBufferMDL: *mut ::core::ffi::c_void, |
| pub UrbLink: *mut URB, |
| pub hca: _URB_HCD_AREA, |
| pub Reserved1: [u8; 4], |
| pub Index: u16, |
| pub Reserved2: u16, |
| } |
| impl ::core::marker::Copy for _URB_CONTROL_GET_STATUS_REQUEST {} |
| impl ::core::clone::Clone for _URB_CONTROL_GET_STATUS_REQUEST { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::core::fmt::Debug for _URB_CONTROL_GET_STATUS_REQUEST { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_struct("_URB_CONTROL_GET_STATUS_REQUEST").field("Hdr", &self.Hdr).field("Reserved", &self.Reserved).field("Reserved0", &self.Reserved0).field("TransferBufferLength", &self.TransferBufferLength).field("TransferBuffer", &self.TransferBuffer).field("TransferBufferMDL", &self.TransferBufferMDL).field("UrbLink", &self.UrbLink).field("hca", &self.hca).field("Reserved1", &self.Reserved1).field("Index", &self.Index).field("Reserved2", &self.Reserved2).finish() |
| } |
| } |
| impl ::windows::core::TypeKind for _URB_CONTROL_GET_STATUS_REQUEST { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::cmp::PartialEq for _URB_CONTROL_GET_STATUS_REQUEST { |
| fn eq(&self, other: &Self) -> bool { |
| self.Hdr == other.Hdr && self.Reserved == other.Reserved && self.Reserved0 == other.Reserved0 && self.TransferBufferLength == other.TransferBufferLength && self.TransferBuffer == other.TransferBuffer && self.TransferBufferMDL == other.TransferBufferMDL && self.UrbLink == other.UrbLink && self.hca == other.hca && self.Reserved1 == other.Reserved1 && self.Index == other.Index && self.Reserved2 == other.Reserved2 |
| } |
| } |
| impl ::core::cmp::Eq for _URB_CONTROL_GET_STATUS_REQUEST {} |
| impl ::core::default::Default for _URB_CONTROL_GET_STATUS_REQUEST { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C)] |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub struct _URB_CONTROL_TRANSFER { |
| pub Hdr: _URB_HEADER, |
| pub PipeHandle: *mut ::core::ffi::c_void, |
| pub TransferFlags: u32, |
| pub TransferBufferLength: u32, |
| pub TransferBuffer: *mut ::core::ffi::c_void, |
| pub TransferBufferMDL: *mut ::core::ffi::c_void, |
| pub UrbLink: *mut URB, |
| pub hca: _URB_HCD_AREA, |
| pub SetupPacket: [u8; 8], |
| } |
| impl ::core::marker::Copy for _URB_CONTROL_TRANSFER {} |
| impl ::core::clone::Clone for _URB_CONTROL_TRANSFER { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::core::fmt::Debug for _URB_CONTROL_TRANSFER { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_struct("_URB_CONTROL_TRANSFER").field("Hdr", &self.Hdr).field("PipeHandle", &self.PipeHandle).field("TransferFlags", &self.TransferFlags).field("TransferBufferLength", &self.TransferBufferLength).field("TransferBuffer", &self.TransferBuffer).field("TransferBufferMDL", &self.TransferBufferMDL).field("UrbLink", &self.UrbLink).field("hca", &self.hca).field("SetupPacket", &self.SetupPacket).finish() |
| } |
| } |
| impl ::windows::core::TypeKind for _URB_CONTROL_TRANSFER { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::cmp::PartialEq for _URB_CONTROL_TRANSFER { |
| fn eq(&self, other: &Self) -> bool { |
| self.Hdr == other.Hdr && self.PipeHandle == other.PipeHandle && self.TransferFlags == other.TransferFlags && self.TransferBufferLength == other.TransferBufferLength && self.TransferBuffer == other.TransferBuffer && self.TransferBufferMDL == other.TransferBufferMDL && self.UrbLink == other.UrbLink && self.hca == other.hca && self.SetupPacket == other.SetupPacket |
| } |
| } |
| impl ::core::cmp::Eq for _URB_CONTROL_TRANSFER {} |
| impl ::core::default::Default for _URB_CONTROL_TRANSFER { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C)] |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub struct _URB_CONTROL_TRANSFER_EX { |
| pub Hdr: _URB_HEADER, |
| pub PipeHandle: *mut ::core::ffi::c_void, |
| pub TransferFlags: u32, |
| pub TransferBufferLength: u32, |
| pub TransferBuffer: *mut ::core::ffi::c_void, |
| pub TransferBufferMDL: *mut ::core::ffi::c_void, |
| pub Timeout: u32, |
| pub hca: _URB_HCD_AREA, |
| pub SetupPacket: [u8; 8], |
| } |
| impl ::core::marker::Copy for _URB_CONTROL_TRANSFER_EX {} |
| impl ::core::clone::Clone for _URB_CONTROL_TRANSFER_EX { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::core::fmt::Debug for _URB_CONTROL_TRANSFER_EX { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_struct("_URB_CONTROL_TRANSFER_EX").field("Hdr", &self.Hdr).field("PipeHandle", &self.PipeHandle).field("TransferFlags", &self.TransferFlags).field("TransferBufferLength", &self.TransferBufferLength).field("TransferBuffer", &self.TransferBuffer).field("TransferBufferMDL", &self.TransferBufferMDL).field("Timeout", &self.Timeout).field("hca", &self.hca).field("SetupPacket", &self.SetupPacket).finish() |
| } |
| } |
| impl ::windows::core::TypeKind for _URB_CONTROL_TRANSFER_EX { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::cmp::PartialEq for _URB_CONTROL_TRANSFER_EX { |
| fn eq(&self, other: &Self) -> bool { |
| self.Hdr == other.Hdr && self.PipeHandle == other.PipeHandle && self.TransferFlags == other.TransferFlags && self.TransferBufferLength == other.TransferBufferLength && self.TransferBuffer == other.TransferBuffer && self.TransferBufferMDL == other.TransferBufferMDL && self.Timeout == other.Timeout && self.hca == other.hca && self.SetupPacket == other.SetupPacket |
| } |
| } |
| impl ::core::cmp::Eq for _URB_CONTROL_TRANSFER_EX {} |
| impl ::core::default::Default for _URB_CONTROL_TRANSFER_EX { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C)] |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub struct _URB_CONTROL_VENDOR_OR_CLASS_REQUEST { |
| pub Hdr: _URB_HEADER, |
| pub Reserved: *mut ::core::ffi::c_void, |
| pub TransferFlags: u32, |
| pub TransferBufferLength: u32, |
| pub TransferBuffer: *mut ::core::ffi::c_void, |
| pub TransferBufferMDL: *mut ::core::ffi::c_void, |
| pub UrbLink: *mut URB, |
| pub hca: _URB_HCD_AREA, |
| pub RequestTypeReservedBits: u8, |
| pub Request: u8, |
| pub Value: u16, |
| pub Index: u16, |
| pub Reserved1: u16, |
| } |
| impl ::core::marker::Copy for _URB_CONTROL_VENDOR_OR_CLASS_REQUEST {} |
| impl ::core::clone::Clone for _URB_CONTROL_VENDOR_OR_CLASS_REQUEST { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::core::fmt::Debug for _URB_CONTROL_VENDOR_OR_CLASS_REQUEST { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_struct("_URB_CONTROL_VENDOR_OR_CLASS_REQUEST") |
| .field("Hdr", &self.Hdr) |
| .field("Reserved", &self.Reserved) |
| .field("TransferFlags", &self.TransferFlags) |
| .field("TransferBufferLength", &self.TransferBufferLength) |
| .field("TransferBuffer", &self.TransferBuffer) |
| .field("TransferBufferMDL", &self.TransferBufferMDL) |
| .field("UrbLink", &self.UrbLink) |
| .field("hca", &self.hca) |
| .field("RequestTypeReservedBits", &self.RequestTypeReservedBits) |
| .field("Request", &self.Request) |
| .field("Value", &self.Value) |
| .field("Index", &self.Index) |
| .field("Reserved1", &self.Reserved1) |
| .finish() |
| } |
| } |
| impl ::windows::core::TypeKind for _URB_CONTROL_VENDOR_OR_CLASS_REQUEST { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::cmp::PartialEq for _URB_CONTROL_VENDOR_OR_CLASS_REQUEST { |
| fn eq(&self, other: &Self) -> bool { |
| self.Hdr == other.Hdr && self.Reserved == other.Reserved && self.TransferFlags == other.TransferFlags && self.TransferBufferLength == other.TransferBufferLength && self.TransferBuffer == other.TransferBuffer && self.TransferBufferMDL == other.TransferBufferMDL && self.UrbLink == other.UrbLink && self.hca == other.hca && self.RequestTypeReservedBits == other.RequestTypeReservedBits && self.Request == other.Request && self.Value == other.Value && self.Index == other.Index && self.Reserved1 == other.Reserved1 |
| } |
| } |
| impl ::core::cmp::Eq for _URB_CONTROL_VENDOR_OR_CLASS_REQUEST {} |
| impl ::core::default::Default for _URB_CONTROL_VENDOR_OR_CLASS_REQUEST { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C)] |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub struct _URB_FRAME_LENGTH_CONTROL { |
| pub Hdr: _URB_HEADER, |
| } |
| impl ::core::marker::Copy for _URB_FRAME_LENGTH_CONTROL {} |
| impl ::core::clone::Clone for _URB_FRAME_LENGTH_CONTROL { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::core::fmt::Debug for _URB_FRAME_LENGTH_CONTROL { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_struct("_URB_FRAME_LENGTH_CONTROL").field("Hdr", &self.Hdr).finish() |
| } |
| } |
| impl ::windows::core::TypeKind for _URB_FRAME_LENGTH_CONTROL { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::cmp::PartialEq for _URB_FRAME_LENGTH_CONTROL { |
| fn eq(&self, other: &Self) -> bool { |
| self.Hdr == other.Hdr |
| } |
| } |
| impl ::core::cmp::Eq for _URB_FRAME_LENGTH_CONTROL {} |
| impl ::core::default::Default for _URB_FRAME_LENGTH_CONTROL { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C)] |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub struct _URB_GET_CURRENT_FRAME_NUMBER { |
| pub Hdr: _URB_HEADER, |
| pub FrameNumber: u32, |
| } |
| impl ::core::marker::Copy for _URB_GET_CURRENT_FRAME_NUMBER {} |
| impl ::core::clone::Clone for _URB_GET_CURRENT_FRAME_NUMBER { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::core::fmt::Debug for _URB_GET_CURRENT_FRAME_NUMBER { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_struct("_URB_GET_CURRENT_FRAME_NUMBER").field("Hdr", &self.Hdr).field("FrameNumber", &self.FrameNumber).finish() |
| } |
| } |
| impl ::windows::core::TypeKind for _URB_GET_CURRENT_FRAME_NUMBER { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::cmp::PartialEq for _URB_GET_CURRENT_FRAME_NUMBER { |
| fn eq(&self, other: &Self) -> bool { |
| self.Hdr == other.Hdr && self.FrameNumber == other.FrameNumber |
| } |
| } |
| impl ::core::cmp::Eq for _URB_GET_CURRENT_FRAME_NUMBER {} |
| impl ::core::default::Default for _URB_GET_CURRENT_FRAME_NUMBER { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C)] |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub struct _URB_GET_FRAME_LENGTH { |
| pub Hdr: _URB_HEADER, |
| pub FrameLength: u32, |
| pub FrameNumber: u32, |
| } |
| impl ::core::marker::Copy for _URB_GET_FRAME_LENGTH {} |
| impl ::core::clone::Clone for _URB_GET_FRAME_LENGTH { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::core::fmt::Debug for _URB_GET_FRAME_LENGTH { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_struct("_URB_GET_FRAME_LENGTH").field("Hdr", &self.Hdr).field("FrameLength", &self.FrameLength).field("FrameNumber", &self.FrameNumber).finish() |
| } |
| } |
| impl ::windows::core::TypeKind for _URB_GET_FRAME_LENGTH { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::cmp::PartialEq for _URB_GET_FRAME_LENGTH { |
| fn eq(&self, other: &Self) -> bool { |
| self.Hdr == other.Hdr && self.FrameLength == other.FrameLength && self.FrameNumber == other.FrameNumber |
| } |
| } |
| impl ::core::cmp::Eq for _URB_GET_FRAME_LENGTH {} |
| impl ::core::default::Default for _URB_GET_FRAME_LENGTH { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C)] |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub struct _URB_GET_ISOCH_PIPE_TRANSFER_PATH_DELAYS { |
| pub Hdr: _URB_HEADER, |
| pub PipeHandle: *mut ::core::ffi::c_void, |
| pub MaximumSendPathDelayInMilliSeconds: u32, |
| pub MaximumCompletionPathDelayInMilliSeconds: u32, |
| } |
| impl ::core::marker::Copy for _URB_GET_ISOCH_PIPE_TRANSFER_PATH_DELAYS {} |
| impl ::core::clone::Clone for _URB_GET_ISOCH_PIPE_TRANSFER_PATH_DELAYS { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::core::fmt::Debug for _URB_GET_ISOCH_PIPE_TRANSFER_PATH_DELAYS { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_struct("_URB_GET_ISOCH_PIPE_TRANSFER_PATH_DELAYS").field("Hdr", &self.Hdr).field("PipeHandle", &self.PipeHandle).field("MaximumSendPathDelayInMilliSeconds", &self.MaximumSendPathDelayInMilliSeconds).field("MaximumCompletionPathDelayInMilliSeconds", &self.MaximumCompletionPathDelayInMilliSeconds).finish() |
| } |
| } |
| impl ::windows::core::TypeKind for _URB_GET_ISOCH_PIPE_TRANSFER_PATH_DELAYS { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::cmp::PartialEq for _URB_GET_ISOCH_PIPE_TRANSFER_PATH_DELAYS { |
| fn eq(&self, other: &Self) -> bool { |
| self.Hdr == other.Hdr && self.PipeHandle == other.PipeHandle && self.MaximumSendPathDelayInMilliSeconds == other.MaximumSendPathDelayInMilliSeconds && self.MaximumCompletionPathDelayInMilliSeconds == other.MaximumCompletionPathDelayInMilliSeconds |
| } |
| } |
| impl ::core::cmp::Eq for _URB_GET_ISOCH_PIPE_TRANSFER_PATH_DELAYS {} |
| impl ::core::default::Default for _URB_GET_ISOCH_PIPE_TRANSFER_PATH_DELAYS { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C)] |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub struct _URB_HCD_AREA { |
| pub Reserved8: [*mut ::core::ffi::c_void; 8], |
| } |
| impl ::core::marker::Copy for _URB_HCD_AREA {} |
| impl ::core::clone::Clone for _URB_HCD_AREA { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::core::fmt::Debug for _URB_HCD_AREA { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_struct("_URB_HCD_AREA").field("Reserved8", &self.Reserved8).finish() |
| } |
| } |
| impl ::windows::core::TypeKind for _URB_HCD_AREA { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::cmp::PartialEq for _URB_HCD_AREA { |
| fn eq(&self, other: &Self) -> bool { |
| self.Reserved8 == other.Reserved8 |
| } |
| } |
| impl ::core::cmp::Eq for _URB_HCD_AREA {} |
| impl ::core::default::Default for _URB_HCD_AREA { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C)] |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub struct _URB_HEADER { |
| pub Length: u16, |
| pub Function: u16, |
| pub Status: i32, |
| pub UsbdDeviceHandle: *mut ::core::ffi::c_void, |
| pub UsbdFlags: u32, |
| } |
| impl ::core::marker::Copy for _URB_HEADER {} |
| impl ::core::clone::Clone for _URB_HEADER { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::core::fmt::Debug for _URB_HEADER { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_struct("_URB_HEADER").field("Length", &self.Length).field("Function", &self.Function).field("Status", &self.Status).field("UsbdDeviceHandle", &self.UsbdDeviceHandle).field("UsbdFlags", &self.UsbdFlags).finish() |
| } |
| } |
| impl ::windows::core::TypeKind for _URB_HEADER { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::cmp::PartialEq for _URB_HEADER { |
| fn eq(&self, other: &Self) -> bool { |
| self.Length == other.Length && self.Function == other.Function && self.Status == other.Status && self.UsbdDeviceHandle == other.UsbdDeviceHandle && self.UsbdFlags == other.UsbdFlags |
| } |
| } |
| impl ::core::cmp::Eq for _URB_HEADER {} |
| impl ::core::default::Default for _URB_HEADER { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C)] |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub struct _URB_ISOCH_TRANSFER { |
| pub Hdr: _URB_HEADER, |
| pub PipeHandle: *mut ::core::ffi::c_void, |
| pub TransferFlags: u32, |
| pub TransferBufferLength: u32, |
| pub TransferBuffer: *mut ::core::ffi::c_void, |
| pub TransferBufferMDL: *mut ::core::ffi::c_void, |
| pub UrbLink: *mut URB, |
| pub hca: _URB_HCD_AREA, |
| pub StartFrame: u32, |
| pub NumberOfPackets: u32, |
| pub ErrorCount: u32, |
| pub IsoPacket: [USBD_ISO_PACKET_DESCRIPTOR; 1], |
| } |
| impl ::core::marker::Copy for _URB_ISOCH_TRANSFER {} |
| impl ::core::clone::Clone for _URB_ISOCH_TRANSFER { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::core::fmt::Debug for _URB_ISOCH_TRANSFER { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_struct("_URB_ISOCH_TRANSFER") |
| .field("Hdr", &self.Hdr) |
| .field("PipeHandle", &self.PipeHandle) |
| .field("TransferFlags", &self.TransferFlags) |
| .field("TransferBufferLength", &self.TransferBufferLength) |
| .field("TransferBuffer", &self.TransferBuffer) |
| .field("TransferBufferMDL", &self.TransferBufferMDL) |
| .field("UrbLink", &self.UrbLink) |
| .field("hca", &self.hca) |
| .field("StartFrame", &self.StartFrame) |
| .field("NumberOfPackets", &self.NumberOfPackets) |
| .field("ErrorCount", &self.ErrorCount) |
| .field("IsoPacket", &self.IsoPacket) |
| .finish() |
| } |
| } |
| impl ::windows::core::TypeKind for _URB_ISOCH_TRANSFER { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::cmp::PartialEq for _URB_ISOCH_TRANSFER { |
| fn eq(&self, other: &Self) -> bool { |
| self.Hdr == other.Hdr && self.PipeHandle == other.PipeHandle && self.TransferFlags == other.TransferFlags && self.TransferBufferLength == other.TransferBufferLength && self.TransferBuffer == other.TransferBuffer && self.TransferBufferMDL == other.TransferBufferMDL && self.UrbLink == other.UrbLink && self.hca == other.hca && self.StartFrame == other.StartFrame && self.NumberOfPackets == other.NumberOfPackets && self.ErrorCount == other.ErrorCount && self.IsoPacket == other.IsoPacket |
| } |
| } |
| impl ::core::cmp::Eq for _URB_ISOCH_TRANSFER {} |
| impl ::core::default::Default for _URB_ISOCH_TRANSFER { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C)] |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub struct _URB_OPEN_STATIC_STREAMS { |
| pub Hdr: _URB_HEADER, |
| pub PipeHandle: *mut ::core::ffi::c_void, |
| pub NumberOfStreams: u32, |
| pub StreamInfoVersion: u16, |
| pub StreamInfoSize: u16, |
| pub Streams: *mut USBD_STREAM_INFORMATION, |
| } |
| impl ::core::marker::Copy for _URB_OPEN_STATIC_STREAMS {} |
| impl ::core::clone::Clone for _URB_OPEN_STATIC_STREAMS { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::core::fmt::Debug for _URB_OPEN_STATIC_STREAMS { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_struct("_URB_OPEN_STATIC_STREAMS").field("Hdr", &self.Hdr).field("PipeHandle", &self.PipeHandle).field("NumberOfStreams", &self.NumberOfStreams).field("StreamInfoVersion", &self.StreamInfoVersion).field("StreamInfoSize", &self.StreamInfoSize).field("Streams", &self.Streams).finish() |
| } |
| } |
| impl ::windows::core::TypeKind for _URB_OPEN_STATIC_STREAMS { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::cmp::PartialEq for _URB_OPEN_STATIC_STREAMS { |
| fn eq(&self, other: &Self) -> bool { |
| self.Hdr == other.Hdr && self.PipeHandle == other.PipeHandle && self.NumberOfStreams == other.NumberOfStreams && self.StreamInfoVersion == other.StreamInfoVersion && self.StreamInfoSize == other.StreamInfoSize && self.Streams == other.Streams |
| } |
| } |
| impl ::core::cmp::Eq for _URB_OPEN_STATIC_STREAMS {} |
| impl ::core::default::Default for _URB_OPEN_STATIC_STREAMS { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C)] |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub struct _URB_OS_FEATURE_DESCRIPTOR_REQUEST { |
| pub Hdr: _URB_HEADER, |
| pub Reserved: *mut ::core::ffi::c_void, |
| pub Reserved0: u32, |
| pub TransferBufferLength: u32, |
| pub TransferBuffer: *mut ::core::ffi::c_void, |
| pub TransferBufferMDL: *mut ::core::ffi::c_void, |
| pub UrbLink: *mut URB, |
| pub hca: _URB_HCD_AREA, |
| pub _bitfield: u8, |
| pub Reserved2: u8, |
| pub InterfaceNumber: u8, |
| pub MS_PageIndex: u8, |
| pub MS_FeatureDescriptorIndex: u16, |
| pub Reserved3: u16, |
| } |
| impl ::core::marker::Copy for _URB_OS_FEATURE_DESCRIPTOR_REQUEST {} |
| impl ::core::clone::Clone for _URB_OS_FEATURE_DESCRIPTOR_REQUEST { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::core::fmt::Debug for _URB_OS_FEATURE_DESCRIPTOR_REQUEST { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_struct("_URB_OS_FEATURE_DESCRIPTOR_REQUEST") |
| .field("Hdr", &self.Hdr) |
| .field("Reserved", &self.Reserved) |
| .field("Reserved0", &self.Reserved0) |
| .field("TransferBufferLength", &self.TransferBufferLength) |
| .field("TransferBuffer", &self.TransferBuffer) |
| .field("TransferBufferMDL", &self.TransferBufferMDL) |
| .field("UrbLink", &self.UrbLink) |
| .field("hca", &self.hca) |
| .field("_bitfield", &self._bitfield) |
| .field("Reserved2", &self.Reserved2) |
| .field("InterfaceNumber", &self.InterfaceNumber) |
| .field("MS_PageIndex", &self.MS_PageIndex) |
| .field("MS_FeatureDescriptorIndex", &self.MS_FeatureDescriptorIndex) |
| .field("Reserved3", &self.Reserved3) |
| .finish() |
| } |
| } |
| impl ::windows::core::TypeKind for _URB_OS_FEATURE_DESCRIPTOR_REQUEST { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::cmp::PartialEq for _URB_OS_FEATURE_DESCRIPTOR_REQUEST { |
| fn eq(&self, other: &Self) -> bool { |
| self.Hdr == other.Hdr && self.Reserved == other.Reserved && self.Reserved0 == other.Reserved0 && self.TransferBufferLength == other.TransferBufferLength && self.TransferBuffer == other.TransferBuffer && self.TransferBufferMDL == other.TransferBufferMDL && self.UrbLink == other.UrbLink && self.hca == other.hca && self._bitfield == other._bitfield && self.Reserved2 == other.Reserved2 && self.InterfaceNumber == other.InterfaceNumber && self.MS_PageIndex == other.MS_PageIndex && self.MS_FeatureDescriptorIndex == other.MS_FeatureDescriptorIndex && self.Reserved3 == other.Reserved3 |
| } |
| } |
| impl ::core::cmp::Eq for _URB_OS_FEATURE_DESCRIPTOR_REQUEST {} |
| impl ::core::default::Default for _URB_OS_FEATURE_DESCRIPTOR_REQUEST { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C)] |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub struct _URB_PIPE_REQUEST { |
| pub Hdr: _URB_HEADER, |
| pub PipeHandle: *mut ::core::ffi::c_void, |
| pub Reserved: u32, |
| } |
| impl ::core::marker::Copy for _URB_PIPE_REQUEST {} |
| impl ::core::clone::Clone for _URB_PIPE_REQUEST { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::core::fmt::Debug for _URB_PIPE_REQUEST { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_struct("_URB_PIPE_REQUEST").field("Hdr", &self.Hdr).field("PipeHandle", &self.PipeHandle).field("Reserved", &self.Reserved).finish() |
| } |
| } |
| impl ::windows::core::TypeKind for _URB_PIPE_REQUEST { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::cmp::PartialEq for _URB_PIPE_REQUEST { |
| fn eq(&self, other: &Self) -> bool { |
| self.Hdr == other.Hdr && self.PipeHandle == other.PipeHandle && self.Reserved == other.Reserved |
| } |
| } |
| impl ::core::cmp::Eq for _URB_PIPE_REQUEST {} |
| impl ::core::default::Default for _URB_PIPE_REQUEST { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C)] |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub struct _URB_SELECT_CONFIGURATION { |
| pub Hdr: _URB_HEADER, |
| pub ConfigurationDescriptor: *mut USB_CONFIGURATION_DESCRIPTOR, |
| pub ConfigurationHandle: *mut ::core::ffi::c_void, |
| pub Interface: USBD_INTERFACE_INFORMATION, |
| } |
| impl ::core::marker::Copy for _URB_SELECT_CONFIGURATION {} |
| impl ::core::clone::Clone for _URB_SELECT_CONFIGURATION { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::core::fmt::Debug for _URB_SELECT_CONFIGURATION { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_struct("_URB_SELECT_CONFIGURATION").field("Hdr", &self.Hdr).field("ConfigurationDescriptor", &self.ConfigurationDescriptor).field("ConfigurationHandle", &self.ConfigurationHandle).field("Interface", &self.Interface).finish() |
| } |
| } |
| impl ::windows::core::TypeKind for _URB_SELECT_CONFIGURATION { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::cmp::PartialEq for _URB_SELECT_CONFIGURATION { |
| fn eq(&self, other: &Self) -> bool { |
| self.Hdr == other.Hdr && self.ConfigurationDescriptor == other.ConfigurationDescriptor && self.ConfigurationHandle == other.ConfigurationHandle && self.Interface == other.Interface |
| } |
| } |
| impl ::core::cmp::Eq for _URB_SELECT_CONFIGURATION {} |
| impl ::core::default::Default for _URB_SELECT_CONFIGURATION { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C)] |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub struct _URB_SELECT_INTERFACE { |
| pub Hdr: _URB_HEADER, |
| pub ConfigurationHandle: *mut ::core::ffi::c_void, |
| pub Interface: USBD_INTERFACE_INFORMATION, |
| } |
| impl ::core::marker::Copy for _URB_SELECT_INTERFACE {} |
| impl ::core::clone::Clone for _URB_SELECT_INTERFACE { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::core::fmt::Debug for _URB_SELECT_INTERFACE { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_struct("_URB_SELECT_INTERFACE").field("Hdr", &self.Hdr).field("ConfigurationHandle", &self.ConfigurationHandle).field("Interface", &self.Interface).finish() |
| } |
| } |
| impl ::windows::core::TypeKind for _URB_SELECT_INTERFACE { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::cmp::PartialEq for _URB_SELECT_INTERFACE { |
| fn eq(&self, other: &Self) -> bool { |
| self.Hdr == other.Hdr && self.ConfigurationHandle == other.ConfigurationHandle && self.Interface == other.Interface |
| } |
| } |
| impl ::core::cmp::Eq for _URB_SELECT_INTERFACE {} |
| impl ::core::default::Default for _URB_SELECT_INTERFACE { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C)] |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub struct _URB_SET_FRAME_LENGTH { |
| pub Hdr: _URB_HEADER, |
| pub FrameLengthDelta: i32, |
| } |
| impl ::core::marker::Copy for _URB_SET_FRAME_LENGTH {} |
| impl ::core::clone::Clone for _URB_SET_FRAME_LENGTH { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::core::fmt::Debug for _URB_SET_FRAME_LENGTH { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_struct("_URB_SET_FRAME_LENGTH").field("Hdr", &self.Hdr).field("FrameLengthDelta", &self.FrameLengthDelta).finish() |
| } |
| } |
| impl ::windows::core::TypeKind for _URB_SET_FRAME_LENGTH { |
| type TypeKind = ::windows::core::CopyType; |
| } |
| impl ::core::cmp::PartialEq for _URB_SET_FRAME_LENGTH { |
| fn eq(&self, other: &Self) -> bool { |
| self.Hdr == other.Hdr && self.FrameLengthDelta == other.FrameLengthDelta |
| } |
| } |
| impl ::core::cmp::Eq for _URB_SET_FRAME_LENGTH {} |
| impl ::core::default::Default for _URB_SET_FRAME_LENGTH { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[doc = "*Required features: `\"Win32_Devices_Usb\"`*"] |
| pub type USB_IDLE_CALLBACK = ::core::option::Option<unsafe extern "system" fn(context: *const ::core::ffi::c_void) -> ()>; |
| #[cfg(feature = "implement")] |
| ::core::include!("impl.rs"); |