问题描述
目标是防止任务栏图标闪烁.显然Windows没有禁用闪烁的选项,因此我希望编写一个小程序,该程序可以拦截从 any 应用程序对FlashWindow/FlashWindowEx的所有调用,并直接丢弃它们.
The goal is to prevent taskbar icons from ever flashing. Apparently Windows has no option to disable flashing, so I'm hoping to write a small program that would intercept all the calls to FlashWindow / FlashWindowEx from any application and simply discard them.
可以做到吗?如果是这样,您能否给出任何提示/示例,说明如何(全局)挂接对FlashWindowEx的调用,该调用既可以与32位和64位应用程序一起使用,也可以与通过GetProcAddress(Skype使用该功能)进行的常规API调用和DLL调用一起使用.
Can this be done? If so, could you give any hints/examples how to hook calls to FlashWindowEx (globally) that would work with both 32bit and 64bit apps and also with both regular API calls and DLL calls through GetProcAddress (Skype uses that).
推荐答案
使用 RegisterShellHookWindow()
来拦截和丢弃HSHELL_FLASH
通知.
这篇关于如何为FlashWindowEx创建全局32/64位钩子?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!