如何为FlashWindowEx创建全局32/64位钩子? [英] How to create a global 32/64bit hook for FlashWindowEx?

查看:167
本文介绍了如何为FlashWindowEx创建全局32/64位钩子?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

目标是防止任务栏图标闪烁.显然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).

推荐答案

使用 查看全文

登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆