Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
General hook
#1
Hello Gintaras, hello all

i'd like to setup a general hook system, the higher as possible, based on the LL keyboard hooks example in QM.

For the hook function, it should catch all messages, and be a function launched at QM start.

I put SetWindowsHookEx(WH_GETMESSAGE &GeneralProc _hinst 0)

in GeneralProc function I put

Function GeneralProc
Code:
Copy      Help
;/
function# code wParam MSG*m
if(code<0) ret CallNextHookEx(0 code wParam m)
out "filtered"
ret CallNextHookEx(0 code wParam m)

It is supposed catch all events, mouse, keyboard, windows creation or activation (the purpose of it at the moment),
and i want to make action depending on event. I use separate keyboard or mouse hooks that work fine, but need a general one
or at last a function to hook windows events.

But filtered is never
shown, so i suppose it's a wrong framework code.

Any help?


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)