winapi - WH_KEYBOARD_LL hook only in my process main thread -


Is it possible that WH_KEYBOARD_LL is called hook hook only when my app / thread focus is on? I am currently receiving calls even when the application is not active.

There is no way to set up a hook and filter to prevent firing in some states Some of the forms also apply. After installing it, it will set fire.

Therefore, do anything in your hook function, when your app is inactive, or remove the hook when idle. Or, stay away from the hook completely, and respond to messages in your message queue.

Comments

Popular posts from this blog

java - ImportError: No module named py4j.java_gateway -

python - Receiving "KeyError" after decoding json result from url -

.net - Creating a new Queue Manager and Queue in Websphere MQ (using C#) -