API中的AttachThreadInput函数attachthreadinput,可将某一线程的输入消息与另一线程关联attachthreadinput,尤其在自身窗口无输入焦点却需获取当前焦点窗口键盘输。
使用AttachThreadInput函数可以将当前进程的输入与指定进程的输入关联起来,从而实现改变其attachthreadinput他进程的输入法状态具体步骤如下1 获取目标进程的主线。
Attaches or detaches the input processing mechanism of one thread to that of another thread Syntax BOOL WINAPI AttachThreadInput _In_ DWORD idAttach, _In_ DWORD。
联系电话:18300931024
在线QQ客服:616139763
官方微信:18300931024
官方邮箱: 616139763@qq.com