Revision control

Copy as Markdown

Other Tools

#[cfg(feature = "Win32_Foundation")]
::windows_targets::link!("winusb.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn WinUsb_AbortPipe(interfacehandle : WINUSB_INTERFACE_HANDLE, pipeid : u8) -> super::super::Foundation:: BOOL);
#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_IO"))]
::windows_targets::link!("winusb.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`, `\"Win32_System_IO\"`"] 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);
#[cfg(feature = "Win32_Foundation")]
::windows_targets::link!("winusb.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn WinUsb_FlushPipe(interfacehandle : WINUSB_INTERFACE_HANDLE, pipeid : u8) -> super::super::Foundation:: BOOL);
#[cfg(feature = "Win32_Foundation")]
::windows_targets::link!("winusb.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn WinUsb_Free(interfacehandle : WINUSB_INTERFACE_HANDLE) -> super::super::Foundation:: BOOL);
#[cfg(feature = "Win32_Foundation")]
::windows_targets::link!("winusb.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn WinUsb_GetAdjustedFrameNumber(currentframenumber : *mut u32, timestamp : i64) -> super::super::Foundation:: BOOL);
#[cfg(feature = "Win32_Foundation")]
::windows_targets::link!("winusb.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn WinUsb_GetAssociatedInterface(interfacehandle : WINUSB_INTERFACE_HANDLE, associatedinterfaceindex : u8, associatedinterfacehandle : *mut WINUSB_INTERFACE_HANDLE) -> super::super::Foundation:: BOOL);
#[cfg(feature = "Win32_Foundation")]
::windows_targets::link!("winusb.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn WinUsb_GetCurrentAlternateSetting(interfacehandle : WINUSB_INTERFACE_HANDLE, settingnumber : *mut u8) -> super::super::Foundation:: BOOL);
#[cfg(feature = "Win32_Foundation")]
::windows_targets::link!("winusb.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn WinUsb_GetCurrentFrameNumber(interfacehandle : WINUSB_INTERFACE_HANDLE, currentframenumber : *mut u32, timestamp : *mut i64) -> super::super::Foundation:: BOOL);
#[cfg(feature = "Win32_Foundation")]
::windows_targets::link!("winusb.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn WinUsb_GetCurrentFrameNumberAndQpc(interfacehandle : WINUSB_INTERFACE_HANDLE, frameqpcinfo : *const USB_FRAME_NUMBER_AND_QPC_FOR_TIME_SYNC_INFORMATION) -> super::super::Foundation:: BOOL);
#[cfg(feature = "Win32_Foundation")]
::windows_targets::link!("winusb.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] 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);
#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_IO"))]
::windows_targets::link!("winusb.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`, `\"Win32_System_IO\"`"] 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);
#[cfg(feature = "Win32_Foundation")]
::windows_targets::link!("winusb.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] 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);
#[cfg(feature = "Win32_Foundation")]
::windows_targets::link!("winusb.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn WinUsb_GetPowerPolicy(interfacehandle : WINUSB_INTERFACE_HANDLE, policytype : WINUSB_POWER_POLICY, valuelength : *mut u32, value : *mut ::core::ffi::c_void) -> super::super::Foundation:: BOOL);
#[cfg(feature = "Win32_Foundation")]
::windows_targets::link!("winusb.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn WinUsb_Initialize(devicehandle : super::super::Foundation:: HANDLE, interfacehandle : *mut WINUSB_INTERFACE_HANDLE) -> super::super::Foundation:: BOOL);
::windows_targets::link!("winusb.dll" "system" fn WinUsb_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_ParseDescriptors(descriptorbuffer : *const ::core::ffi::c_void, totallength : u32, startposition : *const ::core::ffi::c_void, descriptortype : i32) -> *mut USB_COMMON_DESCRIPTOR);
#[cfg(feature = "Win32_Foundation")]
::windows_targets::link!("winusb.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn WinUsb_QueryDeviceInformation(interfacehandle : WINUSB_INTERFACE_HANDLE, informationtype : u32, bufferlength : *mut u32, buffer : *mut ::core::ffi::c_void) -> super::super::Foundation:: BOOL);
#[cfg(feature = "Win32_Foundation")]
::windows_targets::link!("winusb.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn WinUsb_QueryInterfaceSettings(interfacehandle : WINUSB_INTERFACE_HANDLE, alternateinterfacenumber : u8, usbaltinterfacedescriptor : *mut USB_INTERFACE_DESCRIPTOR) -> super::super::Foundation:: BOOL);
#[cfg(feature = "Win32_Foundation")]
::windows_targets::link!("winusb.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn WinUsb_QueryPipe(interfacehandle : WINUSB_INTERFACE_HANDLE, alternateinterfacenumber : u8, pipeindex : u8, pipeinformation : *mut WINUSB_PIPE_INFORMATION) -> super::super::Foundation:: BOOL);
#[cfg(feature = "Win32_Foundation")]
::windows_targets::link!("winusb.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn WinUsb_QueryPipeEx(interfacehandle : WINUSB_INTERFACE_HANDLE, alternatesettingnumber : u8, pipeindex : u8, pipeinformationex : *mut WINUSB_PIPE_INFORMATION_EX) -> super::super::Foundation:: BOOL);
#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_IO"))]
::windows_targets::link!("winusb.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`, `\"Win32_System_IO\"`"] 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);
#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_IO"))]
::windows_targets::link!("winusb.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`, `\"Win32_System_IO\"`"] 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);
#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_IO"))]
::windows_targets::link!("winusb.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`, `\"Win32_System_IO\"`"] 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);
#[cfg(feature = "Win32_Foundation")]
::windows_targets::link!("winusb.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] 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);
#[cfg(feature = "Win32_Foundation")]
::windows_targets::link!("winusb.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn WinUsb_ResetPipe(interfacehandle : WINUSB_INTERFACE_HANDLE, pipeid : u8) -> super::super::Foundation:: BOOL);
#[cfg(feature = "Win32_Foundation")]
::windows_targets::link!("winusb.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn WinUsb_SetCurrentAlternateSetting(interfacehandle : WINUSB_INTERFACE_HANDLE, settingnumber : u8) -> super::super::Foundation:: BOOL);
#[cfg(feature = "Win32_Foundation")]
::windows_targets::link!("winusb.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] 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);
#[cfg(feature = "Win32_Foundation")]
::windows_targets::link!("winusb.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn WinUsb_SetPowerPolicy(interfacehandle : WINUSB_INTERFACE_HANDLE, policytype : WINUSB_POWER_POLICY, valuelength : u32, value : *const ::core::ffi::c_void) -> super::super::Foundation:: BOOL);
#[cfg(feature = "Win32_Foundation")]
::windows_targets::link!("winusb.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn WinUsb_StartTrackingForTimeSync(interfacehandle : WINUSB_INTERFACE_HANDLE, starttrackinginfo : *const USB_START_TRACKING_FOR_TIME_SYNC_INFORMATION) -> super::super::Foundation:: BOOL);
#[cfg(feature = "Win32_Foundation")]
::windows_targets::link!("winusb.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn WinUsb_StopTrackingForTimeSync(interfacehandle : WINUSB_INTERFACE_HANDLE, stoptrackinginfo : *const USB_STOP_TRACKING_FOR_TIME_SYNC_INFORMATION) -> super::super::Foundation:: BOOL);
#[cfg(feature = "Win32_Foundation")]
::windows_targets::link!("winusb.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn WinUsb_UnregisterIsochBuffer(isochbufferhandle : *const ::core::ffi::c_void) -> super::super::Foundation:: BOOL);
#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_IO"))]
::windows_targets::link!("winusb.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`, `\"Win32_System_IO\"`"] 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);
#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_IO"))]
::windows_targets::link!("winusb.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`, `\"Win32_System_IO\"`"] 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);
#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_IO"))]
::windows_targets::link!("winusb.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`, `\"Win32_System_IO\"`"] 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);
pub const ALLOW_PARTIAL_READS: WINUSB_PIPE_POLICY = 5u32;
pub const ALL_PIPE: PIPE_TYPE = 3i32;
pub const AUTO_CLEAR_STALL: WINUSB_PIPE_POLICY = 2u32;
pub const AUTO_FLUSH: WINUSB_PIPE_POLICY = 6u32;
pub const AUTO_SUSPEND: WINUSB_POWER_POLICY = 129u32;
pub const AcquireBusInfo: USB_NOTIFICATION_TYPE = 5i32;
pub const AcquireControllerName: USB_NOTIFICATION_TYPE = 7i32;
pub const AcquireHubName: USB_NOTIFICATION_TYPE = 6i32;
pub const BMREQUEST_CLASS: u32 = 1u32;
pub const BMREQUEST_DEVICE_TO_HOST: u32 = 1u32;
pub const BMREQUEST_HOST_TO_DEVICE: u32 = 0u32;
pub const BMREQUEST_STANDARD: u32 = 0u32;
pub const BMREQUEST_TO_DEVICE: u32 = 0u32;
pub const BMREQUEST_TO_ENDPOINT: u32 = 2u32;
pub const BMREQUEST_TO_INTERFACE: u32 = 1u32;
pub const BMREQUEST_TO_OTHER: u32 = 3u32;
pub const BMREQUEST_VENDOR: u32 = 2u32;
pub const BULKIN_FLAG: u32 = 128u32;
pub const CompositeDevice: USB_WMI_DEVICE_NODE_TYPE = 2i32;
pub const DEVICE_SPEED: u32 = 1u32;
pub const DeviceCausedOvercurrent: USB_CONNECTION_STATUS = 4i32;
pub const DeviceConnected: USB_CONNECTION_STATUS = 1i32;
pub const DeviceEnumerating: USB_CONNECTION_STATUS = 9i32;
pub const DeviceFailedEnumeration: USB_CONNECTION_STATUS = 2i32;
pub const DeviceGeneralFailure: USB_CONNECTION_STATUS = 3i32;
pub const DeviceHubNestedTooDeeply: USB_CONNECTION_STATUS = 7i32;
pub const DeviceInLegacyHub: USB_CONNECTION_STATUS = 8i32;
pub const DeviceNotEnoughBandwidth: USB_CONNECTION_STATUS = 6i32;
pub const DeviceNotEnoughPower: USB_CONNECTION_STATUS = 5i32;
pub const DeviceReset: USB_CONNECTION_STATUS = 10i32;
pub const EHCI_Generic: USB_CONTROLLER_FLAVOR = 1000i32;
pub const EHCI_Intel_Medfield: USB_CONTROLLER_FLAVOR = 5001i32;
pub const EHCI_Lucent: USB_CONTROLLER_FLAVOR = 3000i32;
pub const EHCI_NEC: USB_CONTROLLER_FLAVOR = 2000i32;
pub const EHCI_NVIDIA_Tegra2: USB_CONTROLLER_FLAVOR = 4000i32;
pub const EHCI_NVIDIA_Tegra3: USB_CONTROLLER_FLAVOR = 4001i32;
pub const EVENT_PIPE: PIPE_TYPE = 0i32;
pub const EnumerationFailure: USB_NOTIFICATION_TYPE = 0i32;
pub const FILE_DEVICE_USB: u32 = 34u32;
pub const FILE_DEVICE_USB_SCAN: u32 = 32768u32;
pub const FullSpeed: u32 = 2u32;
pub const GUID_DEVINTERFACE_USB_BILLBOARD: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x5e9adaef_f879_473f_b807_4e5ea77d1b1c);
pub const GUID_DEVINTERFACE_USB_DEVICE: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0xa5dcbf10_6530_11d2_901f_00c04fb951ed);
pub const GUID_DEVINTERFACE_USB_HOST_CONTROLLER: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x3abf6f2d_71c4_462a_8a92_1e6861e6af27);
pub const GUID_DEVINTERFACE_USB_HUB: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0xf18a0e88_c30c_11d0_8815_00a0c906bed8);
pub const GUID_USB_MSOS20_PLATFORM_CAPABILITY_ID: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0xd8dd60df_4589_4cc7_9cd2_659d9e648a9f);
pub const GUID_USB_PERFORMANCE_TRACING: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0xd5de77a6_6ae9_425c_b1e2_f5615fd348a9);
pub const GUID_USB_TRANSFER_TRACING: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x681eb8aa_403d_452c_9f8a_f0616fac9540);
pub const GUID_USB_WMI_DEVICE_PERF_INFO: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x66c1aa3c_499f_49a0_a9a5_61e2359f6407);
pub const GUID_USB_WMI_NODE_INFO: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x9c179357_dc7a_4f41_b66b_323b9ddcb5b1);
pub const GUID_USB_WMI_STD_DATA: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x4e623b20_cb14_11d1_b331_00a0c959bbd2);
pub const GUID_USB_WMI_STD_NOTIFICATION: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x4e623b20_cb14_11d1_b331_00a0c959bbd2);
pub const GUID_USB_WMI_SURPRISE_REMOVAL_NOTIFICATION: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x9bbbf831_a2f2_43b4_96d1_86944b5914b3);
pub const GUID_USB_WMI_TRACING: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x3a61881b_b4e6_4bf9_ae0f_3cd8f394e52f);
pub const HCD_DIAGNOSTIC_MODE_OFF: u32 = 257u32;
pub const HCD_DIAGNOSTIC_MODE_ON: u32 = 256u32;
pub const HCD_DISABLE_PORT: u32 = 268u32;
pub const HCD_ENABLE_PORT: u32 = 269u32;
pub const HCD_GET_DRIVERKEY_NAME: u32 = 265u32;
pub const HCD_GET_ROOT_HUB_NAME: u32 = 258u32;
pub const HCD_GET_STATS_1: u32 = 255u32;
pub const HCD_GET_STATS_2: u32 = 266u32;
pub const HCD_TRACE_READ_REQUEST: u32 = 275u32;
pub const HCD_USER_REQUEST: u32 = 270u32;
pub const HighSpeed: u32 = 3u32;
pub const HubDevice: USB_WMI_DEVICE_NODE_TYPE = 1i32;
pub const HubNestedTooDeeply: USB_NOTIFICATION_TYPE = 10i32;
pub const HubOvercurrent: USB_NOTIFICATION_TYPE = 8i32;
pub const HubPowerChange: USB_NOTIFICATION_TYPE = 9i32;
pub const IGNORE_SHORT_PACKETS: WINUSB_PIPE_POLICY = 4u32;
pub const IOCTL_ABORT_PIPE: u32 = 2147491844u32;
pub const IOCTL_CANCEL_IO: u32 = 2147491844u32;
pub const IOCTL_GENERICUSBFN_ACTIVATE_USB_BUS: u32 = 2277420u32;
pub const IOCTL_GENERICUSBFN_BUS_EVENT_NOTIFICATION: u32 = 2277430u32;
pub const IOCTL_GENERICUSBFN_CONTROL_STATUS_HANDSHAKE_IN: u32 = 2277400u32;
pub const IOCTL_GENERICUSBFN_CONTROL_STATUS_HANDSHAKE_OUT: u32 = 2277404u32;
pub const IOCTL_GENERICUSBFN_DEACTIVATE_USB_BUS: u32 = 2277424u32;
pub const IOCTL_GENERICUSBFN_GET_CLASS_INFO: u32 = 2277410u32;
pub const IOCTL_GENERICUSBFN_GET_CLASS_INFO_EX: u32 = 2277434u32;
pub const IOCTL_GENERICUSBFN_GET_INTERFACE_DESCRIPTOR_SET: u32 = 2277438u32;
pub const IOCTL_GENERICUSBFN_GET_PIPE_STATE: u32 = 2277414u32;
pub const IOCTL_GENERICUSBFN_REGISTER_USB_STRING: u32 = 2277441u32;
pub const IOCTL_GENERICUSBFN_SET_PIPE_STATE: u32 = 2277417u32;
pub const IOCTL_GENERICUSBFN_TRANSFER_IN: u32 = 2277389u32;
pub const IOCTL_GENERICUSBFN_TRANSFER_IN_APPEND_ZERO_PKT: u32 = 2277393u32;
pub const IOCTL_GENERICUSBFN_TRANSFER_OUT: u32 = 2277398u32;
pub const IOCTL_GET_CHANNEL_ALIGN_RQST: u32 = 2147491860u32;
pub const IOCTL_GET_DEVICE_DESCRIPTOR: u32 = 2147491864u32;
pub const IOCTL_GET_HCD_DRIVERKEY_NAME: u32 = 2229284u32;
pub const IOCTL_GET_PIPE_CONFIGURATION: u32 = 2147491880u32;
pub const IOCTL_GET_USB_DESCRIPTOR: u32 = 2147491872u32;
pub const IOCTL_GET_VERSION: u32 = 2147491840u32;
pub const IOCTL_INDEX: u32 = 2048u32;
pub const IOCTL_INTERNAL_USB_CYCLE_PORT: u32 = 2228255u32;
pub const IOCTL_INTERNAL_USB_ENABLE_PORT: u32 = 2228247u32;
pub const IOCTL_INTERNAL_USB_FAIL_GET_STATUS_FROM_DEVICE: u32 = 2229347u32;
pub const IOCTL_INTERNAL_USB_GET_BUSGUID_INFO: u32 = 2229288u32;
pub const IOCTL_INTERNAL_USB_GET_BUS_INFO: u32 = 2229280u32;
pub const IOCTL_INTERNAL_USB_GET_CONTROLLER_NAME: u32 = 2229284u32;
pub const IOCTL_INTERNAL_USB_GET_DEVICE_CONFIG_INFO: u32 = 2229327u32;
pub const IOCTL_INTERNAL_USB_GET_DEVICE_HANDLE: u32 = 2229299u32;
pub const IOCTL_INTERNAL_USB_GET_DEVICE_HANDLE_EX: u32 = 2229303u32;
pub const IOCTL_INTERNAL_USB_GET_HUB_COUNT: u32 = 2228251u32;
pub const IOCTL_INTERNAL_USB_GET_HUB_NAME: u32 = 2228256u32;
pub const IOCTL_INTERNAL_USB_GET_PARENT_HUB_INFO: u32 = 2229292u32;
pub const IOCTL_INTERNAL_USB_GET_PORT_STATUS: u32 = 2228243u32;
pub const IOCTL_INTERNAL_USB_GET_ROOTHUB_PDO: u32 = 2228239u32;
pub const IOCTL_INTERNAL_USB_GET_TOPOLOGY_ADDRESS: u32 = 2229311u32;
pub const IOCTL_INTERNAL_USB_GET_TT_DEVICE_HANDLE: u32 = 2229307u32;
pub const IOCTL_INTERNAL_USB_NOTIFY_IDLE_READY: u32 = 2229315u32;
pub const IOCTL_INTERNAL_USB_RECORD_FAILURE: u32 = 2228267u32;
pub const IOCTL_INTERNAL_USB_REGISTER_COMPOSITE_DEVICE: u32 = 4784131u32;
pub const IOCTL_INTERNAL_USB_REQUEST_REMOTE_WAKE_NOTIFICATION: u32 = 4784139u32;
pub const IOCTL_INTERNAL_USB_REQ_GLOBAL_RESUME: u32 = 2229323u32;
pub const IOCTL_INTERNAL_USB_REQ_GLOBAL_SUSPEND: u32 = 2229319u32;
pub const IOCTL_INTERNAL_USB_RESET_PORT: u32 = 2228231u32;
pub const IOCTL_INTERNAL_USB_SUBMIT_IDLE_NOTIFICATION: u32 = 2228263u32;
pub const IOCTL_INTERNAL_USB_SUBMIT_URB: u32 = 2228227u32;
pub const IOCTL_INTERNAL_USB_UNREGISTER_COMPOSITE_DEVICE: u32 = 4784135u32;
pub const IOCTL_READ_REGISTERS: u32 = 2147491852u32;
pub const IOCTL_RESET_PIPE: u32 = 2147491868u32;
pub const IOCTL_SEND_USB_REQUEST: u32 = 2147491876u32;
pub const IOCTL_SET_TIMEOUT: u32 = 2147491884u32;
pub const IOCTL_USB_DIAGNOSTIC_MODE_OFF: u32 = 2229252u32;
pub const IOCTL_USB_DIAGNOSTIC_MODE_ON: u32 = 2229248u32;
pub const IOCTL_USB_DIAG_IGNORE_HUBS_OFF: u32 = 2229276u32;
pub const IOCTL_USB_DIAG_IGNORE_HUBS_ON: u32 = 2229272u32;
pub const IOCTL_USB_GET_DESCRIPTOR_FROM_NODE_CONNECTION: u32 = 2229264u32;
pub const IOCTL_USB_GET_DEVICE_CHARACTERISTICS: u32 = 2229376u32;
pub const IOCTL_USB_GET_FRAME_NUMBER_AND_QPC_FOR_TIME_SYNC: u32 = 2229368u32;
pub const IOCTL_USB_GET_HUB_CAPABILITIES: u32 = 2229308u32;
pub const IOCTL_USB_GET_HUB_CAPABILITIES_EX: u32 = 2229328u32;
pub const IOCTL_USB_GET_HUB_INFORMATION_EX: u32 = 2229332u32;
pub const IOCTL_USB_GET_NODE_CONNECTION_ATTRIBUTES: u32 = 2229312u32;
pub const IOCTL_USB_GET_NODE_CONNECTION_DRIVERKEY_NAME: u32 = 2229280u32;
pub const IOCTL_USB_GET_NODE_CONNECTION_INFORMATION: u32 = 2229260u32;
pub const IOCTL_USB_GET_NODE_CONNECTION_INFORMATION_EX: u32 = 2229320u32;
pub const IOCTL_USB_GET_NODE_CONNECTION_INFORMATION_EX_V2: u32 = 2229340u32;
pub const IOCTL_USB_GET_NODE_CONNECTION_NAME: u32 = 2229268u32;
pub const IOCTL_USB_GET_NODE_INFORMATION: u32 = 2229256u32;
pub const IOCTL_USB_GET_PORT_CONNECTOR_PROPERTIES: u32 = 2229336u32;
pub const IOCTL_USB_GET_ROOT_HUB_NAME: u32 = 2229256u32;
pub const IOCTL_USB_GET_TRANSPORT_CHARACTERISTICS: u32 = 2229348u32;
pub const IOCTL_USB_HCD_DISABLE_PORT: u32 = 2229296u32;
pub const IOCTL_USB_HCD_ENABLE_PORT: u32 = 2229300u32;
pub const IOCTL_USB_HCD_GET_STATS_1: u32 = 2229244u32;
pub const IOCTL_USB_HCD_GET_STATS_2: u32 = 2229288u32;
pub const IOCTL_USB_HUB_CYCLE_PORT: u32 = 2229316u32;
pub const IOCTL_USB_NOTIFY_ON_TRANSPORT_CHARACTERISTICS_CHANGE: u32 = 2229356u32;
pub const IOCTL_USB_REGISTER_FOR_TRANSPORT_CHARACTERISTICS_CHANGE: u32 = 2229352u32;
pub const IOCTL_USB_RESET_HUB: u32 = 2229324u32;
pub const IOCTL_USB_START_TRACKING_FOR_TIME_SYNC: u32 = 2229364u32;
pub const IOCTL_USB_STOP_TRACKING_FOR_TIME_SYNC: u32 = 2229372u32;
pub const IOCTL_USB_UNREGISTER_FOR_TRANSPORT_CHARACTERISTICS_CHANGE: u32 = 2229360u32;
pub const IOCTL_WAIT_ON_DEVICE_EVENT: u32 = 2147491848u32;
pub const IOCTL_WRITE_REGISTERS: u32 = 2147491856u32;
pub const InsufficentBandwidth: USB_NOTIFICATION_TYPE = 1i32;
pub const InsufficentPower: USB_NOTIFICATION_TYPE = 2i32;
pub const KREGMANUSBFNENUMPATH: ::windows_sys::core::PCWSTR = ::windows_sys::core::w!("\\Registry\\Machine\\SYSTEM\\CurrentControlSet\\Control\\ManufacturingMode\\Current\\USBFN\\");
pub const KREGUSBFNENUMPATH: ::windows_sys::core::PCWSTR = ::windows_sys::core::w!("\\Registry\\Machine\\SYSTEM\\CurrentControlSet\\Control\\USBFN\\");
pub const LowSpeed: u32 = 1u32;
pub const MAXIMUM_TRANSFER_SIZE: WINUSB_PIPE_POLICY = 8u32;
pub const MAXIMUM_USB_STRING_LENGTH: u32 = 255u32;
pub const MAX_ALTERNATE_NAME_LENGTH: u32 = 40u32;
pub const MAX_ASSOCIATION_NAME_LENGTH: u32 = 40u32;
pub const MAX_CONFIGURATION_NAME_LENGTH: u32 = 40u32;
pub const MAX_INTERFACE_NAME_LENGTH: u32 = 40u32;
pub const MAX_NUM_PIPES: u32 = 8u32;
pub const MAX_NUM_USBFN_ENDPOINTS: u32 = 15u32;
pub const MAX_SUPPORTED_CONFIGURATIONS: u32 = 12u32;
pub const MAX_USB_STRING_LENGTH: u32 = 255u32;
pub const MS_GENRE_DESCRIPTOR_INDEX: u32 = 1u32;
pub const MS_OS_FLAGS_CONTAINERID: u32 = 2u32;
pub const MS_OS_STRING_SIGNATURE: ::windows_sys::core::PCWSTR = ::windows_sys::core::w!("MSFT100");
pub const MS_POWER_DESCRIPTOR_INDEX: u32 = 2u32;
pub const ModernDeviceInLegacyHub: USB_NOTIFICATION_TYPE = 11i32;
pub const NoDeviceConnected: USB_CONNECTION_STATUS = 0i32;
pub const OHCI_Generic: USB_CONTROLLER_FLAVOR = 100i32;
pub const OHCI_Hydra: USB_CONTROLLER_FLAVOR = 101i32;
pub const OHCI_NEC: USB_CONTROLLER_FLAVOR = 102i32;
pub const OS_STRING_DESCRIPTOR_INDEX: u32 = 238u32;
pub const OverCurrent: USB_NOTIFICATION_TYPE = 3i32;
pub const PIPE_TRANSFER_TIMEOUT: WINUSB_PIPE_POLICY = 3u32;
pub const PORT_LINK_STATE_COMPLIANCE_MODE: u32 = 10u32;
pub const PORT_LINK_STATE_DISABLED: u32 = 4u32;
pub const PORT_LINK_STATE_HOT_RESET: u32 = 9u32;
pub const PORT_LINK_STATE_INACTIVE: u32 = 6u32;
pub const PORT_LINK_STATE_LOOPBACK: u32 = 11u32;
pub const PORT_LINK_STATE_POLLING: u32 = 7u32;
pub const PORT_LINK_STATE_RECOVERY: u32 = 8u32;
pub const PORT_LINK_STATE_RX_DETECT: u32 = 5u32;
pub const PORT_LINK_STATE_TEST_MODE: u32 = 11u32;
pub const PORT_LINK_STATE_U0: u32 = 0u32;
pub const PORT_LINK_STATE_U1: u32 = 1u32;
pub const PORT_LINK_STATE_U2: u32 = 2u32;
pub const PORT_LINK_STATE_U3: u32 = 3u32;
pub const RAW_IO: WINUSB_PIPE_POLICY = 7u32;
pub const READ_DATA_PIPE: PIPE_TYPE = 1i32;
pub const RESET_PIPE_ON_RESUME: WINUSB_PIPE_POLICY = 9u32;
pub const ResetOvercurrent: USB_NOTIFICATION_TYPE = 4i32;
pub const SHORT_PACKET_TERMINATE: WINUSB_PIPE_POLICY = 1u32;
pub const SUSPEND_DELAY: WINUSB_POWER_POLICY = 131u32;
pub const UHCI_Generic: USB_CONTROLLER_FLAVOR = 200i32;
pub const UHCI_Ich1: USB_CONTROLLER_FLAVOR = 205i32;
pub const UHCI_Ich2: USB_CONTROLLER_FLAVOR = 203i32;
pub const UHCI_Ich3m: USB_CONTROLLER_FLAVOR = 206i32;
pub const UHCI_Ich4: USB_CONTROLLER_FLAVOR = 207i32;
pub const UHCI_Ich5: USB_CONTROLLER_FLAVOR = 208i32;
pub const UHCI_Ich6: USB_CONTROLLER_FLAVOR = 209i32;
pub const UHCI_Intel: USB_CONTROLLER_FLAVOR = 249i32;
pub const UHCI_Piix3: USB_CONTROLLER_FLAVOR = 202i32;
pub const UHCI_Piix4: USB_CONTROLLER_FLAVOR = 201i32;
pub const UHCI_Reserved204: USB_CONTROLLER_FLAVOR = 204i32;
pub const UHCI_VIA: USB_CONTROLLER_FLAVOR = 250i32;
pub const UHCI_VIA_x01: USB_CONTROLLER_FLAVOR = 251i32;
pub const UHCI_VIA_x02: USB_CONTROLLER_FLAVOR = 252i32;
pub const UHCI_VIA_x03: USB_CONTROLLER_FLAVOR = 253i32;
pub const UHCI_VIA_x04: USB_CONTROLLER_FLAVOR = 254i32;
pub const UHCI_VIA_x0E_FIFO: USB_CONTROLLER_FLAVOR = 264i32;
pub const URB_FUNCTION_ABORT_PIPE: u32 = 2u32;
pub const URB_FUNCTION_BULK_OR_INTERRUPT_TRANSFER: u32 = 9u32;
pub const URB_FUNCTION_BULK_OR_INTERRUPT_TRANSFER_USING_CHAINED_MDL: u32 = 55u32;
pub const URB_FUNCTION_CLASS_DEVICE: u32 = 26u32;
pub const URB_FUNCTION_CLASS_ENDPOINT: u32 = 28u32;
pub const URB_FUNCTION_CLASS_INTERFACE: u32 = 27u32;
pub const URB_FUNCTION_CLASS_OTHER: u32 = 31u32;
pub const URB_FUNCTION_CLEAR_FEATURE_TO_DEVICE: u32 = 16u32;
pub const URB_FUNCTION_CLEAR_FEATURE_TO_ENDPOINT: u32 = 18u32;
pub const URB_FUNCTION_CLEAR_FEATURE_TO_INTERFACE: u32 = 17u32;
pub const URB_FUNCTION_CLEAR_FEATURE_TO_OTHER: u32 = 34u32;
pub const URB_FUNCTION_CLOSE_STATIC_STREAMS: u32 = 54u32;
pub const URB_FUNCTION_CONTROL_TRANSFER: u32 = 8u32;
pub const URB_FUNCTION_CONTROL_TRANSFER_EX: u32 = 50u32;
pub const URB_FUNCTION_GET_CONFIGURATION: u32 = 38u32;
pub const URB_FUNCTION_GET_CURRENT_FRAME_NUMBER: u32 = 7u32;
pub const URB_FUNCTION_GET_DESCRIPTOR_FROM_DEVICE: u32 = 11u32;
pub const URB_FUNCTION_GET_DESCRIPTOR_FROM_ENDPOINT: u32 = 36u32;
pub const URB_FUNCTION_GET_DESCRIPTOR_FROM_INTERFACE: u32 = 40u32;
pub const URB_FUNCTION_GET_FRAME_LENGTH: u32 = 5u32;
pub const URB_FUNCTION_GET_INTERFACE: u32 = 39u32;
pub const URB_FUNCTION_GET_ISOCH_PIPE_TRANSFER_PATH_DELAYS: u32 = 61u32;
pub const URB_FUNCTION_GET_MS_FEATURE_DESCRIPTOR: u32 = 42u32;
pub const URB_FUNCTION_GET_STATUS_FROM_DEVICE: u32 = 19u32;
pub const URB_FUNCTION_GET_STATUS_FROM_ENDPOINT: u32 = 21u32;
pub const URB_FUNCTION_GET_STATUS_FROM_INTERFACE: u32 = 20u32;
pub const URB_FUNCTION_GET_STATUS_FROM_OTHER: u32 = 33u32;
pub const URB_FUNCTION_ISOCH_TRANSFER: u32 = 10u32;
pub const URB_FUNCTION_ISOCH_TRANSFER_USING_CHAINED_MDL: u32 = 56u32;
pub const URB_FUNCTION_OPEN_STATIC_STREAMS: u32 = 53u32;
pub const URB_FUNCTION_RELEASE_FRAME_LENGTH_CONTROL: u32 = 4u32;
pub const URB_FUNCTION_RESERVED_0X0016: u32 = 22u32;
pub const URB_FUNCTION_RESERVE_0X001D: u32 = 29u32;
pub const URB_FUNCTION_RESERVE_0X002B: u32 = 43u32;
pub const URB_FUNCTION_RESERVE_0X002C: u32 = 44u32;
pub const URB_FUNCTION_RESERVE_0X002D: u32 = 45u32;
pub const URB_FUNCTION_RESERVE_0X002E: u32 = 46u32;
pub const URB_FUNCTION_RESERVE_0X002F: u32 = 47u32;
pub const URB_FUNCTION_RESERVE_0X0033: u32 = 51u32;
pub const URB_FUNCTION_RESERVE_0X0034: u32 = 52u32;
pub const URB_FUNCTION_RESET_PIPE: u32 = 30u32;
pub const URB_FUNCTION_SELECT_CONFIGURATION: u32 = 0u32;
pub const URB_FUNCTION_SELECT_INTERFACE: u32 = 1u32;
pub const URB_FUNCTION_SET_DESCRIPTOR_TO_DEVICE: u32 = 12u32;
pub const URB_FUNCTION_SET_DESCRIPTOR_TO_ENDPOINT: u32 = 37u32;
pub const URB_FUNCTION_SET_DESCRIPTOR_TO_INTERFACE: u32 = 41u32;
pub const URB_FUNCTION_SET_FEATURE_TO_DEVICE: u32 = 13u32;
pub const URB_FUNCTION_SET_FEATURE_TO_ENDPOINT: u32 = 15u32;
pub const URB_FUNCTION_SET_FEATURE_TO_INTERFACE: u32 = 14u32;
pub const URB_FUNCTION_SET_FEATURE_TO_OTHER: u32 = 35u32;
pub const URB_FUNCTION_SET_FRAME_LENGTH: u32 = 6u32;
pub const URB_FUNCTION_SYNC_CLEAR_STALL: u32 = 49u32;
pub const URB_FUNCTION_SYNC_RESET_PIPE: u32 = 48u32;
pub const URB_FUNCTION_SYNC_RESET_PIPE_AND_CLEAR_STALL: u32 = 30u32;
pub const URB_FUNCTION_TAKE_FRAME_LENGTH_CONTROL: u32 = 3u32;
pub const URB_FUNCTION_VENDOR_DEVICE: u32 = 23u32;
pub const URB_FUNCTION_VENDOR_ENDPOINT: u32 = 25u32;
pub const URB_FUNCTION_VENDOR_INTERFACE: u32 = 24u32;
pub const URB_FUNCTION_VENDOR_OTHER: u32 = 32u32;
pub const URB_OPEN_STATIC_STREAMS_VERSION_100: u32 = 256u32;
pub const UREGMANUSBFNENUMPATH: ::windows_sys::core::PCWSTR = ::windows_sys::core::w!("HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Control\\ManufacturingMode\\Current\\USBFN\\");
pub const UREGUSBFNENUMPATH: ::windows_sys::core::PCWSTR = ::windows_sys::core::w!("HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Control\\USBFN\\");
pub const USBDI_VERSION: u32 = 1536u32;
pub const USBD_DEFAULT_MAXIMUM_TRANSFER_SIZE: u32 = 4294967295u32;
pub const USBD_DEFAULT_PIPE_TRANSFER: u32 = 8u32;
pub const USBD_ISO_START_FRAME_RANGE: u32 = 1024u32;
pub const USBD_PF_CHANGE_MAX_PACKET: u32 = 1u32;
pub const USBD_PF_ENABLE_RT_THREAD_ACCESS: u32 = 4u32;
pub const USBD_PF_HANDLES_SSP_HIGH_BANDWIDTH_ISOCH: u32 = 256u32;
pub const USBD_PF_INTERACTIVE_PRIORITY: u32 = 48u32;
pub const USBD_PF_MAP_ADD_TRANSFERS: u32 = 8u32;
pub const USBD_PF_PRIORITY_MASK: u32 = 240u32;
pub const USBD_PF_SHORT_PACKET_OPT: u32 = 2u32;
pub const USBD_PF_SSP_HIGH_BANDWIDTH_ISOCH: u32 = 65536u32;
pub const USBD_PF_VIDEO_PRIORITY: u32 = 16u32;
pub const USBD_PF_VOICE_PRIORITY: u32 = 32u32;
pub const USBD_PORT_CONNECTED: u32 = 2u32;
pub const USBD_PORT_ENABLED: u32 = 1u32;
pub const USBD_SHORT_TRANSFER_OK: u32 = 2u32;
pub const USBD_START_ISO_TRANSFER_ASAP: u32 = 4u32;
pub const USBD_TRANSFER_DIRECTION: u32 = 1u32;
pub const USBD_TRANSFER_DIRECTION_IN: u32 = 1u32;
pub const USBD_TRANSFER_DIRECTION_OUT: u32 = 0u32;
pub const USBFN_INTERRUPT_ENDPOINT_SIZE_NOT_UPDATEABLE_MASK: u32 = 128u32;
pub const USBSCAN_PIPE_BULK: RAW_PIPE_TYPE = 2i32;
pub const USBSCAN_PIPE_CONTROL: RAW_PIPE_TYPE = 0i32;
pub const USBSCAN_PIPE_INTERRUPT: RAW_PIPE_TYPE = 3i32;
pub const USBSCAN_PIPE_ISOCHRONOUS: RAW_PIPE_TYPE = 1i32;
pub const USBUSER_CLEAR_ROOTPORT_FEATURE: u32 = 536870918u32;
pub const USBUSER_GET_BANDWIDTH_INFORMATION: u32 = 5u32;
pub const USBUSER_GET_BUS_STATISTICS_0: u32 = 6u32;
pub const USBUSER_GET_CONTROLLER_DRIVER_KEY: u32 = 2u32;
pub const USBUSER_GET_CONTROLLER_INFO_0: u32 = 1u32;
pub const USBUSER_GET_POWER_STATE_MAP: u32 = 4u32;
pub const USBUSER_GET_ROOTHUB_SYMBOLIC_NAME: u32 = 7u32;
pub const USBUSER_GET_ROOTPORT_STATUS: u32 = 536870919u32;
pub const USBUSER_GET_USB2_HW_VERSION: u32 = 9u32;
pub const USBUSER_GET_USB_DRIVER_VERSION: u32 = 8u32;
pub const USBUSER_INVALID_REQUEST: u32 = 4294967280u32;
pub const USBUSER_OP_CLOSE_RAW_DEVICE: u32 = 536870915u32;
pub const USBUSER_OP_MASK_DEVONLY_API: u32 = 268435456u32;
pub const USBUSER_OP_MASK_HCTEST_API: u32 = 536870912u32;
pub const USBUSER_OP_OPEN_RAW_DEVICE: u32 = 536870914u32;
pub const USBUSER_OP_RAW_RESET_PORT: u32 = 536870913u32;
pub const USBUSER_OP_SEND_ONE_PACKET: u32 = 268435457u32;
pub const USBUSER_OP_SEND_RAW_COMMAND: u32 = 536870916u32;
pub const USBUSER_PASS_THRU: u32 = 3u32;
pub const USBUSER_SET_ROOTPORT_FEATURE: u32 = 536870917u32;
pub const USBUSER_USB_REFRESH_HCT_REG: u32 = 10u32;
pub const USBUSER_VERSION: u32 = 4u32;
pub const USB_20_ENDPOINT_TYPE_INTERRUPT_RESERVED_MASK: u32 = 252u32;
pub const USB_20_HUB_DESCRIPTOR_TYPE: u32 = 41u32;
pub const USB_30_ENDPOINT_TYPE_INTERRUPT_RESERVED_MASK: u32 = 204u32;
pub const USB_30_ENDPOINT_TYPE_INTERRUPT_USAGE_MASK: u32 = 48u32;
pub const USB_30_ENDPOINT_TYPE_INTERRUPT_USAGE_NOTIFICATION: u32 = 16u32;
pub const USB_30_ENDPOINT_TYPE_INTERRUPT_USAGE_PERIODIC: u32 = 0u32;
pub const USB_30_ENDPOINT_TYPE_INTERRUPT_USAGE_RESERVED10: u32 = 32u32;
pub const USB_30_ENDPOINT_TYPE_INTERRUPT_USAGE_RESERVED11: u32 = 48u32;
pub const USB_30_HUB_DESCRIPTOR_TYPE: u32 = 42u32;
pub const USB_ALLOW_FIRMWARE_UPDATE: u32 = 1u32;
pub const USB_BOS_DESCRIPTOR_TYPE: u32 = 15u32;
pub const USB_CHARGING_POLICY_DEFAULT: u32 = 0u32;
pub const USB_CHARGING_POLICY_ICCHPF: u32 = 1u32;
pub const USB_CHARGING_POLICY_ICCLPF: u32 = 2u32;
pub const USB_CHARGING_POLICY_NO_POWER: u32 = 3u32;
pub const USB_CONFIGURATION_DESCRIPTOR_TYPE: u32 = 2u32;
pub const USB_CONFIG_BUS_POWERED: u32 = 128u32;
pub const USB_CONFIG_POWERED_MASK: u32 = 192u32;
pub const USB_CONFIG_POWER_DESCRIPTOR_TYPE: u32 = 7u32;
pub const USB_CONFIG_REMOTE_WAKEUP: u32 = 32u32;
pub const USB_CONFIG_RESERVED: u32 = 31u32;
pub const USB_CONFIG_SELF_POWERED: u32 = 64u32;
pub const USB_CYCLE_PORT: u32 = 7u32;
pub const USB_DEBUG_DESCRIPTOR_TYPE: u32 = 10u32;
pub const USB_DEFAULT_DEVICE_ADDRESS: u32 = 0u32;
pub const USB_DEFAULT_ENDPOINT_ADDRESS: u32 = 0u32;
pub const USB_DEFAULT_MAX_PACKET: u32 = 64u32;
pub const USB_DEVICE_CAPABILITY_BATTERY_INFO: u32 = 7u32;
pub const USB_DEVICE_CAPABILITY_BILLBOARD: u32 = 13u32;
pub const USB_DEVICE_CAPABILITY_CONTAINER_ID: u32 = 4u32;
pub const USB_DEVICE_CAPABILITY_DESCRIPTOR_TYPE: u32 = 16u32;
pub const USB_DEVICE_CAPABILITY_FIRMWARE_STATUS: u32 = 17u32;
pub const USB_DEVICE_CAPABILITY_MAX_U1_LATENCY: u32 = 10u32;
pub const USB_DEVICE_CAPABILITY_MAX_U2_LATENCY: u32 = 2047u32;
pub const USB_DEVICE_CAPABILITY_PD_CONSUMER_PORT: u32 = 8u32;
pub const USB_DEVICE_CAPABILITY_PD_PROVIDER_PORT: u32 = 9u32;
pub const USB_DEVICE_CAPABILITY_PLATFORM: u32 = 5u32;
pub const USB_DEVICE_CAPABILITY_POWER_DELIVERY: u32 = 6u32;
pub const USB_DEVICE_CAPABILITY_PRECISION_TIME_MEASUREMENT: u32 = 11u32;
pub const USB_DEVICE_CAPABILITY_SUPERSPEEDPLUS_SPEED_DIR_RX: u32 = 0u32;
pub const USB_DEVICE_CAPABILITY_SUPERSPEEDPLUS_SPEED_DIR_TX: u32 = 1u32;
pub const USB_DEVICE_CAPABILITY_SUPERSPEEDPLUS_SPEED_LSE_BPS: u32 = 0u32;
pub const USB_DEVICE_CAPABILITY_SUPERSPEEDPLUS_SPEED_LSE_GBPS: u32 = 3u32;
pub const USB_DEVICE_CAPABILITY_SUPERSPEEDPLUS_SPEED_LSE_KBPS: u32 = 1u32;
pub const USB_DEVICE_CAPABILITY_SUPERSPEEDPLUS_SPEED_LSE_MBPS: u32 = 2u32;
pub const USB_DEVICE_CAPABILITY_SUPERSPEEDPLUS_SPEED_MODE_ASYMMETRIC: u32 = 1u32;
pub const USB_DEVICE_CAPABILITY_SUPERSPEEDPLUS_SPEED_MODE_SYMMETRIC: u32 = 0u32;
pub const USB_DEVICE_CAPABILITY_SUPERSPEEDPLUS_SPEED_PROTOCOL_SS: u32 = 0u32;
pub const USB_DEVICE_CAPABILITY_SUPERSPEEDPLUS_SPEED_PROTOCOL_SSP: u32 = 1u32;
pub const USB_DEVICE_CAPABILITY_SUPERSPEEDPLUS_USB: u32 = 10u32;
pub const USB_DEVICE_CAPABILITY_SUPERSPEED_BMATTRIBUTES_LTM_CAPABLE: u32 = 2u32;
pub const USB_DEVICE_CAPABILITY_SUPERSPEED_BMATTRIBUTES_RESERVED_MASK: u32 = 253u32;
pub const USB_DEVICE_CAPABILITY_SUPERSPEED_SPEEDS_SUPPORTED_FULL: u32 = 2u32;
pub const USB_DEVICE_CAPABILITY_SUPERSPEED_SPEEDS_SUPPORTED_HIGH: u32 = 4u32;
pub const USB_DEVICE_CAPABILITY_SUPERSPEED_SPEEDS_SUPPORTED_LOW: u32 = 1u32;
pub const USB_DEVICE_CAPABILITY_SUPERSPEED_SPEEDS_SUPPORTED_RESERVED_MASK: u32 = 65520u32;
pub const USB_DEVICE_CAPABILITY_SUPERSPEED_SPEEDS_SUPPORTED_SUPER: u32 = 8u32;
pub const USB_DEVICE_CAPABILITY_SUPERSPEED_U1_DEVICE_EXIT_MAX_VALUE: u32 = 10u32;
pub const USB_DEVICE_CAPABILITY_SUPERSPEED_U2_DEVICE_EXIT_MAX_VALUE: u32 = 2047u32;
pub const USB_DEVICE_CAPABILITY_SUPERSPEED_USB: u32 = 3u32;
pub const USB_DEVICE_CAPABILITY_USB20_EXTENSION: u32 = 2u32;
pub const USB_DEVICE_CAPABILITY_USB20_EXTENSION_BMATTRIBUTES_RESERVED_MASK: u32 = 4294901985u32;
pub const USB_DEVICE_CAPABILITY_WIRELESS_USB: u32 = 1u32;
pub const USB_DEVICE_CHARACTERISTICS_MAXIMUM_PATH_DELAYS_AVAILABLE: u32 = 1u32;
pub const USB_DEVICE_CHARACTERISTICS_VERSION_1: u32 = 1u32;
pub const USB_DEVICE_CLASS_APPLICATION_SPECIFIC: u32 = 254u32;
pub const USB_DEVICE_CLASS_AUDIO: u32 = 1u32;
pub const USB_DEVICE_CLASS_AUDIO_VIDEO: u32 = 16u32;
pub const USB_DEVICE_CLASS_BILLBOARD: u32 = 17u32;
pub const USB_DEVICE_CLASS_CDC_DATA: u32 = 10u32;
pub const USB_DEVICE_CLASS_COMMUNICATIONS: u32 = 2u32;
pub const USB_DEVICE_CLASS_CONTENT_SECURITY: u32 = 13u32;
pub const USB_DEVICE_CLASS_DIAGNOSTIC_DEVICE: u32 = 220u32;
pub const USB_DEVICE_CLASS_HUB: u32 = 9u32;
pub const USB_DEVICE_CLASS_HUMAN_INTERFACE: u32 = 3u32;
pub const USB_DEVICE_CLASS_IMAGE: u32 = 6u32;
pub const USB_DEVICE_CLASS_MISCELLANEOUS: u32 = 239u32;
pub const USB_DEVICE_CLASS_MONITOR: u32 = 4u32;
pub const USB_DEVICE_CLASS_PERSONAL_HEALTHCARE: u32 = 15u32;
pub const USB_DEVICE_CLASS_PHYSICAL_INTERFACE: u32 = 5u32;
pub const USB_DEVICE_CLASS_POWER: u32 = 6u32;
pub const USB_DEVICE_CLASS_PRINTER: u32 = 7u32;
pub const USB_DEVICE_CLASS_RESERVED: u32 = 0u32;
pub const USB_DEVICE_CLASS_SMART_CARD: u32 = 11u32;
pub const USB_DEVICE_CLASS_STORAGE: u32 = 8u32;
pub const USB_DEVICE_CLASS_VENDOR_SPECIFIC: u32 = 255u32;
pub const USB_DEVICE_CLASS_VIDEO: u32 = 14u32;
pub const USB_DEVICE_CLASS_WIRELESS_CONTROLLER: u32 = 224u32;
pub const USB_DEVICE_DESCRIPTOR_TYPE: u32 = 1u32;
pub const USB_DEVICE_FIRMWARE_HASH_LENGTH: u32 = 32u32;
pub const USB_DEVICE_QUALIFIER_DESCRIPTOR_TYPE: u32 = 6u32;
pub const USB_DIAG_IGNORE_HUBS_OFF: u32 = 263u32;
pub const USB_DIAG_IGNORE_HUBS_ON: u32 = 262u32;
pub const USB_DISALLOW_FIRMWARE_UPDATE: u32 = 0u32;
pub const USB_ENABLE_PORT: u32 = 5u32;
pub const USB_ENDPOINT_ADDRESS_MASK: u32 = 15u32;
pub const USB_ENDPOINT_DESCRIPTOR_TYPE: u32 = 5u32;
pub const USB_ENDPOINT_DIRECTION_MASK: u32 = 128u32;
pub const USB_ENDPOINT_SUPERSPEED_BULK_MAX_PACKET_SIZE: u32 = 1024u32;
pub const USB_ENDPOINT_SUPERSPEED_CONTROL_MAX_PACKET_SIZE: u32 = 512u32;
pub const USB_ENDPOINT_SUPERSPEED_INTERRUPT_MAX_PACKET_SIZE: u32 = 1024u32;
pub const USB_ENDPOINT_SUPERSPEED_ISO_MAX_PACKET_SIZE: u32 = 1024u32;
pub const USB_ENDPOINT_TYPE_BULK: u32 = 2u32;
pub const USB_ENDPOINT_TYPE_BULK_RESERVED_MASK: u32 = 252u32;
pub const USB_ENDPOINT_TYPE_CONTROL: u32 = 0u32;
pub const USB_ENDPOINT_TYPE_CONTROL_RESERVED_MASK: u32 = 252u32;
pub const USB_ENDPOINT_TYPE_INTERRUPT: u32 = 3u32;
pub const USB_ENDPOINT_TYPE_ISOCHRONOUS: u32 = 1u32;
pub const USB_ENDPOINT_TYPE_ISOCHRONOUS_RESERVED_MASK: u32 = 192u32;
pub const USB_ENDPOINT_TYPE_ISOCHRONOUS_SYNCHRONIZATION_ADAPTIVE: u32 = 8u32;
pub const USB_ENDPOINT_TYPE_ISOCHRONOUS_SYNCHRONIZATION_ASYNCHRONOUS: u32 = 4u32;
pub const USB_ENDPOINT_TYPE_ISOCHRONOUS_SYNCHRONIZATION_MASK: u32 = 12u32;
pub const USB_ENDPOINT_TYPE_ISOCHRONOUS_SYNCHRONIZATION_NO_SYNCHRONIZATION: u32 = 0u32;
pub const USB_ENDPOINT_TYPE_ISOCHRONOUS_SYNCHRONIZATION_SYNCHRONOUS: u32 = 12u32;
pub const USB_ENDPOINT_TYPE_ISOCHRONOUS_USAGE_DATA_ENDOINT: u32 = 0u32;
pub const USB_ENDPOINT_TYPE_ISOCHRONOUS_USAGE_FEEDBACK_ENDPOINT: u32 = 16u32;
pub const USB_ENDPOINT_TYPE_ISOCHRONOUS_USAGE_IMPLICIT_FEEDBACK_DATA_ENDPOINT: u32 = 32u32;
pub const USB_ENDPOINT_TYPE_ISOCHRONOUS_USAGE_MASK: u32 = 48u32;
pub const USB_ENDPOINT_TYPE_ISOCHRONOUS_USAGE_RESERVED: u32 = 48u32;
pub const USB_ENDPOINT_TYPE_MASK: u32 = 3u32;
pub const USB_FAIL_GET_STATUS: u32 = 280u32;
pub const USB_FEATURE_BATTERY_WAKE_MASK: u32 = 40u32;
pub const USB_FEATURE_CHARGING_POLICY: u32 = 54u32;
pub const USB_FEATURE_ENDPOINT_STALL: u32 = 0u32;
pub const USB_FEATURE_FUNCTION_SUSPEND: u32 = 0u32;
pub const USB_FEATURE_INTERFACE_POWER_D0: u32 = 2u32;
pub const USB_FEATURE_INTERFACE_POWER_D1: u32 = 3u32;
pub const USB_FEATURE_INTERFACE_POWER_D2: u32 = 4u32;
pub const USB_FEATURE_INTERFACE_POWER_D3: u32 = 5u32;
pub const USB_FEATURE_LDM_ENABLE: u32 = 53u32;
pub const USB_FEATURE_LTM_ENABLE: u32 = 50u32;
pub const USB_FEATURE_OS_IS_PD_AWARE: u32 = 41u32;
pub const USB_FEATURE_POLICY_MODE: u32 = 42u32;
pub const USB_FEATURE_REMOTE_WAKEUP: u32 = 1u32;
pub const USB_FEATURE_TEST_MODE: u32 = 2u32;
pub const USB_FEATURE_U1_ENABLE: u32 = 48u32;
pub const USB_FEATURE_U2_ENABLE: u32 = 49u32;
pub const USB_GETSTATUS_LTM_ENABLE: u32 = 16u32;
pub const USB_GETSTATUS_REMOTE_WAKEUP_ENABLED: u32 = 2u32;
pub const USB_GETSTATUS_SELF_POWERED: u32 = 1u32;
pub const USB_GETSTATUS_U1_ENABLE: u32 = 4u32;
pub const USB_GETSTATUS_U2_ENABLE: u32 = 8u32;
pub const USB_GET_BUSGUID_INFO: u32 = 266u32;
pub const USB_GET_BUS_INFO: u32 = 264u32;
pub const USB_GET_CONTROLLER_NAME: u32 = 265u32;
pub const USB_GET_DESCRIPTOR_FROM_NODE_CONNECTION: u32 = 260u32;
pub const USB_GET_DEVICE_CHARACTERISTICS: u32 = 288u32;
pub const USB_GET_DEVICE_HANDLE: u32 = 268u32;
pub const USB_GET_DEVICE_HANDLE_EX: u32 = 269u32;
pub const USB_GET_FIRMWARE_ALLOWED_OR_DISALLOWED_STATE: u32 = 0u32;
pub const USB_GET_FIRMWARE_HASH: u32 = 1u32;
pub const USB_GET_FRAME_NUMBER_AND_QPC_FOR_TIME_SYNC: u32 = 286u32;
pub const USB_GET_HUB_CAPABILITIES: u32 = 271u32;
pub const USB_GET_HUB_CAPABILITIES_EX: u32 = 276u32;
pub const USB_GET_HUB_CONFIG_INFO: u32 = 275u32;
pub const USB_GET_HUB_COUNT: u32 = 6u32;
pub const USB_GET_HUB_INFORMATION_EX: u32 = 277u32;
pub const USB_GET_HUB_NAME: u32 = 8u32;
pub const USB_GET_NODE_CONNECTION_ATTRIBUTES: u32 = 272u32;
pub const USB_GET_NODE_CONNECTION_DRIVERKEY_NAME: u32 = 264u32;
pub const USB_GET_NODE_CONNECTION_INFORMATION: u32 = 259u32;
pub const USB_GET_NODE_CONNECTION_INFORMATION_EX: u32 = 274u32;
pub const USB_GET_NODE_CONNECTION_INFORMATION_EX_V2: u32 = 279u32;
pub const USB_GET_NODE_CONNECTION_NAME: u32 = 261u32;
pub const USB_GET_NODE_INFORMATION: u32 = 258u32;
pub const USB_GET_PARENT_HUB_INFO: u32 = 267u32;
pub const USB_GET_PORT_CONNECTOR_PROPERTIES: u32 = 278u32;
pub const USB_GET_PORT_STATUS: u32 = 4u32;
pub const USB_GET_ROOTHUB_PDO: u32 = 3u32;
pub const USB_GET_TOPOLOGY_ADDRESS: u32 = 271u32;
pub const USB_GET_TRANSPORT_CHARACTERISTICS: u32 = 281u32;
pub const USB_GET_TT_DEVICE_HANDLE: u32 = 270u32;
pub const USB_HC_FEATURE_FLAG_PORT_POWER_SWITCHING: u32 = 1u32;
pub const USB_HC_FEATURE_FLAG_SEL_SUSPEND: u32 = 2u32;
pub const USB_HC_FEATURE_LEGACY_BIOS: u32 = 4u32;
pub const USB_HC_FEATURE_TIME_SYNC_API: u32 = 8u32;
pub const USB_HUB_CYCLE_PORT: u32 = 273u32;
pub const USB_HcGeneric: USB_CONTROLLER_FLAVOR = 0i32;
pub const USB_IDLE_NOTIFICATION: u32 = 9u32;
pub const USB_IDLE_NOTIFICATION_EX: u32 = 272u32;
pub const USB_INTERFACE_ASSOCIATION_DESCRIPTOR_TYPE: u32 = 11u32;
pub const USB_INTERFACE_DESCRIPTOR_TYPE: u32 = 4u32;
pub const USB_INTERFACE_POWER_DESCRIPTOR_TYPE: u32 = 8u32;
pub const USB_NOTIFY_ON_TRANSPORT_CHARACTERISTICS_CHANGE: u32 = 283u32;
pub const USB_OTG_DESCRIPTOR_TYPE: u32 = 9u32;
pub const USB_OTHER_SPEED_CONFIGURATION_DESCRIPTOR_TYPE: u32 = 7u32;
pub const USB_PACKETFLAG_ASYNC_IN: u32 = 8u32;
pub const USB_PACKETFLAG_ASYNC_OUT: u32 = 16u32;
pub const USB_PACKETFLAG_FULL_SPEED: u32 = 2u32;
pub const USB_PACKETFLAG_HIGH_SPEED: u32 = 4u32;
pub const USB_PACKETFLAG_ISO_IN: u32 = 32u32;
pub const USB_PACKETFLAG_ISO_OUT: u32 = 64u32;
pub const USB_PACKETFLAG_LOW_SPEED: u32 = 1u32;
pub const USB_PACKETFLAG_SETUP: u32 = 128u32;
pub const USB_PACKETFLAG_TOGGLE0: u32 = 256u32;
pub const USB_PACKETFLAG_TOGGLE1: u32 = 512u32;
pub const USB_PORTATTR_MINI_CONNECTOR: u32 = 4u32;
pub const USB_PORTATTR_NO_CONNECTOR: u32 = 1u32;
pub const USB_PORTATTR_NO_OVERCURRENT_UI: u32 = 33554432u32;
pub const USB_PORTATTR_OEM_CONNECTOR: u32 = 8u32;
pub const USB_PORTATTR_OWNED_BY_CC: u32 = 16777216u32;
pub const USB_PORTATTR_SHARED_USB2: u32 = 2u32;
pub const USB_PORT_STATUS_CONNECT: u32 = 1u32;
pub const USB_PORT_STATUS_ENABLE: u32 = 2u32;
pub const USB_PORT_STATUS_HIGH_SPEED: u32 = 1024u32;
pub const USB_PORT_STATUS_LOW_SPEED: u32 = 512u32;
pub const USB_PORT_STATUS_OVER_CURRENT: u32 = 8u32;
pub const USB_PORT_STATUS_POWER: u32 = 256u32;
pub const USB_PORT_STATUS_RESET: u32 = 16u32;
pub const USB_PORT_STATUS_SUSPEND: u32 = 4u32;
pub const USB_RECORD_FAILURE: u32 = 10u32;
pub const USB_REGISTER_COMPOSITE_DEVICE: u32 = 0u32;
pub const USB_REGISTER_FOR_TRANSPORT_BANDWIDTH_CHANGE: u32 = 2u32;
pub const USB_REGISTER_FOR_TRANSPORT_CHARACTERISTICS_CHANGE: u32 = 282u32;
pub const USB_REGISTER_FOR_TRANSPORT_LATENCY_CHANGE: u32 = 1u32;
pub const USB_REQUEST_CLEAR_FEATURE: u32 = 1u32;
pub const USB_REQUEST_CLEAR_TT_BUFFER: u32 = 8u32;
pub const USB_REQUEST_GET_CONFIGURATION: u32 = 8u32;
pub const USB_REQUEST_GET_DESCRIPTOR: u32 = 6u32;
pub const USB_REQUEST_GET_FIRMWARE_STATUS: u32 = 26u32;
pub const USB_REQUEST_GET_INTERFACE: u32 = 10u32;
pub const USB_REQUEST_GET_PORT_ERR_COUNT: u32 = 13u32;
pub const USB_REQUEST_GET_STATE: u32 = 2u32;
pub const USB_REQUEST_GET_STATUS: u32 = 0u32;
pub const USB_REQUEST_GET_TT_STATE: u32 = 10u32;
pub const USB_REQUEST_ISOCH_DELAY: u32 = 49u32;
pub const USB_REQUEST_REMOTE_WAKE_NOTIFICATION: u32 = 2u32;
pub const USB_REQUEST_RESET_TT: u32 = 9u32;
pub const USB_REQUEST_SET_ADDRESS: u32 = 5u32;
pub const USB_REQUEST_SET_CONFIGURATION: u32 = 9u32;
pub const USB_REQUEST_SET_DESCRIPTOR: u32 = 7u32;
pub const USB_REQUEST_SET_FEATURE: u32 = 3u32;
pub const USB_REQUEST_SET_FIRMWARE_STATUS: u32 = 27u32;
pub const USB_REQUEST_SET_HUB_DEPTH: u32 = 12u32;
pub const USB_REQUEST_SET_INTERFACE: u32 = 11u32;
pub const USB_REQUEST_SET_SEL: u32 = 48u32;
pub const USB_REQUEST_STOP_TT: u32 = 11u32;
pub const USB_REQUEST_SYNC_FRAME: u32 = 12u32;
pub const USB_REQ_GLOBAL_RESUME: u32 = 274u32;
pub const USB_REQ_GLOBAL_SUSPEND: u32 = 273u32;
pub const USB_RESERVED_DESCRIPTOR_TYPE: u32 = 6u32;
pub const USB_RESERVED_USER_BASE: u32 = 1024u32;
pub const USB_RESET_HUB: u32 = 275u32;
pub const USB_RESET_PORT: u32 = 1u32;
pub const USB_START_TRACKING_FOR_TIME_SYNC: u32 = 285u32;
pub const USB_STATUS_EXT_PORT_STATUS: u32 = 2u32;
pub const USB_STATUS_PD_STATUS: u32 = 1u32;
pub const USB_STATUS_PORT_STATUS: u32 = 0u32;
pub const USB_STOP_TRACKING_FOR_TIME_SYNC: u32 = 287u32;
pub const USB_STRING_DESCRIPTOR_TYPE: u32 = 3u32;
pub const USB_SUBMIT_URB: u32 = 0u32;
pub const USB_SUPERSPEEDPLUS_ISOCHRONOUS_MAX_BYTESPERINTERVAL: u32 = 16777215u32;
pub const USB_SUPERSPEEDPLUS_ISOCHRONOUS_MIN_BYTESPERINTERVAL: u32 = 49153u32;
pub const USB_SUPERSPEEDPLUS_ISOCH_ENDPOINT_COMPANION_DESCRIPTOR_TYPE: u32 = 49u32;
pub const USB_SUPERSPEED_ENDPOINT_COMPANION_DESCRIPTOR_TYPE: u32 = 48u32;
pub const USB_SUPERSPEED_ISOCHRONOUS_MAX_MULTIPLIER: u32 = 2u32;
pub const USB_SUPPORT_D0_COMMAND: u32 = 1u32;
pub const USB_SUPPORT_D1_COMMAND: u32 = 2u32;
pub const USB_SUPPORT_D1_WAKEUP: u32 = 16u32;
pub const USB_SUPPORT_D2_COMMAND: u32 = 4u32;
pub const USB_SUPPORT_D2_WAKEUP: u32 = 32u32;
pub const USB_SUPPORT_D3_COMMAND: u32 = 8u32;
pub const USB_TEST_MODE_TEST_FORCE_ENABLE: u32 = 5u32;
pub const USB_TEST_MODE_TEST_J: u32 = 1u32;
pub const USB_TEST_MODE_TEST_K: u32 = 2u32;
pub const USB_TEST_MODE_TEST_PACKET: u32 = 4u32;
pub const USB_TEST_MODE_TEST_SE0_NAK: u32 = 3u32;
pub const USB_TRANSPORT_CHARACTERISTICS_BANDWIDTH_AVAILABLE: u32 = 2u32;
pub const USB_TRANSPORT_CHARACTERISTICS_LATENCY_AVAILABLE: u32 = 1u32;
pub const USB_TRANSPORT_CHARACTERISTICS_VERSION_1: u32 = 1u32;
pub const USB_UNREGISTER_COMPOSITE_DEVICE: u32 = 1u32;
pub const USB_UNREGISTER_FOR_TRANSPORT_CHARACTERISTICS_CHANGE: u32 = 284u32;
pub const Usb11Device: USB_DEVICE_TYPE = 0i32;
pub const Usb20Device: USB_DEVICE_TYPE = 1i32;
pub const Usb20Hub: USB_HUB_TYPE = 2i32;
pub const Usb30Hub: USB_HUB_TYPE = 3i32;
pub const UsbController: USB_WMI_DEVICE_NODE_TYPE = 3i32;
pub const UsbDevice: USB_WMI_DEVICE_NODE_TYPE = 0i32;
pub const UsbFullSpeed: USB_DEVICE_SPEED = 1i32;
pub const UsbHighSpeed: USB_DEVICE_SPEED = 2i32;
pub const UsbHub: USB_HUB_NODE = 0i32;
pub const UsbLowSpeed: USB_DEVICE_SPEED = 0i32;
pub const UsbMIParent: USB_HUB_NODE = 1i32;
pub const UsbRootHub: USB_HUB_TYPE = 1i32;
pub const UsbSuperSpeed: USB_DEVICE_SPEED = 3i32;
pub const UsbUserBufferTooSmall: USB_USER_ERROR_CODE = 7i32;
pub const UsbUserDeviceNotStarted: USB_USER_ERROR_CODE = 9i32;
pub const UsbUserErrorNotMapped: USB_USER_ERROR_CODE = 8i32;
pub const UsbUserFeatureDisabled: USB_USER_ERROR_CODE = 3i32;
pub const UsbUserInvalidHeaderParameter: USB_USER_ERROR_CODE = 4i32;
pub const UsbUserInvalidParameter: USB_USER_ERROR_CODE = 5i32;
pub const UsbUserInvalidRequestCode: USB_USER_ERROR_CODE = 2i32;
pub const UsbUserMiniportError: USB_USER_ERROR_CODE = 6i32;
pub const UsbUserNoDeviceConnected: USB_USER_ERROR_CODE = 10i32;
pub const UsbUserNotSupported: USB_USER_ERROR_CODE = 1i32;
pub const UsbUserSuccess: USB_USER_ERROR_CODE = 0i32;
pub const UsbdEndpointOffloadHardwareAssisted: USBD_ENDPOINT_OFFLOAD_MODE = 2i32;
pub const UsbdEndpointOffloadModeNotSupported: USBD_ENDPOINT_OFFLOAD_MODE = 0i32;
pub const UsbdEndpointOffloadSoftwareAssisted: USBD_ENDPOINT_OFFLOAD_MODE = 1i32;
pub const UsbdPipeTypeBulk: USBD_PIPE_TYPE = 2i32;
pub const UsbdPipeTypeControl: USBD_PIPE_TYPE = 0i32;
pub const UsbdPipeTypeInterrupt: USBD_PIPE_TYPE = 3i32;
pub const UsbdPipeTypeIsochronous: USBD_PIPE_TYPE = 1i32;
pub const UsbfnBusSpeedFull: USBFN_BUS_SPEED = 1i32;
pub const UsbfnBusSpeedHigh: USBFN_BUS_SPEED = 2i32;
pub const UsbfnBusSpeedLow: USBFN_BUS_SPEED = 0i32;
pub const UsbfnBusSpeedMaximum: USBFN_BUS_SPEED = 4i32;
pub const UsbfnBusSpeedSuper: USBFN_BUS_SPEED = 3i32;
pub const UsbfnChargingDownstreamPort: USBFN_PORT_TYPE = 2i32;
pub const UsbfnDedicatedChargingPort: USBFN_PORT_TYPE = 3i32;
pub const UsbfnDeviceStateAddressed: USBFN_DEVICE_STATE = 4i32;
pub const UsbfnDeviceStateAttached: USBFN_DEVICE_STATE = 1i32;
pub const UsbfnDeviceStateConfigured: USBFN_DEVICE_STATE = 5i32;
pub const UsbfnDeviceStateDefault: USBFN_DEVICE_STATE = 2i32;
pub const UsbfnDeviceStateDetached: USBFN_DEVICE_STATE = 3i32;
pub const UsbfnDeviceStateMinimum: USBFN_DEVICE_STATE = 0i32;
pub const UsbfnDeviceStateStateMaximum: USBFN_DEVICE_STATE = 7i32;
pub const UsbfnDeviceStateSuspended: USBFN_DEVICE_STATE = 6i32;
pub const UsbfnDirectionIn: USBFN_DIRECTION = 1i32;
pub const UsbfnDirectionMaximum: USBFN_DIRECTION = 3i32;
pub const UsbfnDirectionMinimum: USBFN_DIRECTION = 0i32;
pub const UsbfnDirectionOut: USBFN_DIRECTION = 2i32;
pub const UsbfnDirectionRx: USBFN_DIRECTION = 2i32;
pub const UsbfnDirectionTx: USBFN_DIRECTION = 1i32;
pub const UsbfnEventAttach: USBFN_EVENT = 1i32;
pub const UsbfnEventBusTearDown: USBFN_EVENT = 10i32;
pub const UsbfnEventConfigured: USBFN_EVENT = 7i32;
pub const UsbfnEventDetach: USBFN_EVENT = 3i32;
pub const UsbfnEventMaximum: USBFN_EVENT = 12i32;
pub const UsbfnEventMinimum: USBFN_EVENT = 0i32;
pub const UsbfnEventPortType: USBFN_EVENT = 9i32;
pub const UsbfnEventReset: USBFN_EVENT = 2i32;
pub const UsbfnEventResume: USBFN_EVENT = 5i32;
pub const UsbfnEventSetInterface: USBFN_EVENT = 11i32;
pub const UsbfnEventSetupPacket: USBFN_EVENT = 6i32;
pub const UsbfnEventSuspend: USBFN_EVENT = 4i32;
pub const UsbfnEventUnConfigured: USBFN_EVENT = 8i32;
pub const UsbfnInvalidDedicatedChargingPort: USBFN_PORT_TYPE = 4i32;
pub const UsbfnPortTypeMaximum: USBFN_PORT_TYPE = 6i32;
pub const UsbfnProprietaryDedicatedChargingPort: USBFN_PORT_TYPE = 5i32;
pub const UsbfnStandardDownstreamPort: USBFN_PORT_TYPE = 1i32;
pub const UsbfnUnknownPort: USBFN_PORT_TYPE = 0i32;
pub const WMI_USB_DEVICE_NODE_INFORMATION: u32 = 2u32;
pub const WMI_USB_DRIVER_INFORMATION: u32 = 0u32;
pub const WMI_USB_DRIVER_NOTIFICATION: u32 = 1u32;
pub const WMI_USB_HUB_NODE_INFORMATION: u32 = 4u32;
pub const WMI_USB_PERFORMANCE_INFORMATION: u32 = 1u32;
pub const WMI_USB_POWER_DEVICE_ENABLE: u32 = 2u32;
pub const WRITE_DATA_PIPE: PIPE_TYPE = 2i32;
pub const WdmUsbPowerDeviceD0: WDMUSB_POWER_STATE = 201i32;
pub const WdmUsbPowerDeviceD1: WDMUSB_POWER_STATE = 202i32;
pub const WdmUsbPowerDeviceD2: WDMUSB_POWER_STATE = 203i32;
pub const WdmUsbPowerDeviceD3: WDMUSB_POWER_STATE = 204i32;
pub const WdmUsbPowerDeviceUnspecified: WDMUSB_POWER_STATE = 200i32;
pub const WdmUsbPowerNotMapped: WDMUSB_POWER_STATE = 0i32;
pub const WdmUsbPowerSystemHibernate: WDMUSB_POWER_STATE = 105i32;
pub const WdmUsbPowerSystemShutdown: WDMUSB_POWER_STATE = 106i32;
pub const WdmUsbPowerSystemSleeping1: WDMUSB_POWER_STATE = 102i32;
pub const WdmUsbPowerSystemSleeping2: WDMUSB_POWER_STATE = 103i32;
pub const WdmUsbPowerSystemSleeping3: WDMUSB_POWER_STATE = 104i32;
pub const WdmUsbPowerSystemUnspecified: WDMUSB_POWER_STATE = 100i32;
pub const WdmUsbPowerSystemWorking: WDMUSB_POWER_STATE = 101i32;
pub const WinUSB_TestGuid: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0xda812bff_12c3_46a2_8e2b_dbd3b7834c43);
pub type PIPE_TYPE = i32;
pub type RAW_PIPE_TYPE = i32;
pub type USBD_ENDPOINT_OFFLOAD_MODE = i32;
pub type USBD_PIPE_TYPE = i32;
pub type USBFN_BUS_SPEED = i32;
pub type USBFN_DEVICE_STATE = i32;
pub type USBFN_DIRECTION = i32;
pub type USBFN_EVENT = i32;
pub type USBFN_PORT_TYPE = i32;
pub type USB_CONNECTION_STATUS = i32;
pub type USB_CONTROLLER_FLAVOR = i32;
pub type USB_DEVICE_SPEED = i32;
pub type USB_DEVICE_TYPE = i32;
pub type USB_HUB_NODE = i32;
pub type USB_HUB_TYPE = i32;
pub type USB_NOTIFICATION_TYPE = i32;
pub type USB_USER_ERROR_CODE = i32;
pub type USB_WMI_DEVICE_NODE_TYPE = i32;
pub type WDMUSB_POWER_STATE = i32;
pub type WINUSB_PIPE_POLICY = u32;
pub type WINUSB_POWER_POLICY = u32;
#[repr(C)]
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
}
}
#[repr(C)]
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
}
}
#[repr(C)]
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
}
}
#[repr(C)]
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
}
}
#[repr(C)]
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
}
}
#[repr(C)]
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
}
}
#[repr(C, packed(1))]
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
}
}
#[repr(C, packed(1))]
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
}
}
#[repr(C, packed(1))]
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
}
}
#[repr(C, packed(1))]
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
}
}
#[repr(C, packed(1))]
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
}
}
#[repr(C)]
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
}
}
#[repr(C)]
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
}
}
#[repr(C)]
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
}
}
#[repr(C)]
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
}
}
#[repr(C, packed(1))]
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
}
}
#[repr(C, packed(1))]
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
}
}
#[repr(C, packed(1))]
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
}
}
#[repr(C, packed(1))]
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
}
}
#[repr(C)]
pub struct URB {
pub Anonymous: URB_0,
}
impl ::core::marker::Copy for URB {}
impl ::core::clone::Clone for URB {
fn clone(&self) -> Self {
*self
}
}
#[repr(C)]
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
}
}
#[repr(C)]
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
}
}
#[repr(C, packed(1))]
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
}
}
#[repr(C)]
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
}
}
#[repr(C)]
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
}
}
#[repr(C)]
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
}
}
#[repr(C)]
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
}
}
#[repr(C)]
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
}
}
#[repr(C)]
#[doc = "Required features: `\"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
}
}
#[repr(C)]
#[doc = "Required features: `\"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
}
}
#[repr(C)]
#[doc = "Required features: `\"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
}
}
#[repr(C)]
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
}
}
#[repr(C)]
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
}
}
#[repr(C)]
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
}
}
#[repr(C)]
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
}
}
#[repr(C)]
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
}
}
#[repr(C)]
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
}
}
#[repr(C)]
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
}
}
#[repr(C)]
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
}
}
#[repr(C)]
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
}
}
#[repr(C)]
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
}
}
#[repr(C)]
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
}
}
#[repr(C, packed(1))]
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
}
}
#[repr(C, packed(1))]
#[doc = "Required features: `\"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
}
}
#[repr(C, packed(1))]
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
}
}
#[repr(C, packed(1))]
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
}
}
#[repr(C, packed(1))]
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
}
}
#[repr(C, packed(1))]
#[doc = "Required features: `\"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
}
}
#[repr(C, packed(1))]
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
}
}
#[repr(C, packed(1))]
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
}
}
#[repr(C, packed(1))]
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
}
}
#[repr(C, packed(1))]
#[doc = "Required features: `\"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
}
}
#[repr(C, packed(1))]
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
}
}
#[repr(C, packed(1))]
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
}
}
#[repr(C, packed(1))]
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
}
}
#[repr(C, packed(1))]
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
}
}
#[repr(C, packed(1))]
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
}
}
#[repr(C, packed(1))]
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
}
}
#[repr(C, packed(1))]
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
}
}
#[repr(C, packed(1))]
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
}
}
#[repr(C, packed(1))]
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
}
}
#[repr(C, packed(1))]
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
}
}
#[repr(C, packed(1))]
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
}
}
#[repr(C, packed(1))]
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
}
}
#[repr(C, packed(1))]
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
}
}
#[repr(C, packed(1))]
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
}
}
#[repr(C, packed(1))]
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
}
}
#[repr(C, packed(1))]
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
}
}
#[repr(C, packed(1))]
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
}
}
#[repr(C, packed(1))]
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
}
}
#[repr(C, packed(1))]
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
}
}
#[repr(C, packed(1))]
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
}
}
#[repr(C, packed(1))]
#[doc = "Required features: `\"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
}
}
pub type USB_CHANGE_REGISTRATION_HANDLE = isize;
#[repr(C, packed(1))]
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
}
}
#[repr(C)]
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
}
}
#[repr(C)]
#[doc = "Required features: `\"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
}
}
#[repr(C)]
#[doc = "Required features: `\"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
}
}
#[repr(C, packed(1))]
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
}
}
#[repr(C, packed(1))]
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
}
}
#[repr(C, packed(1))]
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
}
}
#[repr(C, packed(1))]
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
}
}
#[repr(C, packed(1))]
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
}
}
#[repr(C, packed(1))]
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
}
}
#[repr(C, packed(1))]
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
}
}
#[repr(C, packed(1))]
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
}
}
#[repr(C)]
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
}
}
#[repr(C, packed(1))]
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
}
}
#[repr(C)]
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
}
}
#[repr(C, packed(1))]
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
}
}
#[repr(C, packed(1))]
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
}
}
#[repr(C, packed(1))]
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
}
}
#[repr(C, packed(1))]
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
}
}
#[repr(C, packed(1))]
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
}
}
#[repr(C, packed(1))]
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
}
}
#[repr(C)]
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
}
}
#[repr(C)]
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
}
}
#[repr(C)]
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
}
}
#[repr(C, packed(1))]
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
}
}
#[repr(C, packed(1))]
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
}
}
#[repr(C, packed(1))]
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
}
}
#[repr(C, packed(1))]
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
}
}
#[repr(C, packed(1))]
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
}
}
#[repr(C, packed(1))]
pub struct USB_DEVICE_CAPABILITY_PLATFORM_DESCRIPTOR {
pub bLength: u8,
pub bDescriptorType: u8,
pub bDevCapabilityType: u8,
pub bReserved: u8,
pub PlatformCapabilityUuid: ::windows_sys::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
}
}
#[repr(C, packed(1))]
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
}
}
#[repr(C, packed(1))]
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
}
}
#[repr(C, packed(1))]
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
}
}
#[repr(C, packed(1))]
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
}
}
#[repr(C, packed(1))]
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
}
}
#[repr(C, packed(1))]
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
}
}
#[repr(C, packed(1))]
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
}
}
#[repr(C, packed(1))]
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
}
}
#[repr(C, packed(1))]
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
}
}
#[repr(C, packed(1))]
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
}
}
#[repr(C, packed(1))]
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
}
}
#[repr(C)]
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
}
}
#[repr(C, packed(1))]
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
}
}
#[repr(C, packed(1))]
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
}
}
#[repr(C, packed(1))]
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
}
}
#[repr(C, packed(1))]
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
}
}
#[repr(C, packed(1))]
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
}
}
#[repr(C, packed(1))]
#[doc = "Required features: `\"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
}
}
#[repr(C)]
#[doc = "Required features: `\"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
}
}
#[repr(C, packed(1))]
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
}
}
#[repr(C, packed(1))]
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
}
}
#[repr(C, packed(1))]
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
}
}
#[repr(C, packed(1))]
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
}
}
#[repr(C, packed(1))]
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
}
}
#[repr(C, packed(1))]
#[doc = "Required features: `\"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
}
}
#[repr(C, packed(1))]
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
}
}
#[repr(C, packed(1))]
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
}
}
#[repr(C, packed(1))]
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
}
}
#[repr(C, packed(1))]
#[doc = "Required features: `\"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
}
}
#[repr(C)]
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
}
}
#[repr(C)]
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
}
}
#[repr(C, packed(1))]
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
}
}
#[repr(C, packed(1))]
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
}
}
#[repr(C, packed(1))]
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
}
}
#[repr(C)]
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
}
}
#[repr(C)]
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
}
}
#[repr(C, packed(1))]
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
}
}
#[repr(C)]
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
}
}
#[repr(C, packed(1))]
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
}
}
#[repr(C, packed(1))]
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
}
}
#[repr(C, packed(1))]
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
}
}
#[repr(C, packed(1))]
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
}
}
#[repr(C, packed(1))]
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
}
}
#[repr(C, packed(1))]
#[doc = "Required features: `\"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
}
}
#[repr(C, packed(1))]
pub struct USB_HUB_DEVICE_UXD_SETTINGS {
pub Version: u32,
pub PnpGuid: ::windows_sys::core::GUID,
pub OwnerGuid: ::windows_sys::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
}
}
#[repr(C)]
#[doc = "Required features: `\"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
}
}
#[repr(C, packed(1))]
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
}
}
#[repr(C)]
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
}
}
#[repr(C, packed(1))]
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
}
}
#[repr(C, packed(1))]
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
}
}
#[repr(C, packed(1))]
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
}
}
#[repr(C, packed(1))]
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
}
}
#[repr(C, packed(1))]
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
}
}
#[repr(C)]
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
}
}
#[repr(C)]
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
}
}
#[repr(C, packed(1))]
pub struct USB_ID_STRING {
pub LanguageId: u16,
pub Pad: u16,
pub LengthInBytes: u32,
pub Buffer: ::windows_sys::core::PWSTR,
}
impl ::core::marker::Copy for USB_ID_STRING {}
impl ::core::clone::Clone for USB_ID_STRING {
fn clone(&self) -> Self {
*self
}
}
#[repr(C)]
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
}
}
#[repr(C)]
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
}
}
#[repr(C, packed(1))]
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
}
}
#[repr(C, packed(1))]
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
}
}
#[repr(C, packed(1))]
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
}
}
#[repr(C, packed(1))]
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
}
}
#[repr(C, packed(1))]
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
}
}
#[repr(C, packed(1))]
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
}
}
#[repr(C, packed(1))]
#[doc = "Required features: `\"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
}
}
#[repr(C, packed(1))]
#[doc = "Required features: `\"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
}
}
#[repr(C, packed(1))]
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
}
}
#[repr(C, packed(1))]
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
}
}
#[repr(C, packed(1))]
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
}
}
#[repr(C, packed(1))]
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
}
}
#[repr(C, packed(1))]
#[doc = "Required features: `\"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
}
}
#[repr(C)]
#[doc = "Required features: `\"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
}
}
#[repr(C, packed(1))]
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
}
}
#[repr(C, packed(1))]
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
}
}
#[repr(C, packed(1))]
pub struct USB_PASS_THRU_PARAMETERS {
pub FunctionGUID: ::windows_sys::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
}
}
#[repr(C, packed(1))]
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
}
}
#[repr(C, packed(1))]
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
}
}
#[repr(C, packed(1))]
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
}
}
#[repr(C, packed(1))]
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
}
}
#[repr(C, packed(1))]
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
}
}
#[repr(C, packed(1))]
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
}
}
#[repr(C)]
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
}
}
#[repr(C, packed(1))]
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
}
}
#[repr(C, packed(1))]
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
}
}
#[repr(C, packed(1))]
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
}
}
#[repr(C, packed(1))]
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
}
}
#[repr(C)]
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
}
}
#[repr(C, packed(1))]
#[doc = "Required features: `\"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
}
}
#[repr(C, packed(1))]
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
}
}
#[repr(C, packed(1))]
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
}
}
#[repr(C, packed(1))]
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
}
}
#[repr(C, packed(1))]
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
}
}
#[repr(C, packed(1))]
#[doc = "Required features: `\"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
}
}
#[repr(C, packed(1))]
#[doc = "Required features: `\"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
}
}
#[repr(C, packed(1))]
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
}
}
#[repr(C, packed(1))]
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
}
}
#[repr(C, packed(1))]
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
}
}
#[repr(C)]
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
}
}
#[repr(C)]
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
}
}
#[repr(C)]
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
}
}
#[repr(C)]
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
}
}
#[repr(C, packed(1))]
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
}
}
#[repr(C, packed(1))]
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
}
}
#[repr(C, packed(1))]
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
}
}
#[repr(C, packed(1))]
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
}
}
#[repr(C, packed(1))]
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
}
}
#[repr(C, packed(1))]
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
}
}
pub type WINUSB_INTERFACE_HANDLE = isize;
#[repr(C)]
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
}
}
#[repr(C)]
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
}
}
#[repr(C, packed(1))]
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
}
}
#[repr(C)]
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
}
}
#[repr(C)]
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
}
}
#[repr(C)]
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
}
}
#[repr(C)]
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
}
}
#[repr(C)]
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
}
}
#[repr(C)]
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
}
}
#[repr(C)]
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
}
}
#[repr(C)]
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
}
}
#[repr(C)]
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
}
}
#[repr(C)]
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
}
}
#[repr(C)]
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
}
}
#[repr(C)]
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
}
}
#[repr(C)]
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
}
}
#[repr(C)]
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
}
}
#[repr(C)]
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
}
}
#[repr(C)]
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
}
}
#[repr(C)]
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
}
}
#[repr(C)]
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
}
}
#[repr(C)]
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
}
}
#[repr(C)]
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
}
}
#[repr(C)]
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
}
}
#[repr(C)]
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
}
}
pub type USB_IDLE_CALLBACK = ::core::option::Option<unsafe extern "system" fn(context: *const ::core::ffi::c_void) -> ()>;