C# Help (Raw Input)
itdimk ^^
1
Reputation point
Hi!
A function "RegisterRawInputDevices(RawInputDeviceRegistration[] pRawInputDevices, uint uiNumDevices, uint cbSize)" from user32.dll blocks the main GUI thread.
Is there a way to keep GUI active?
Repo is here: https://github.com/itdimk/NativeWindowPlay
There's a function "Register Devices" inside class "MacroRecorder".
Internally, it calls RawInputDevice.RegisterDevice which calls RegisterRawInputDevices from user32.dll.
Problem is, after that call GUI got completely blocked.
I tried to call it in a new thread but it doesnt help :c
Developer technologies | Windows Presentation Foundation
Developer technologies | Windows Presentation Foundation
A part of the .NET Framework that provides a unified programming model for building line-of-business desktop applications on Windows.
Sign in to answer