The project is in a healthy, maintained state
Product native SDK operations through a UTF-8 JSON C ABI; driver installed separately.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
 Dependencies

Runtime

>= 1.1, < 2
 Project Readme

HID Access Control - Windows HID Device Access Filter Driver and C++ SDK

Choose which applications can open compatible controllers, with per-device rules, a small C++ SDK and a native Windows interface. Use it to give a remapper access to a physical controller while other applications use its virtual output, or to test application/device routing.

Important

Full driver version without demo restrictions: Discord titancsa. Open Discord, choose Friends > Add Friend, enter titancsa, then message me with HID Access Control for commercial availability, pricing and license instructions.

Download the signed demo | SDK | Example | Installation | Validation

Microsoft-signed driver included. The self-contained UI and console installers embed the matching filter and boot-clock package. Administrator rights and a Windows restart may be required. Test mode is not required. Setup verifies catalog trust and package membership before installation.

Native interface in labelled offline preview mode

What it does

  • Allow listed applications: selected programs can open the chosen device; other user-mode callers are refused.
  • Deny listed applications: selected programs are refused; other callers retain access.
  • Block all user-mode applications: refuse new user-mode opens of the chosen device.
  • Set a different mode and executable list for each selected device; replace the entire policy atomically.
  • Read an access log containing the requesting process, application path, device and matched decision reason. Copy a diagnostic report from the UI.
  • Stop hiding immediately, or close the owning application to restore ordinary access automatically.

Policies concern new device opens. Existing handles keep their access until closed. The filter does not remove PnP nodes, change device identity or edit input reports. It adds no policy work to each report. Kernel-mode opens remain transparent. Applications that share a Windows broker are seen as that broker; this is not a per-web-tab permission system or a security boundary against administrators/kernel code.

The first version targets Windows 10 2004+ / Windows 11 x64. HID gamepad/joystick collections are classified from their generic Windows usage identities, with no model-specific VID/PID list. XUSB and GIP class paths are included in the filter architecture; their physical transport/app compatibility must be qualified separately. Keyboard, mouse, unclassified HID collections and HID transport parents are protected from policy selection in the kernel. A single physical controller may expose several Windows nodes.

Use the interface

  1. Download and extract the complete release ZIP, or download a standalone setup EXE from the same release.
  2. Run HidAccessSetup.exe and choose Install / reinstall. Use Windows Restart when requested, so Windows rebuilds existing device stacks.
  3. Open HidAccessApp.exe as administrator. Refresh the device list and select the controller collection you want to manage.
  4. Choose its access mode and add the executable files concerned. For example, allow your remapper's EXE for the physical controller and let games open the separate virtual controller.
  5. Start the session. Changes to an active policy take effect for subsequent device opens. Close and reopen the receiving program if it already owns a handle.
  6. Use Stop to restore access. Closing the UI also clears its session policy. Use Copy report to inspect installation, devices and access decisions.

The UI is an example of the same public SDK; there is no separate application-only hiding mechanism. One application owns configuration at a time. An access denial in the log identifies this filter's decision; an allowed open may still fail later in another driver or in the receiving application. HidAccessApp.exe --preview provides a labelled synthetic tour without opening a driver session.

Minimal C++ integration

Add SDK/HidAccess.cpp, SDK/HidAccess.h and Protocol/HidAccessProtocol.h to a C++17 Windows x64 project. Link advapi32.lib. Failures throw std::system_error with a stage and Windows error code.

#include "HidAccess.h"
#include <algorithm>
#include <iostream>

int main() try {
    HidAccess::Session access;
    const auto devices = access.Devices();
    const auto pad = std::find_if(devices.begin(), devices.end(),
        [](const auto& d) { return d.supported; });
    if (pad == devices.end()) return 1;

    access.Apply({{pad->token, HidAccess::Mode::AllowListed,
                   {L"C:\\Tools\\MyRemapper.exe"}}});
    std::cout << "Policy active. Press Enter to restore access.\n";
    std::cin.get();
} catch (const std::exception& error) {
    std::cerr << error.what() << '\n';
    return 1;
}

Choose the intended device explicitly in a real application; the short example uses the first supported controller. The selected executable must exist. Tokens identify a current device attachment and are obtained again after reconnecting/restarting. The SDK resolves Windows paths to native image paths and infers rule counts and application masks. See the runnable example and SDK reference.

Function Purpose
HidAccess::Probe() Read installation/service state without activating a policy
Session::Devices() List attached filter nodes, tokens and protection flags
Session::Apply(rules) Validate and atomically replace this session's rules
Session::GetStatus() Read activity, demo allowance, counters and generation
Session::ReadEvents() Drain a bounded batch of access decisions
Session::Stop() Clear the policy; an empty Apply also stops it
Session destructor Close ownership and restore access, including after exceptions

Demo and installation

The demo allows one hour per Windows kernel boot, starting with the first successful active policy. Time continues while hiding is stopped or the application is closed. At expiry policies are disabled and subsequent device opens pass through. Use Windows Restart for a new allowance; closing, reinstalling and reopening applications does not renew it.

The Microsoft-signed driver package contains the access filter and a small resident boot-clock driver, TitanHidAccess.sys and TitanHidAccessClock.sys. The clock is started on first activation and stays resident until restart. No user-mode background service or online account is needed for this demo. Setup and clean removal.

Build and source

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.

Run ./Build.ps1 -Test with Visual Studio 2022 C++ tools, CMake and a Windows SDK. It embeds the supplied signed binaries from Installer/Driver into both setup EXEs. -Asan -Test enables user-mode memory checks. -DriverPackageDirectory selects another matching opaque signed package; runtime setup still verifies its trust and catalog membership. Building never installs a driver or enables a live policy automatically.

App/          Native UI example and labelled offline preview
SDK/          HidAccess.h + HidAccess.cpp and API notes
Protocol/     Bounded public wire ABI
Examples/     Small independent C++ example
Installer/    UI/console setup source and opaque signed driver package
Tests/        Offline protocol and bounds validation
docs/         Installation, validation and interface image
licenses/     Separate driver evaluation terms

The public user-mode source is MIT licensed; Demo/evaluation driver source is documented in driver/README.md. The opaque signed driver files have separate demo terms. This independent project addresses the input-device access-control use case popularized by Nefarius HidHide, with its own SDK, session ownership and per-device policy model. It is not affiliated with Nefarius and does not implement HidHide's binary/API contract. Live behavior and compatibility are documented in validation.

Use only on systems you own or are authorized to administer. The software is supplied as-is under its applicable license. Users remain responsible for lawful use and applicable third-party rules; no guarantee of universal compatibility, security isolation or absence of defects is made.

Paquets et installation

Les sources, licences, guides API et exemples sont regroupes dans le depot SDK dedie. Choisis le paquet a installer puis execute sa commande dans son dossier.

Registre Paquet Installation / utilisation
vcpkg hid-access-control vcpkg install hid-access-control:x64-windows
Conan hid-access-control conan install --requires=hid-access-control/0.1.0 -r titancsa --build=missing -s compiler.cppstd=17
NuGet HID-Access-Control.Native Install-Package HID-Access-Control.Native -Version 0.1.0
NuGet HIDAccessControl.SDK dotnet add package HIDAccessControl.SDK --version 1.0.0
PyPI hid-access-control Commande prevue apres publication : python -m pip install hid-access-control==1.0.0
Conda hid-access-control conda install --override-channels -c https://raw.githubusercontent.com/TitanCSA/sdk-packages/089bc73095aa8eda89bacbe10d0b9e58394b0207/conda-channel -c conda-forge hid-access-control (canal TitanCSA)
crates.io hid-access-control cargo add hid-access-control@1.0.0
npm hid-access-control Commande prevue apres publication : npm install hid-access-control@1.0.0
Maven Central io.github.titancsa:hid-access-control io.github.titancsa:hid-access-control:1.0.0 (pom.xml / Gradle)
JitPack com.github.titanfyre:HID-Access-Control com.github.titanfyre:HID-Access-Control:java-sdk-v1.0.0 (avec le depot JitPack)
Go Modules github.com/titanfyre/HID-Access-Control/HID-Access-Control-Go-modules go get github.com/titanfyre/HID-Access-Control/HID-Access-Control-Go-modules@v1.0.0
pkg.go.dev github.com/titanfyre/HID-Access-Control/HID-Access-Control-Go-modules Documentation : https://pkg.go.dev/github.com/titanfyre/HID-Access-Control/HID-Access-Control-Go-modules@v1.0.0
PowerShell Gallery HIDAccessControl Install-Module HIDAccessControl -RequiredVersion 1.0.0 -Scope CurrentUser
pub.dev hid_access_control dart pub add hid_access_control:1.0.0
RubyGems hid-access-control gem install hid-access-control -v 1.0.0
Packagist titancsa/hid-access-control composer require titancsa/hid-access-control:1.0.0

Pour vcpkg et Conan, configure d abord le registre TitanCSA avec le guide complet. Le guide explique aussi Maven/Gradle, les prerequis et le chargement des DLL. Les pilotes/applications du produit sont installes separement. Les commandes marquees prevues ne sont pas encore disponibles.

Les anciens imports Go et versions JitPack gardent leurs tags. Pour les anciennes archives SDK, utilise les liens de remplacement.