Skip to content

Instantly share code, notes, and snippets.

@tai
Created March 12, 2015 08:38
Show Gist options
  • Select an option

  • Save tai/38fc87627060a0e9cd94 to your computer and use it in GitHub Desktop.

Select an option

Save tai/38fc87627060a0e9cd94 to your computer and use it in GitHub Desktop.
Crazy USB API/driver status on Windows
After browsing and reading many pages/sources, I'm still not perfecty sure below is correct!
PROJECT develops-DLL has-API works-with-DRIVER
-------------------------------------------------------------------
libusb libusb0.DLL libusb-0.1 libusb0.SYS, libusbk.SYS
libusb-win32 libusb0.DLL libusb-0.1 (filter-driver-version-of-)libusb0.SYS
libusb libusb-1.0.DLL libusb-1.0 WinUSB.SYS
libusbx (*1) libusb-1.0.DLL libusb-1.0 WinUSB.SYS
OpenUSB libusb-1.0.DLL libusb-1.0 WinUSB.sys
libusbk libusbk.DLL libusbk+WinUSB libusbk.SYS, WinUSB.SYS, libusb0.SYS (*2)
Microsoft WinUSB.DLL WinUSB WinUSB.sys
(*1) Project has merged back to libusb.
(*2) Limited. Only part of the libusbk API can be used.
So I guess if my goal is portability, I should be using libusb-1.0.dll with WinUSB.sys.
And if my goal is usability-on-Windows, I should be using libusbk.dll, as this DLL works with any driver, meaning user does not have to worry about it.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment