library HIDE

library HIDE; //库名 uses SysUtils, Classes, windows, messages; //使用的库文件 var hHk :HHOOK; //定义钩子变量hHK type //定义一个钩子结构 PKBDLLHOOKSTRUCT = ^KBDLLHOOKSTRUCT; KBDLLHOOKSTRUCT = record vkCode: DWORD; ScanCode: DWORD; Flags: DWORD; Time: DWORD; dwExtraInfo: DWORD; end; //定义钩子结构结,有点另人费解. {$R *.res} function ycxsks( yc:Boolean): Boolean;stdcall; //隐藏-显示任务条 var h:THandle;//定义一个句柄 begin if yc = True then begin h:=FindWindow(Shell_TrayWnd,nil); ShowWindow(h,SW_hide); //隐藏任务条 end else begin h:=FindWindow(Shell_TrayWnd,nil); ShowWindow(h,SW_SHOW); //显示任务条 end; Result:=true; end; function keyHookProc(nCod

文档评论(0)

1亿VIP精品文档

相关文档