计算机与现代化 ›› 2009, Vol. 1 ›› Issue (10): 141-3.doi: 10.3969/j.issn.1006-2475.2009.10.039

• 应用与开发 • 上一篇    下一篇

VB编程中使用钩子技术实现程序窗口监控

潘景新   

  1. 韶关学院计算机科学学院,广东 韶关 512005
  • 收稿日期:2009-04-20 修回日期:1900-01-01 出版日期:2009-10-15 发布日期:2009-10-15

Realization of Program Window Monitor by Hook Technology in VB Program

PAN Jing-xin   

  1. College of Computer Science, Shaoguan University, Shaoguan 512005, China
  • Received:2009-04-20 Revised:1900-01-01 Online:2009-10-15 Published:2009-10-15

摘要:

应用钩子技术可以监视Windows系统的各种事件消息,对系统实施控制。本文介绍在VB编程中使用API函数创建系统钩子的方法,以及设计钩子函数实现对程序窗口监控。

关键词: VB编程, 消息机制, 钩子, 程序窗口监控

Abstract:

By using hook technology, the event messages of Windows system can be monitored and the system can be controled. This paper introduces how to use API function in VB programing to set up hook, and realizes program window monitor by designing the hook function.

Key words: VB programing, message mechanism, hook, program window monitor