Usb Drivers Development Kit for Windows
Find a file
Sameeh Jubran 2cd4aa5262 Build: Migrate to VS 2015 and add Win10 configurations
This commit migrates from VS 2013 to VS 2015. Beside the auto conversion
which was performed by VS this commit includes the following fixes
which enabled the builld to work:

Win (7, 8, 8.1, 10):
* Set the KMDF Version Major to 1.
* Set the KMDF Version Minor to 11.

Win XP:
* Add _When_ define.
* Add empty implementation to guard functions which else would cause an
  unresolved symbols.
* Add path to WinDDK's wdfinstaller.h in UsbDkHelper project.
* Add "GetDriverProjectAttributes" and "GetPackageFiles" targets to
  UsbDkController, UsbDkHelper and UsbDkInstHelper project files.

Signed-off-by: Sameeh Jubran <sameeh@daynix.com>
Signed-off-by: Dmitry Fleytman <dfleytma@redhat.com>
2017-04-03 15:06:47 +03:00
Documentation Tools: Add boot-time binary tracing scripts 2017-04-03 11:32:37 +03:00
Tools Build: Migrate to VS 2015 and add Win10 configurations 2017-04-03 15:06:47 +03:00
UsbDk Build: Migrate to VS 2015 and add Win10 configurations 2017-04-03 15:06:47 +03:00
UsbDk Package Build: Migrate to VS 2015 and add Win10 configurations 2017-04-03 15:06:47 +03:00
UsbDkController Build: Migrate to VS 2015 and add Win10 configurations 2017-04-03 15:06:47 +03:00
UsbDkHelper Build: Migrate to VS 2015 and add Win10 configurations 2017-04-03 15:06:47 +03:00
UsbDkInstHelper Build: Migrate to VS 2015 and add Win10 configurations 2017-04-03 15:06:47 +03:00
.editorconfig UsbDk: Introduce .editorconfig file 2014-06-22 09:31:22 +03:00
.gitignore Build: Migrate to VS 2015 and add Win10 configurations 2017-04-03 15:06:47 +03:00
ARCHITECTURE ARCHITECTURE: Extend hider API description 2015-02-26 15:49:46 +02:00
buildAll.bat Build: Migrate to VS 2015 and add Win10 configurations 2017-04-03 15:06:47 +03:00
LICENSE UsbDk: Add license-related files and headers 2014-05-20 11:56:20 +03:00
MAINTAINERS Global: Introduce MAINTAINERS file 2015-02-17 09:49:14 +02:00
README.md README: Added notice about Windows 7 and required KB update 2017-04-03 11:19:10 +03:00
UsbDk.sln Build: Migrate to VS 2015 and add Win10 configurations 2017-04-03 15:06:47 +03:00

UsbDk

UsbDk (USB Development Kit) is a open-source library for Windows meant to provide user mode applications with direct and exclusive access to USB devices by detaching those from Windows PNP manager and device drivers and providing user mode with API for USB-specific operations on the device.

The library is intended to be as generic as possible, support all types of USB devices, bulk and isochronous transfers, composite devices etc.

Library supports all Windows OS versions starting from Windows XP/2003.

Documentation

  • See ARCHITECTURE document in the source tree root.
  • See Documentation folder in the source tree root.
  • See UsbDkHelper\UsbDkHelper.h UsbDkHelper\UsbDkHelperHider.h for API documentation

Building

Tools required:

  • Visual Studio 2013/Visual Studio 2013 Express update 4 or newer
  • WDK 8.1
  • WDK 7.1 (for Windows XP/2003/Vista/2008 builds)

Compilation

Just open UsbDk.sln from the source tree root in Visual Studio 2013 and compile desired configuration.

Installing and running

Use UsbDkController.exe to install/uninstall and verify basic operation. Run UsbDkController.exe without parameters for command line options.

Known issues

  • Installation on 64-bit versions of Windows 7 fails if security update 3033929 is not installed. Reason: UsbDk driver is signed by SHA-256 certificate. Without this update Windows 7 does not recognize the signature properly and fails to load the driver.