本文介绍了哪个Windows进程正在显示给定的任务栏系统任务栏图标?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何查找哪个Windows进程正在显示给定的任务栏系统任务栏图标?

How do I find which Windows process is displaying a given taskbar system tray icon?

推荐答案

Shell_NotifyIcon 通过发送特殊的将WM_COPYDATA消息发送到任务栏,如果您将其插入资源管理器并将其子类化,则可以捕获此消息,然后可以通过在COPYDATAstruct.NOTIFYICONDATA.hwnd上调用GetWindowThreadProcessId来获取进程ID

Shell_NotifyIcon works by sending a special WM_COPYDATA message to the taskbar, if you inject into explorer and subclass the taskbar you could catch this message, you could then get the process id by calling GetWindowThreadProcessId on COPYDATAstruct.NOTIFYICONDATA.hwnd.

...当然,这是一种黑客行为,它依赖于随时可能更改的未记录信息!

...and of course, this is a hack and relies on undocumented information that could change at any time!

这篇关于哪个Windows进程正在显示给定的任务栏系统任务栏图标?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-07 09:38