关于wh_journalrecord的疑问
function hookproc(icode:integer;wparam:WPARAM;lparam:LPARAM):LRESULT;stdcall;
begin
{ result:=0;
if icode<0 then
result:=callnexthookex(hhook,icode,wparam,lparam)
else if icode=hc_sysmodalon then
else if icode=hc_sysmodaloff then
else }if icode=hc_action then
begin
eventarr[eventlog]:=peventmsg(lparam)^;
inc(eventlog);
if eventlog>=1000 then
begin
unhookwindowshookex(hhook);
end;
end;
end;
就说这段回调函数吧,重点在被注释那一段,那一段可有可无都无所谓,郁闷的是,这个钩子只是保存信息吗?根本不需要传递到下一个消息链,还是本身就没有插入到消息链,而仅仅是纪录而已,我也是猜测想,去CSDN问问去....