-
Notifications
You must be signed in to change notification settings - Fork 1.3k
HID reports are not delivered? consumed? by VHF? #523
Comments
Quotes from @FansteKaRiNa1998 from #522
@FansteKaRiNa1998 what works for you? I thought that you said that you have a problem?
That line was already ok here, I took the whole HIDInjector project as a basis, I didn't create a project from scratch. |
Did you look at the device manager when you tested keyboard? When testing for a gamepad, it would appear only in USB Game Controllers, while it wouldn't appear in Device Manager. Also, I could uninstall driver at any time. The difference with testing a keyboard is that it created a HID compliant device in the Keyboard section of Device Manager, and I couldn't uninstall the main driver until I uninstalled HID compliant keyboard I have just added. Maybe the problem is not registering it in the system? This is a quote from https://docs.microsoft.com/en-us/windows-hardware/drivers/hid/virtual-hid-framework--vhf- This probably means what I have just described: the source is an unknown device and thus it doesn't listen, while, for the keyboard, it properly registers the device object and thus it listens to it. |
Unfortunately the kernel mode debugging tools are a disaster. I could not connect properly with the Visual Studio debugger, but oddly enough I CAN connect with WinDbg Preview from the Windows Store. However with that I'm not sure what to do. Having my custom code deployed I did see that there is a Unfortunately it still doesn't give a sign of life.. |
In which Visual Studio are you working? Also, describe the problem with kernel mode debugging. |
I’m using visual studio 2015 update 3 with WDK 15063 since unfortunately that is the only usable combination now. I tried WDK 16278 on vs 2017 15.4.0 preview I but that didn’t install, but somehow the windbg version in visual studio 2015 got upgraded to 16278.. Visual studio 2015 can provision the target pc properly and also it can deploy the driver. However that builtin windbg version does not connect to the target of while the WinDbg Preview app from the windows store can connect to the target fine. So not a problem with the target pc. Lastly I didn’t know how to use that separate Windbg Preview app - it didn’t recognize the source files I loaded, therefore I couldn’t set breakpoints properly |
You mean you deploy the driver successfully but you don't see any messages shown? |
Yes the driver is deployed successfully, but when running the |
Okay, we recognized that problem earlier. I am asking you about KdPrint/DbgPrint messages. I thought they also don't display? |
Aah - You mean I should see them in WinDbg without having a breakpoint set? I didn't notice them, but I'll have a look again when I'm home. Did you do any kernel debugging? Did you see these messages? |
For that, there are three possible reasons that I know of:
Can you execute DebugView on that Win 10 tablet? If anything can see these messages, than the DebugView in administrative mode (check Capture -> Capture Kernel is checked) can see these messages. This is going off the current topic, but I didn't understand clearly what is your problem. I will try to stick to the topic. |
I tried I don't know what I'm missing here... |
You must restart test PC after making changes in its RegEdit |
I didn’t do it via regedit, I did it directly via WinDbg. Those commands should have effect immediately. And they triggered other log messages from Windows. |
I really can't help you other way, I am not familiar with the utility. |
As discussed in #522 and in the comments on https://docs.microsoft.com/en-us/windows-hardware/drivers/hid/virtual-hid-framework--vhf-:
It seems that custom HID reports do not work well with the HID Injector. I could inject the keyboard HID reports from the sample, they seemed to work.
However when I changed the HID reports AND the HID report descriptors to emulate a radial controller, nothing happened anymore. The wheel tab in the settings app appeared (showing that windows properly recognized the HID report descriptors) but the HID events did not work.
I'll post code later so that it can be reproduced.
The text was updated successfully, but these errors were encountered: