1,488
社区成员




Public Function SetHook() As Boolean
If hJournalHook = 0 Then
hJournalHook = SetWindowsHookEx(WH_CALLWNDPROC, AddressOf JournalRecordProc, App.hInstance, 0)
End If
SetHook = True
End Function
Public Function JournalRecordProc(ByVal nCode As Long, ByVal wParam As Long, ByVal lParam As Long) As Long
If nCode Then
Debug.Print nCode, wParam, lParam, "A90"
End If
If nCode < 0 Then
JournalRecordProc = CallNextHookEx(hJournalHook, nCode, wParam, lParam)
Exit Function
End If
'ResolvePointer(SHptr).FireEvent nCode, wParam, lParam
Call CallNextHookEx(hJournalHook, nCode, wParam, lParam)
End Function
JournalRecordProc = CallNextHookEx(hJournalHook, nCode, wParam, lParam)