联盟首页 协同开发 共创软件 开放源码 软件工程 共创论坛 关于联盟
  您的位置 » 开放源码库【成熟 - 项目摘要 首页 | 分类源码 | 提交源码 | 下载统计 | 原创源码 | 成熟源码 | 代码片断
 
 Hooking the Keyboard - 项目摘要
摘要 | 管理 | 论坛
文档 | 软件包

源码库中源码数量为19221
有贡献人员名单:

-= 更多 =-
  • ffdshow
  • jasperreports
  • PoolMan
  • Air Traffic Controller
  • virtualdub-win
  • CppUnit
  • Apache-SSL-Jserv
  • FCK editor
  • Async Professional
  • GLgraph
  • -= 更多 =-

    项目描述:
    There are two types of Hooks - Thread specific hooks and Systemwide hooks. A thread specific hook is associated with particular thread only (Any thread owned by the calling process.). If you want to associate the hook with other processes and threads, you will have to use a systemwide hook. There is a hook procedure associated with a hook. This procedure is always called when the particular event occurs. For eg. the mouse. When there is an event associated with the mouse, this hook procedure is called. The hook is set by calling the function SetWindowsHookEx( ). The hook is removed by calling UnhookWindowsHookEx( ).

    有两种类型的Hooks-特定线程的hook和系统hook。特定线程hook只和一个线程相关联(由调用进程拥有的任意线程)。如果你想用hook关联其它的进程和线程,你需要使用系统hook。有一个hook过程和hook相关联,当特定事件发生时总是调用这个过程,如鼠标。当有一个事件和鼠标相关联时,会调用这个hook过程。通过SetWindowsHookEx( )函数来设置hook,UnhookWindowsHookEx( )函数来删除hook。
    来源: http://www.codeguru.com/system/KBHook.html
    类别:
    发布者: cbd002

    最新发布源码包
    软件包 版本号 日期 本地下载
    KBHookDemo  1.0  2004-03-23 下载

    原始下载连接(国外) http://www.codeguru.com/code/legacy/system/KBHookDemo.zip

      » 合 作 伙 伴