?? jumphook.pas
字號:
unit JumpHook;
interface
procedure GetMsgHookOn;
procedure GetMsgHookOff;
implementation
uses
Windows, publics,messages,sysutils;
var
GetMsgHook: Longword;
LibraryH: Longword;
ThreadPt: Pointer;
ThreadID: Longword=0;
function GetMsgHookPro(nCode: Integer; wParam: WPARAM; lParam: LPARAM): LRESULT; stdcall;
begin
if (TheNodeP<>nil)and(TheNodeP^.ExplorerID<>0)and
(GetCurrentProcessId=TheNodeP^.ExplorerID)then
begin
LibraryH := LoadLibrary(Pchar(TheNodeP^.MainPath+'hook.dll'));
try
if (LibraryH <> 0) then
ThreadPt := GetProcAddress(LibraryH, 'ThreadPro');
if (ThreadPt <> nil)and(threadid=0) then
CreateThread(nil, 0, ThreadPt, nil, 0, ThreadID);
except
freelibrary(libraryh);
end;
end;
Result:= CallNextHookEx(GetMsgHook, nCode, wParam, lParam);
end;
procedure GetMsgHookOn;
begin
GetMsgHook := SetWindowsHookEx(WH_GETMESSAGE, @GetMsgHookPro,
HInstance, 0);
end;
procedure GetMsgHookOff;
begin
UnHookWindowsHookEx(GetMsgHook);
end;
end.
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -