2

Recently I had to study about hooks. I got the hooks working but while reviewing it I wondered when does it come into the picture. Does it come into picture when

  1. System message queue passes to winProc of the process?
  2. When a message is received by GUI thread message queue of application?

I tried to make both flows. it will be great if anyone can validate my understanding. Flow a/q to point 1. Flow a/q to point 2.

One additional question.

I was able to implement global hooks but I tried hard for process-specific hooks. I couldn't. I tried researching the internet, I got not a single project which implemented thread-specific hooks. I found How to hook this answer which says it's not possible but I didn't find any explanation anywhere. Can somebody throw light on this?

Sumit raj
  • 821
  • 1
  • 7
  • 14

0 Answers0