登录
首页 » Windows核心 » 关于如何锁住键盘和鼠标

关于如何锁住键盘和鼠标

于 2022-02-24 发布 文件大小:471.71 kB
0 225
下载积分: 2 下载次数: 1

代码说明:

钩子实际上是一个处理消息的程序段,通过系统调用,把它挂入系统。每当特定的消息发出,在没有到达目的窗口前,钩子程序就先捕获该消息,亦即钩子函数先得到控制权。这时钩子函数即可以加工处理(改变)该消息,也可以不作处理而继续传递该消息,还可以强制结束消息的传递。对每种类型的钩子由系统来维护一个钩子链,最近安装的钩子放在链的开始,而最先安装的钩子放在最后,也就是后加入的先获得控制权。要实现Win32的系统钩子,必须调用SDK中的API函数SetWindowsHookEx来安装这个钩子函数,这个函数的原型是HHOOK SetWindowsHookEx(int idHook,HOOKPROC lpfn,HINSTANCE hMod,DWORD dwThreadId);,其中,第一个参数是钩子的类型;第二个参数是钩子函数的地址;第三个参数是包含钩子函数的模块句柄;第四个参数指定监视的线程。

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • 列出计算机中所有安装的软件.zip
    列出计算机中所有安装的软件.zip-computer list of all installed software. Zip
    2022-10-14 21:40:03下载
    积分:1
  • 工业pid仿真的演示程序,很不错的,学习用的代码
    工业pid仿真的演示程序,很不错的,学习用的代码-industrial pid simulation demo program, a very good study of the code
    2022-12-01 20:35:03下载
    积分:1
  • MP3转换成AVI的编程!
    MP3转换成AVI的编程!-converted into MP3 AVI programming!
    2022-11-09 17:30:04下载
    积分:1
  • With c# Realize the simulation in memory of the simple file system, the entire f...
    用c#实现的在内存中模拟的简易文件系统,整个文件系统可保存至硬盘。系统设计参照fat格式。文件系统提供的操作: a) 格式化 b) 创建子目录 c) 删除子目录 d) 显示目录 e) 更改当前目录 f) 创建文件 g) 打开文件 h) 关闭文件 i) 写文件 j) 读文件 k) 删除文件 -With c# Realize the simulation in memory of the simple file system, the entire file system can be stored to the hard disk. System design with reference to fat format. File system operation to provide: a) format b) create a subdirectory c) delete the subdirectory d) show the directory e) Change the current directory f) create a file g) open the file h) close the file i) Write a document j) reading a document k ) delete files
    2022-07-22 14:08:32下载
    积分:1
  • 如果你上网后,在windows系统中已经清理了,但是人家还能取到你的上网记录,这是为什么呢?ie有个隐藏历史的程序设置,如果你看了程序,你就明白了!...
    如果你上网后,在windows系统中已经清理了,但是人家还能取到你的上网记录,这是为什么呢?ie有个隐藏历史的程序设置,如果你看了程序,你就明白了!-If you上网, in windows system has been cleaned up, but they can also check your Internet records, which is Why? ie there is a hidden history of the program settings, if you read the procedures, you will understand!
    2022-06-13 12:23:09下载
    积分:1
  • 一个关于在程序中使用定时器的例子,很好的参考
    一个关于在程序中使用定时器的例子,很好的参考-A procedure on the example of the use of timers, a good reference
    2022-02-01 07:27:57下载
    积分:1
  • Each built on the keyboard encode realize process control, we realize the produc...
    对键盘每个建进行编码,实现程序控制,我们对不同的建实现不同的音乐,可以演奏一曲交响曲了-Each built on the keyboard encode realize process control, we realize the production of different music, you can play a symphony of
    2022-07-14 09:28:37下载
    积分:1
  • 使用
    使用-debug参数运行时跟普通程序一样,省略;运行和停止这个服务可以在NT服务管理器中进行,也可以使用控制台命令net shart/stop,如果你愿意增加一些代码,也可以直接启动。停止这个服务还可以使用系统托盘中的Exit菜单-use-debug parameters at runtime with the ordinary procedures, omitted; To stop the operation and services in NT service manager for, you can also use commands net shart/stop, and if you are willing to increase the number of code can also be launched directly. Stop this service can also use the system tray Exit menu
    2022-07-09 18:19:30下载
    积分:1
  • 能够模仿 BASIC 函数的某些 C 语言函数 4K
    能够模仿 BASIC 函数的某些 C 语言函数 4K-BASIC function to imitate some C language function 4K
    2022-06-28 00:43:56下载
    积分:1
  • 改变视图单调的背景
    改变视图单调的背景-monotonous background
    2022-02-06 09:11:41下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载