Questions tagged [winusb]

Windows USB (WinUSB) is a generic driver for USB devices that was developed concurrently with the Windows Driver Frameworks (WDF) for Windows XP with SP2.

The WinUSB architecture consists of a kernel-mode driver (Winusb.sys) and a user-mode dynamic link library (Winusb.dll) that exposes WinUSB functions. By using these functions, you can manage USB devices with user-mode software.

Winusb.sys is also a key part of the link between a UMDF function driver and the associated device, and is installed in the device's kernel-mode stack as an upper filter driver. An application communicates with the device's UMDF function driver to issue read, write, or device I/O control requests.

The driver interacts with the framework, which passes the request to Winusb.sys, which then processes the request and passes it to the protocol drivers and ultimately to the device. Any response returns by the reverse path. Winusb.sys also serves as the device stack's Plug and Play and power owner.

More details: MSDN

132 questions
4
votes
0 answers

FindAllAsync returns empty, USB devices in C#

I am communicating (or attempting to) with an ESP 301 motor controller via USB. See here for documentation if needed (PDF) In order to do this, I am working in C# and have the following function: private async void connectDevice() { string aqs =…
user1814893
  • 301
  • 2
  • 6
4
votes
1 answer

UsbInterface claim fails

I got a Problem: I'm using usb4java on my windows 8 laptop. I got an Infrared Remote Controller plugged in, in my usb port. Now I want to access this Controller.I got the following example code(There are no Exceptions programmed and NullPointers are…
Chris
  • 599
  • 3
  • 11
  • 24
4
votes
2 answers

Getting Vendor ID and Product ID from Winusb

I am trying to get the Vendor and Product IDs from a Winusb device and am getting accessviolationexception when trying to use the winusb_GetDesicriptor() and cannot figure out why I am getting that exception. Here are my declarations: internal…
Ian Oswald
  • 1,365
  • 3
  • 16
  • 27
3
votes
1 answer

WinUSB driver installation failing on XP (works fine on Win7)

I'm having difficulty installing a WinUSB driver on Windows XP (x86, service pack 3). I've followed the Microsoft WinUSB guidelines to create a signed driver package using an inf file, signed cat file (made using Inf2cat), and relevant WinUSB…
Tom Davies
  • 2,386
  • 3
  • 27
  • 44
3
votes
1 answer

How to get Windows 10 to autoload WinUSB as driver using MS_OS_20 BOS descriptor

I am struggling to get Windows to load the default WinUSB driver for my device. Please note that I am looking for a solution that is using BOS descriptor (and not the old 0xEE string index). The device enumerates and Windows tells me that it is…
3
votes
2 answers

WinUSB driver for Arduino

I'm using an Arduino to read data from the web and display it. I can easily pass the data as serial using the supplied drivers, because they identify the COM port so I can send serial to the COM port. However, I want to use 'real' USB techniques so…
Richard210363
  • 8,342
  • 6
  • 37
  • 63
3
votes
1 answer

Can I use WinUSB alongside the built-in HID drivers?

I am prototyping a keyboard using a Pi Zero, and I plan to set the Pi Zero up so that it emulates an HID-compliant USB keyboard (for Windows). There are many guides on how to do this, so I do not think this will be an issue. The additional…
JSON Brody
  • 736
  • 1
  • 4
  • 23
3
votes
2 answers

C# - Communicate with WinUSB device with LIBUSB

I am trying to communicate with a Nokia Lumia phone(RM-917), over USB using LIBUSING and C#. LIBUSB is able to see the device's information(pid,vid,etc). However, I am not able to successfully write to ANY endpoint, even sending the exact command as…
user1698144
  • 754
  • 4
  • 13
  • 36
3
votes
1 answer

Smartcard Reader and ChromeApp

I want to make a Chrome App that can access a USB SmartCard Reader (HID Global OmniKey 3121). Did someone ever succeed in doing that? Unfortunately, I cannot see it using usb.getDevices. script.js (called by index.html which is itself called by…
Supersharp
  • 29,002
  • 9
  • 92
  • 134
3
votes
2 answers

USB Driver Installation Issue for Microcontroller using Custom INF

I'm working with the NXP LPC1788 microcontroller and I'm trying to create a driver on the host computer to communicate with it via USB. I believe that I've managed to get the device handling standard USB requests properly (the PC is able to read the…
Tagc
  • 8,736
  • 7
  • 61
  • 114
3
votes
1 answer

Canceling a WinUSB asynchronous control transfer

For a user application (not a driver) using WinUSB, I use WinUsb_ControlTransfer in combination with overlapped I/O to asynchronously send a control message. Is it possible to cancel the asynchronous operation? WinUsb_AbortPipe works for all other…
madwizard
  • 31
  • 3
3
votes
1 answer

WinUSB Installation

I wanted to experiment a bit with WinUSB. I've installed the WinDDK and I'm about to create my first INF-file for my driver. I'm following the MSDN guide to do this. The guide contains a sample INF file and the instructions to "changing USB_Install…
DeX3
  • 5,200
  • 6
  • 44
  • 68
3
votes
2 answers

How can I use RegisterDeviceNotification without a window handle?

I'm writing a DLL library that interfaces to a USB device using winusb in VB.NET. Since it's a DLL, I have no window, and it's possible that users of my library will also not have a window (command line apps, for instance). The examples I've seen…
Adam Davis
  • 91,931
  • 60
  • 264
  • 330
2
votes
1 answer

WinUSB Driver Installation, Error 0x00000003

The following .inf file was adapted from Microsoft WinUSB Installation Guide The hardware key USBPRINT\DatamaxM4308-MarkII013B, the Vendor and PID should be correct (copied from the official driver .inf file) When trying to install the Driver on…
David Strahm
  • 263
  • 4
  • 10
2
votes
2 answers

How would I reproduce the functionality of the Windows winusb driver on Linux? Do I even need to?

I need to implement an application on Linux that drives a USB connected device (a medical instrument). The application will be written in C++ (2011 standard). The current application is written for Windows 10 in C# and uses the standard Winusb…
Edgen
  • 69
  • 7
1
2
3
8 9