How to create a global 32/64bit hook for FlashWindowEx?

孤人 提交于 2020-02-29 07:44:08

问题


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.

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).


回答1:


Use RegisterShellHookWindow() to intercept and discard HSHELL_FLASH notifications.



来源:https://stackoverflow.com/questions/23695718/how-to-create-a-global-32-64bit-hook-for-flashwindowex

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!