[comp.windows.ms.programmer] SetWindowsHook - JournalRecord

ieru@csg.uwaterloo.ca (Roberto Ierusalimschy) (06/04/91)

   I wrote a windows program to record user inputs, using the
hook for JournalRecord. But my hook function does not receive the
correct data. The program is OK, as it works properly with other
hook options (e.g. GETMESSAGE, SYSMSGFILTER). Has someone had the
same problem before, or used this function without problems?

whisd@sersun1.essex.ac.uk (Whiteside S D B) (06/11/91)

Hi!

I'm afraid I've no answer to your problem, but I am puzzled by the
filter functions.

I've been experimenting with them and the structures they return via
lParado not seem to match the documented ones at all!

WM_JOURNAL seems to relie on the undocumented "EVENTMSG" structure.
I wanted to emulate a little proram called "WININFO" which tells you
which window youre mouse is over.

But none of the options for the filter give me what I want:
the hWnd for the window being sent the message.

Any clues?

Thanks,

Simon