This section describes the generic WinUSB driver (Winusb.sys) and its user-mode component (Winusb.dll) provided by Microsoft for all USB devices.
In versions of Windows earlier than Windows XP with Service Pack 2 (SP2), all USB device drivers were required to operate in kernel mode. If you created a USB device for which the operating system did not have a native class driver, you had to write a kernel-mode device driver for your device.
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.
This section describes how to use WinUSB to communicate with your USB devices. The topics in this section provide guidelines about choosing the correct driver for your device, information about installing Winusb.sys as a USB device's function driver, and a detailed walkthrough with code examples that show how applications and USB devices communicate with each other.
This section includes the following topics:
- WinUSB Architecture and Modules
- WinUSB (Winusb.sys) Installation
- WinUSB Device
- How to Access a USB Device by Using WinUSB Functions
- WinUSB Functions for Pipe Policy Modification
- WinUSB Power Management
The following table summarizes WinUSB support in different versions of Windows.
|Windows Server 2008||Yes2|
|Windows Server 2003||No|
Yes1: All SKUs of this version of Windows supports WinUSB on x86-based, x64-based, and Itanium-based systems.
Yes2: All SKUs of this version of Windows supports WinUSB on x86-based and x64-based systems.
Yes3: All client SKUs of Windows XP with SP2 service packs support WinUSB. WinUSB is not native to Windows XP; it must be installed with the WinUSB co-installer.
No: WinUSB is not supported in this version of Windows.
The following table shows the high-level USB features that are supported by WinUSB in different versions of Windows.
|Feature||Windows 7||Windows Vista||Windows XP|
|Device I/O control requests||Supported||Supported||Supported|
|Isochronous transfers||Not Supported||Not Supported||Not Supported|
|Bulk, control, and interrupt transfers||Supported||Supported||Supported|
Build date: 1/21/2013