private static extern bool WinUsb_QueryPipe(
     WinUsbHandle InterfaceHandle, Byte AlternateInterfaceNumber, Byte PipeIndex, out WINUSB_PIPE_INFORMATION PipeInformation);
 private static extern bool WinUsb_Initialize(SafeFileHandle DeviceHandle, WinUsbHandle InterfaceHandle);
 private static extern bool WinUsb_Free(WinUsbHandle InterfaceHandle);
 public static bool QueryPipe(
     WinUsbHandle InterfaceHandle, Byte AlternateInterfaceNumber, Byte PipeIndex, out WINUSB_PIPE_INFORMATION PipeInformation)
 {
     return(WinUsb_QueryPipe(InterfaceHandle, AlternateInterfaceNumber, PipeIndex, out PipeInformation));
 }
 public static bool ReadPipe(
     WinUsbHandle InterfaceHandle, byte PipeID, byte[] pBuffer, uint BufferLength, out uint LengthTransferred)
 {
     return(WinUsb_ReadPipe(InterfaceHandle, PipeID, pBuffer, BufferLength, out LengthTransferred, IntPtr.Zero));
 }
 private static bool QueryInterfaceSettings(
     WinUsbHandle InterfaceHandle, Byte AlternateInterfaceNumber, out USB_INTERFACE_DESCRIPTOR UsbAltInterfaceDescriptor)
 {
     return(WinUsb_QueryInterfaceSettings(InterfaceHandle, AlternateInterfaceNumber, out UsbAltInterfaceDescriptor));
 }
 public static bool Free(WinUsbHandle InterfaceHandle)
 {
     return(WinUsb_Free(InterfaceHandle));
 }
 public static bool Initialize(SafeFileHandle DeviceHandle, WinUsbHandle InterfaceHandle)
 {
     return(WinUsb_Initialize(DeviceHandle, InterfaceHandle));
 }
 private static extern bool WinUsb_QueryInterfaceSettings(
     WinUsbHandle InterfaceHandle, Byte AlternateInterfaceNumber, out USB_INTERFACE_DESCRIPTOR UsbAltInterfaceDescriptor);
Exemple #10
0
 private static extern bool WinUsb_ReadPipe(
     WinUsbHandle InterfaceHandle, byte PipeID, byte[] pBuffer, uint BufferLength, out uint LengthTransferred, IntPtr Overlapped);