全局钩子支持库
系统结构:Hook,CallNextHookEx,GetForegroundWindow,SetWindowLong,SetForegroundWindow,GetClassName,GetWindowText,禁止窗口_API,SetActiveWindow,
======程序集1
| |
| |------ _启动子程序
| |
| |------ _临时子程序
| |
| |------ Hook
| |
| |
======窗口程序集1
| |
| |------ _窗口1_创建完毕
| |
| |------ _窗口1_将被销毁
| |
| |------ _窗口1_可否被关闭
| |
| |
======调用的Dll
| |
| |---[dll]------ CallNextHookEx
| |
| |---[dll]------ GetForegroundWindow
| |
| |---[dll]------ SetWindowLong
| |
| |---[dll]------ SetForegroundWindow
| |
| |---[dll]------ GetClassName
| |
| |---[dll]------ GetWindowText
| |
| |---[dll]------ 禁止窗口_API
| |
| |---[dll]------ SetActiveWindow
======窗口程序集1
| |
| |------ __启动窗口_将被销毁
| |
| |------ _按钮2_被单击
| |
| |------ _按钮1_被单击
调用的DLL命令:
.DLL命令 CallNextHookEx, 整数型, , "CallNextHookEx"
.参数 hhk, 整数型
.参数 nCode, 整数型
.参数 wParam, 整数型
.参数 lParam, 整数型
.DLL命令 GetForegroundWindow, 整数型
.DLL命令 SetWindowLong, 整数型, , "SetWindowLongA"
.参数 hwnd
.参数 nIndex
.参数 dwNewLong
.DLL命令 SetForegroundWindow
.参数 h
.DLL命令 GetClassName, , , "GetClassNameA"
.参数 h
.参数 s, 文本型
.参数 z
.DLL命令 GetWindowText, , , "GetWindowTextA"
.参数 h
.参数 s, 文本型
.参数 z
.DLL命令 禁止窗口_API, 整数型, "user32.dll", "EnableWindow", , 在指定的窗口里允许或禁止所有鼠标及键盘输入
.参数 窗口句柄, 整数型, , hwnd,窗口句柄
.参数 标识符, 整数型, , fEnable,非零允许,零禁止
.DLL命令 SetActiveWindow, 整数型, , "SetActiveWindow"
.参数 h
注:本站源码主要来源于网络收集。如有侵犯您的利益,请联系我们,我们将及时删除!
部分源码可能含有危险代码,(如关机、格式化磁盘等),请看清代码在运行。
由此产生的一切后果本站均不负责。源码仅用于学习使用,如需运用到商业场景请咨询原作者。
使用本站源码开发的产品均与本站无任何关系,请大家遵守国家相关法律。