摘要: 调用api来进行hook操作,下面的代码就可以完成功能 using System; using System.IO; using System.Reflection; using System.Runtime.InteropServices; using System.Windows.Forms; 阅读全文
posted @ 2018-07-03 09:35 孤夏 阅读(462) 评论(0) 推荐(0) 编辑
摘要: 一般来说会用到hook(钩子),即获取系统的按键或者鼠标动作,然后在系统响应之前执行自定义动作,或者直接截断这个消息, 这就是屏蔽系统热键的原理了。 首先要调用操作系统的dll文件,先引入命名空间 using System.Runtime.InteropServices; 调用操作系统动态链接库的方 阅读全文
posted @ 2018-07-03 09:32 孤夏 阅读(1602) 评论(0) 推荐(0) 编辑