Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cant make the kbfiltr example working #1260

Open
massimilianoomero opened this issue Jan 20, 2025 · 1 comment
Open

Cant make the kbfiltr example working #1260

massimilianoomero opened this issue Jan 20, 2025 · 1 comment
Assignees
Labels

Comments

@massimilianoomero
Copy link

This is maybe more a question than an issue.
I'm probably doing something wrong but I can't make the kbfiltr example working.
Driver is not installing properly,
Here's the error:

This device cannot start. (Code 10)
Insufficient system resources exist to complete the API.

And his is the log in the driver events
Device ROOT\DEVGEN{14BD7B21-F5A0-5E40-8BE8-FE289A97CC87} had a problem starting.
Driver Name: oem156.inf
Class Guid: {4d36e96b-e325-11ce-bfc1-08002be10318}
Service: i8042prt
Lower Filters:
Upper Filters: kbfiltr
Problem: 0x0
Problem Status: 0xC00000E5

The only change I did (except some traces I added) was inserting the real hardware id of the device I want to filter.
The device is a footswitch with three pedals simulating a keyboard.
Here the logs in DbgView
--- FOOTSWITCH --- Keyboard Filter Driver Sample - Driver Framework Edition.
--- FOOTSWITCH --- Built Jan 20 2025 19:35:11
--- FOOTSWITCH --- Enter FilterEvtDeviceAdd
--- FOOTSWITCH --- Entered KbFiltr_CreateRawPdo
--- FOOTSWITCH --- KbFiltr_CreatePdo success 0
--- FOOTSWITCH --- Entered KbFilter_EvtIoInternalDeviceControl
--- FOOTSWITCH --- Entered KbFilter_EvtIoInternalDeviceControl
--- FOOTSWITCH --- hook keyboard received!
--- FOOTSWITCH --- NT_ASSERT 48 48 - This is OK !
--- FOOTSWITCH --- Exiting KbFilter_EvtIoInternalDeviceControl with status 0
--- FOOTSWITCH --- Exiting KbFilter_EvtIoInternalDeviceControl with status 0

Everything seems fine but the driver is not working. I can't understand why.
I'm not new to windows drivers but I barely worked with filter drivers.
I'm not using a coinstaller since I don't know how to use it and I read it's not strictly necessary in Windows 11.

Can someone please help ?

@v-junyli
Copy link

@microsoft/coreos-buses-and-wdf can you please take a look

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants