I have written a c# application that contains a WinAPI low level keyboard hook that I use to prevent all but alphanumeric keys.
The problem is - other programs (those that start at login) also have keyboard hooks (to start applications such as calculator, browser, etc). These programs have already opened these applications before my hook callback has been reached, therefore, there is no way for me to stop the action.
Is there any way to ensure that my hook is called before any others?
EDIT
To clear up confusion - My application is a single executable that has no installer. It is run on demand.
I need to be able to take over other hooks - or simply force my hook callback to be called first - Even though others have already called the SetWindowsHookEx
method.