节点文献

关于Hook技术以及Windows消息的研究

A Study on Hook Technology and Windows Message

  • 推荐 CAJ下载
  • PDF下载
  • 不支持迅雷等下载工具,请取消加速工具后下载。

【作者】 向辉沈建国

【Author】 Xianghui 1, Shenjianguo 2 (1. East China Normal University, Shanghai 200062, China; 2 Shanghai Business School, Shanghai 200235, China)

【机构】 华东师范大学电子系上海商学院 上海市200062上海市200235

【摘要】 Windows消息在系统及应用程序的运行中起着关键的作用,每一次键盘、鼠标的点击都会有消息的传递,应用程序通过对消息的响应来实现与用户的交互。钩子(Hook)函数作为Windows编程中的一种强有力的工具,可以有效地截获Windows系统内部传递的消息,在消息到达目标窗口的处理函数之前先对消息做出相应处理,从而实现对应用程序的监视与控制。文中描述了Windows消息的构成,介绍了Hook函数的安装、释放及类型,最后介绍了一个Hook函数实现应用程序操作的捕捉的实例。

【Abstract】 Windows message plays a key role in the operation of system and application. Every click on the keyboard and mouse will transfer a message. Application can interact with user by responding to the message. As a powerful tool in Windows programming, Hook can effectively intercept the internal message transferred by Windows system. Before the message reaches the functional processing of the target window, Hook can have already dealt with it, and implement the control and monitoring of application. This article describes the structure of Windows message in detail, and introduces how to install or remove the Hook and the types of Hook in system. Finally, it gives an example of Hook function capturing the operation of application.

【关键词】 钩子(Hook)函数Windows消息事件按钮捕捉
【Key words】 HookWindows messageeventbutton capture
  • 【文献出处】 电子工程师 ,Electronic Engineer , 编辑部邮箱 ,2004年12期
  • 【分类号】TP316.6
  • 【被引频次】30
  • 【下载频次】511
节点文献中: 

本文链接的文献网络图示:

本文的引文网络