//钩子回调函数<br>function HookProc(nCode: Integer; wParam: WPARAM; lParam: LPARAM ): LRESULT; stdcall;<br>begin<br> if (nCode = HC_ACTION) then<br> begin<br> if wParam=13 then //过滤回车键<br> begin<br> Result :=1;<br> exit; <br> end;<br> end;<br> Result := CallNextHookEx(HookHandle, nCode, wParam, lParam);<br>end;;