tags:

views:

270

answers:

2

In win32, are thread input queues global to all applications? So Application A can attach itself to application B's thread input queue?

A: 

There's an API that will let you merge your spyware's input queue with the user's banking application. This kind of thing is gradually getting closed down.

Windows programmer
Sometimes we need to hook into other applications, not just for spyware.
AttachThreadInput
Windows programmer
+1  A: 

AttachThreadInput will do it in fact. A thread in application A can attach itself to the message queue owned by a thread in application B, IF the two processes exist on the same desktop AND process B is not at a higher integrity level.

Chris Becke