简体   繁体   English

线程输入队列是全局的吗?

[英]Are Thread Input queues global?

In win32, are thread input queues global to all applications? 在Win32中,线程输入队列是否对所有应用程序都是全局的? So Application A can attach itself to application B's thread input queue? 因此,应用程序A可以将自身附加到应用程序B的线程输入队列吗?

AttachThreadInput will do it in fact. AttachThreadInput实际上会做到这一点。 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 . 如果两个进程存在于同一桌面上并且进程B的完整性级别不高,则应用程序A中的线程可以将自身附加到应用程序B中的线程所拥有的消息队列中。

There's an API that will let you merge your spyware's input queue with the user's banking application. 有一个API,可让您将间谍软件的输入队列与用户的银行应用程序合并。 This kind of thing is gradually getting closed down. 这种事情正在逐渐被关闭。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM