function KeyHook(nCode:Integer;wParam:WPARAM;lParam:LPARAM):LRESULT;stdcall;
begin
//键盘钩子,分为Down,Up,如何拦截这2个消息,并做出相应的事件呢?
Result :=CallNextHookEx(Hook,nCode,wParam,lParam);
end;
问题一: function KeyHook(nCode:Integer;wParam:WPARAM;lParam:LPARAM):LRESULT;stdcall; begin //键盘钩子,分为Down,Up,如何拦截这2个消息,并做出相应的事件呢? Result :=CallNextHookEx(Hook,nCode,wParam,lParam); end; 问题二: 可以在DLL中相互调用函数,或过程吗?如果有,该如何做?如果没有,哪用什么办法能解决该问题?