捕获正在运行的进程的 FlashWindowEx 事件
我有一个已经在运行的应用程序 - 它时不时地触发 FlashWindowEx 事件(Windows 7 图标闪烁)。我想捕捉这个事件,但我似乎找不到任何关于如何捕捉的好信息。
我的想法是,它会像这样:
- 使用 Process.GetProcessesByName 挂钩正在运行的进程
- 为 FlashWindowEx 设置事件处理程序
- 捕获它并执行
我认为我的问题是的任何操作:
这可能吗?
- 有没有办法从正在运行的进程中获取可用事件的列表?
- 我如何连接到 FlashWindowEx?
I have an app that is already running - every now and then it triggers a FlashWindowEx event (the windows 7 icon flashes). I would like to capture this event but I can't seem to find any good info on how.
My thoughts were that it would go like this:
- Hook into running process using Process.GetProcessesByName
- Set up event handler for FlashWindowEx
- Catch it and do whatever
I guess my question is:
Is this possible?
- Is there a way to get a list of available events from a running process?
- How would I hook into FlashWindowEx?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
WH_SHELL
挂钩通知您当窗口闪烁时。根据文档:nCode
=HSHELL_REDRAW
wParam
= 窗口句柄lParam
=TRUE< /code> 如果窗口闪烁,则
FALSE
否则。The
WH_SHELL
hook notifies you when a window is flashing. According to the documentation:nCode
=HSHELL_REDRAW
wParam
= the handle of the windowlParam
=TRUE
if the window is flashing,FALSE
otherwise.