function mouseProc(iCode: Integer; wParam: WPARAM; lParam: LPARAM): LRESULT; stdcall;
var h:hwnd;
p:^TMouseHookStruct;
begin
if iCode < 0 then
Result := CallNextHookEx(hNextHookProc, iCode, wParam, lParam)
else
begin
if wParam = WM_LBUTTONDOWN then //只判断了鼠标左键的单击
begin
............................
............................
............................
If the function succeeds, the return value specifies the status of the given virtual key. If the high-order bit is 1, the key is down; otherwise, it is up;