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 "RegisterDevices" inside class "MacroRecorder". Internally, it 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