I am trying to get system-wide hooks working in my Windows CE Pocket
PC application. I need to hook the system to capture event messages
such as WM_LBUTTONDOWN, WM_LBUTTONUP, WM_MOUSEMOVE, WM_KEYDOWN, etc.
Hooks are an unsupported and undocumented, but I understand I can use
QASetWindowsJournalHook from the coredll.lib
I have been unsuccessful in getting this to work in my eMbedder Visual
C++ project. I can't call QASetWindowsJournalHook properly, it does
not link. What I need to know is how to get hooks working, so that I
can capture WM_LBUTTONDOWN messages and find the X/Y coordinates of
the mouse click so my application can log this system-wide (ie capture
input from any application). |