Interception of pressing additional buttons

Want to write your own software to intercept keystrokes laptop. You need to intercept the clicking is not dependent on the current application or even if nothing is running or inactive (desktop).

I need to write a hook, shove it in *.dll and injecting in all processes and wait for the clicks? Or what?

Please explain the application architecture.
October 8th 19 at 01:16
2 answers
October 8th 19 at 01:18
If you need to change in your application that's what
The second option is to track the desired active window and change the destination on the right and then back again.
October 8th 19 at 01:20
Options:
1. You can put a global hook (needs to be implemented in a dll, in exe global work), check hook this dll will vgryztsya in all processes of the desktop.
2. To look in the direction of the RIT (Raw Input Thread). In practice, never tried it.
3. Find or write a keyboard filter driver (which is much harder). Unlike the first 2 options, working in user mode, will run in kernel mode.
Thanks, I'll try the first option. - Neha11 commented on October 8th 19 at 01:23

Find more questions by tags C++Windows