04-12-2013, 09:28 AM
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
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?
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
;/
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?