Is it possible to detect when a low-level keyboard hook has been automatically disconnected by Windows?

Viewed 4923

I am working on a program that uses keyboard hooks. However, when the PC that the program is running on is just slightly overloaded, it causes Windows to disconnect the hook from the program, causing it to no longer respond to keystrokes.

Is there a way to prevent this, or even better, propose a different way of solving the exact same problem, by using a different architecture, maybe involving a pipeline?

5 Answers

Try increasing priority of the process of your application.

Related