最近在学用delphi编写Hook时遇到不明白的地方,希望高手解答!
在msdn 中:
HC_SYSMODALOFF: A system-modal dialog box has been destroyed. The hook procedure must resume recording.
HC_SYSMODALON: A system-modal dialog box is being displayed. Until the dialog box is destroyed, the hook procedure must stop recording.不知道:A system-modal dialog box究竟是什么样的dialog?请大侠举个例子,送分啦。(50)
在msdn 中:
HC_SYSMODALOFF: A system-modal dialog box has been destroyed. The hook procedure must resume recording.
HC_SYSMODALON: A system-modal dialog box is being displayed. Until the dialog box is destroyed, the hook procedure must stop recording.不知道:A system-modal dialog box究竟是什么样的dialog?请大侠举个例子,送分啦。(50)
function HookProc(iCode:Integer;wParam:wParam;lParam:lParam):LRESULT;stdcall;
begin
recOK:=1;
Result:=0; if iCode < 0 then
Result := CallNextHookEx(hHook,iCode,wParam,lParam)
else if iCode = HC_SYSMODALON then
recOK:=0
else if iCode = HC_SYSMODALOFF then
recOK:=1
else if ((recOK>0) and (iCode = HC_ACTION)) then begin
EventArr[EventLog]:=pEventMSG(lParam)^;
EventLog:=EventLog+1; if EventLog>=1000 then begin
UnHookWindowsHookEx(hHook);
end;
end;
end;
主要用来干什么的?