文件名称:Win_HOOK
介绍说明--下载内容来自于网络,使用问题请自行百度
Windows系统采用的是事件驱动的机制,也就是说,整个系统都是通过消息的传递来实现的。而钩子是Windows系统中非常重要的系统接口,它可以截获并处理送给其他应用程序的消息,来完成普通应用程序难以实现的功能。钩子可以监控系统或进程中的各种事件消息,截获发往目标窗口的消息并进行处理。我们可以在系统中安装自定义的钩子,监视系统中特定时间的发生,完成特定的功能。比如截获键盘、鼠标的输入、屏幕取词、日志监视等等。可见、利用钩子可以实现许多特殊而有用的功能。因此,对于高级编程人员来说,掌握钩子的编程方法是很有必要的。本文将详细地介绍钩子的基础知识和钩子的实现。最后介绍两个应用实例,类似金山词霸屏幕取词功能的鼠标钩子和利用键盘钩子屏蔽任意键。-Windows system USES is the event-driven mechanism, that is to say, the whole system are all through the news transfer to fulfill. Windows system and hook is very important in the system interface, which can be intercepted and treatment given to other applications of news, to perform common applications to realize the function. Hook can monitor system, or process of various events news, interception sent to target window message and for processing. We can in system installation custom hooks, surveillance system specific time the occurrence, to perform a specific function. For instance intercepted a keyboard, mouse input, bingmuquci, log surveillance, and so on. Visible, using hook can realize many special and useful function. So, for a high-level programming workers, grasp hook programming method is very necessary. This paper will detail hooks elementary knowledge and the realization of the hook. It introduces two examples, similar powerword bingmuquci function mouse hooks and using a k
相关搜索: 钩子
(系统自动生成,下载前可以参看下载内容)
下载文件列表
Win_HOOK.doc
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.