Slion / SharpLibHid

C# HID Library using Windows Raw Input.
http://publish.slions.net/HidDemo/
58 stars 18 forks source link

Miss hid report when the application window is not focused #8

Closed alex4me closed 3 years ago

alex4me commented 4 years ago

After switching to another applictaion, the hook method does not respose to the report due to the fact that the Handle in RAWINPUTDEVICE is a handle of current process.Is there any method to globally hook hid report? Thanks.

Slion commented 3 years ago

You have to use RIDEV_INPUTSINK or RIDEV_EXINPUTSINK depending of what you need: See: https://docs.microsoft.com/en-us/windows/win32/api/winuser/ns-winuser-rawinputdevice