Windows Virtual Devices — Virtual USB Driver and C++ SDK
Make Windows see a virtual USB device from your app.
First steps · Develop · Maintain
First steps
Use the matching driver and try an included device example first.
Version without the one-hour demo limit
In Discord, choose Add Friend and enter titancsa. Send the project name. Purchase details are sent privately.
Create and control virtual USB keyboard, mouse and gamepad devices on
Windows 10/11 x64. Define raw descriptors, endpoints and reports with a
two-file C++17 SDK: VirtualDevice/VirtualDevice.h and VirtualDevice.cpp.
Demo 0.1.0.0 — Microsoft-signed kernel driver. One hour per Windows kernel boot. Use the matching driver, SDK and installers from this edition.
Download demo ZIP · UI installer · Console installer · SDK + source
C++ API | Graphical examples |
Installation | Scope and validation
Seven operations for every protocol
| Operation |
Purpose |
VirtualDevice::Check(config) |
Validate the raw description offline |
VirtualDevice::Status() |
Read capabilities, owned devices and demo state |
VirtualDevice::Connect(config) |
Create an owned virtual USB device |
VirtualDevice::Disconnect(device) |
Disconnect it explicitly |
VirtualDevice::Send(device, bytes) |
Send through the sole declared IN endpoint |
VirtualDevice::Receive(timeout) |
Receive host output, controls or device-state events |
VirtualDevice::Reply(output, bytes, stall) |
Complete a delegated control request |
For multi-IN devices, use Send(device, endpoint, bytes). The implicit endpoint
is selected once during creation; a missing or ambiguous IN endpoint is rejected.
No device family, byte count or manual session management is required.
The move-only Device object owns its device. Keep it alive while sending and
receiving. Destruction or process termination disconnects owned virtual devices.
Creation is asynchronous: service output/control requests during enumeration
and wait for configuration before normal input. Send success means accepted
into the bounded queue, not consumed by an application.
Build the SDK and examples
Demo/evaluation driver source is available; see driver/README.md for
build instructions and separate evaluation-source terms. Those terms apply to
Titan-authored driver code. Third-party source licenses and existing application/SDK
licenses remain applicable. Full/commercial implementation and private signing or
activation material are excluded.
Install Visual Studio 2022 Desktop C++, a Windows SDK, CMake and .NET Framework
reference assemblies, then run:
powershell -ExecutionPolicy Bypass -File .\Build.ps1
The default build compiles user-mode sources and runs offline checks. With the
matching signed payload from the SDK ZIP it also builds the installers. A source-only
checkout defers installer packaging until that payload is supplied. The build never
installs a driver or creates a device. -Target Installers requires the matching
Microsoft-signed package and has no unsigned override.
The graphical examples cover a USB keyboard, mouse, Xbox 360/XInput, DualShock 4,
Xbox One/GIP and a raw Descriptor Workshop. --preview opens the five native
control panels offline. Normal device creation requires the matching signed
driver and administrator rights. Device-specific descriptions and report
encoders live in the examples; the SDK contains no built-in device profiles.
Demo and supported scope
The demo allowance is one hour per Windows kernel boot, starting at the
first successful virtual-device creation and shared across applications.
Sleep counts; closing or reinstalling does not reset it. Expiry disconnects
devices and refuses creation/transfers until Windows Restart. For the
unrestricted version, contact titancsa on Discord. No paid edition is
included or prepared here.
The driver uses KMDF / UdeCx with USB low/full/high speed, one configuration,
alternate setting zero and interrupt/bulk endpoints. SuperSpeed, isochronous
audio, external hubs and additional configurations are outside the implemented
scope. A VID/PID change alone does not reproduce firmware or console
authentication. The GIP example uses the documented PC USB security opt-out
interface and requires Windows 10 21H2 or later.
Source and notices
This demo is based on Vdevice. Original MIT and third-party notices are retained
in LICENSE and licenses/NOTICE. Selected example descriptors/protocol data
originate from ViGEmBus under BSD-3-Clause
and Microsoft’s MS-GIPUSB documentation. The examples are PC protocol examples,
not complete console firmware replicas. Demo driver source is documented in driver/README.md; full/commercial implementation is excluded; driver binaries have separate distribution terms.
For physical input interception, see
Windows Input Filter.
Responsible use
Use the software only on systems you are authorized to control and in compliance
with applicable laws, third-party rights and service rules. It is intended for
accessibility, customization, research, testing and software development. You
are responsible for your actions, including illegal or unauthorized use.
The software is provided “AS IS”, without warranties to the extent permitted
by law. Existing licenses and liability terms remain applicable.
SDK and packages
Choose a language in the SDK and package guide for exact install commands and examples. If your example requires a driver or app, install it separately.
Commercial integration and support
评论