摘要:
library 系统钩子;uses System.SysUtils, windows, System.Classes;{$R *.res}var //定义全局变量hHook:integer;function HookProc(iCode: Integer; //处理系统钩子的函数wParam: WPARAM;lParam: LPARAM): LRESULT; stdcall; export; //书写调用规则,记得加 stdcallbegin Result := 0;//注意返回值必须为0,允许对窗口的操作 try if iCode = HCBT_DESTROYWND then begin// 阅读全文