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
0
votes
1 answer

Installing WinUSB and libusb at the same time

After installing WinUSB (so that I could play around with libusb), whenever i plug an usb flash drive into the PC usb port, windows no longer recognizes it and doesnt put a new drive letter in file explorer. So it seems if I have WinUsb driver…
user5199516
  • 27
  • 3
  • 9
0
votes
1 answer

unable to read value from Mc Device using WinUsb_ReadPipe Function in VC++ 2013

I m stuck with a problem related to winusbReadpipe function. I m using Pic18f4550 Mc(XC8 Compiler) and VC ++ 2013 (MFC). I my just trying to read and write to/from Device /Host. The sample Programme provide by Microchip is working fine and I am able…
Rahul
  • 13
  • 6
0
votes
0 answers

WinUSB Read/Write with Overlapped I/O

Does anyone have suggestions for using the WinUSB API to do overlapped read/write? The code that I wrote is always timing out - I suspect that I am using the API incorrectly to do overlapped read/write. Does anyone have any suggestions? void…
Michael S. Scherotter
  • 10,715
  • 3
  • 34
  • 57
0
votes
1 answer

WinUSB_AbortPipe Hangs

If I call WinUSB_AbortPipe() just as WinUSB_ReadPipe() starts, I get into a deadlock state. I ran the debug trace log that is provided here. Below is the last 5 lines in the log where the problem occurs. I think ReadPipe must have missed the signal,…
Tails86
  • 507
  • 5
  • 19
0
votes
3 answers

#include produces compiler error in MFC app

I have a generic SDI application generated by VS2010 that I want to use to test the WinUsb API. I have the current version of the WDK installed. According to postings I've read elesewhere, I should be able to set the VS2010 project include path to…
pnswdv
  • 181
  • 2
  • 8
0
votes
1 answer

WinUsb ControlTransfer on USB 3.0

I'm currently learning by doing programming a USB device. But unfortunately i came across some problems that might came through not knowing everything. The situation is I queried my device via ControlTransfer, since this works like a charm on USB…
RunicSheep
  • 95
  • 2
  • 8
0
votes
1 answer

WinUSB architecture docs confusion over winusb.sys instances

I'm trying to understand the "WinUSB Architecture and Modules" doc at: http://msdn.microsoft.com/en-us/library/windows/hardware/ff540207%28v=vs.85%29.aspx. In the diagram I see multiple instances of winusb.sys (numbered 1 to 3), supporting multiple…
gwideman
  • 2,705
  • 1
  • 24
  • 43
0
votes
1 answer

Linker error 2019 while linking Winusb application and CUDA

I have two application Winusb and coping the data from cpu to GPU using CUDA. Both work fine as two separate projects, but when I try to combine them as one project I get the following linking error. Build Log : 1>------ Build started: Project: USB…
Cedric
  • 17
  • 8
0
votes
1 answer

How to resolve the Winusb linking error?

I've written a WinUSB project for obtaining data from spectrometer, the code seems to work few weeks ago. In the later stage I tried to link this project with CUDA, after few trials I solved the CUDA linker error. Unfortunately I ended up "error…
Cedric
  • 17
  • 8
0
votes
1 answer

ST-LINK V2 USB driver WinUSB Access Denied

I have a Win7/64 development machine configured (by someone else I can't contact) to develop/debug an embedded project using an ST-LINK/V2 dongle. The PC detects and installs the dongle Ok but no application can access the dongle, giving 'No ST-Link…
jmcambs
  • 1
  • 1
0
votes
0 answers

5 second Delay between DoWork and RunWorkerCompleted

I have a BackGroundWorker that pends on a WinUSB ReadPipe() call in DoWork(). When ReadPipe() returns data, that data is packaged into the DoWorkEventArgs parameter and DoWork() ends. Usually RunWorkerCompleted() executes very soon after DoWork()…
BigBobby
  • 423
  • 1
  • 3
  • 17
0
votes
0 answers

confusion in intstalling winusb.sys in windows 7

I'm trying to write an c++ code to turn off power-management option on the USB devices , i found that there are winusb api's to do the same .I downloaded the wdk and got the necessary files for the same . I went and saw the system32 folder and i…
Santhosh Pai
  • 2,535
  • 8
  • 28
  • 49
0
votes
1 answer

WinUSB events for Bulk Transfer

I just switched from a serial port connection to a usb connection. I'm using WinUSB to access the device and can sucessfully write and read data in bulk mode. My question now, is there something comparable to the serialport receivedata event? I want…
user2799180
  • 719
  • 1
  • 11
  • 29
0
votes
1 answer

WinUSB createFile succes but WinUSBInitialize failed

I followed the guide of 'How to access the USB Device' http://msdn.microsoft.com/en-us/library/ff540174.aspx //Open the device //lpDevicePath is '\\?\usb#vid_4255&pid_1000#123456789abc#{a5dcbf10-6530-11d2-901f-00c04fb951ed}' *hDeviceHandle =…
naiveal
  • 1
  • 1
0
votes
1 answer

winusb_initialize returns false

I use ZTE USB Modem device. My device installed to Ports class (driver is usbser.sys). I followed msdn example "How to Access a USB Device by Using WinUSB Functions". Everything is fine until I call the function winusb_initialize.It returns false…
1 2 3
8
9