首页 | 官方网站   微博 | 高级检索  
     

Windows的钩子技术及实现
引用本文:倪步喜.Windows的钩子技术及实现[J].计算机与现代化,2007(1):28-30.
作者姓名:倪步喜
作者单位:温州职业技术学院,浙江,温州,325035
摘    要:使用钩子技术,应用程序可以监视指定窗口的某种消息.当截获到消息时,应用程序的钩子函数既可以加工处理该消息,也可以继续传递该消息,还可以强制结束消息的传递,因此,应用程序可以实现普通程序难以实现的功能.本文介绍了钩子的基本概念和类型,还介绍了钩子技术实现的方法,并给出了鼠标和键盘系统钩子的应用示例,为工程人员开发和使用钩子提供了一定的技术支持.

关 键 词:钩子  钩子函数  消息  VC  Windows  钩子技术  Implementation  Technique  支持  人员开发  工程  应用程序  系统钩子  键盘  鼠标  方法  类型  功能  普通程序  加工处理  钩子函数  窗口  使用
文章编号:1006-2475(2007)01-0028-03
收稿时间:2006-02-23
修稿时间:2006年2月23日

Windows Hook Technique and Implementation
NI Bu-xi.Windows Hook Technique and Implementation[J].Computer and Modernization,2007(1):28-30.
Authors:NI Bu-xi
Affiliation:Wenzhou Vocational and Technical College, Wenzhou 325035, China
Abstract:Using hook technique,application program may monitor some messages of specified window.When a certain message is captured,the hook function of application program may process this message,and also may continue to deliver this message,and in addition,it may suspend the message delivery immediately,therefore,the application program may realize some functions that common program complete difficultly.This paper introduces the conception and types of hook,and introduces the method to realize the hook technique,and also shows an application example of mouse and keyboard system hook,which provides project developer certain technical support of developing and using hook.
Keywords:hook  hook function  message  VC  
本文献已被 CNKI 维普 万方数据 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司    京ICP备09084417号-23

京公网安备 11010802026262号