//
//
//
//
//
//
//
//
//
//
软件Tags:
全局钩子支持库
系统结构: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
