microsoft/windows-drivers-rs

HID hidport.h headers missing for UMDF build

Open

#355 aperta il 14 mag 2025

Vedi su GitHub
 (3 commenti) (0 reazioni) (0 assegnatari)Rust (128 fork)auto 404
good first issue

Metriche repository

Star
 (1886 star)
Metriche merge PR
 (Metriche PR in attesa)

Descrizione

According to the examples for HID miniport drivers. It should be possible to implement HID miniport drivers with UMDF builds.

Example here: https://github.com/microsoft/Windows-driver-samples/tree/main/hid/vhidmini2

This requires types from hidport.h that has been marked as only available in kernel mode drivers here: https://github.com/microsoft/windows-drivers-rs/blob/b82b4278f7085cfb0165d7cc6ffd6e0ccaad41ff/crates/wdk-build/src/lib.rs#L753

That limitation should likely be lifted for generation of bindgen headers.

Guida contributor