--++-->> help needed on hooking onto keyboard

Hi all.

Can anyone tell me how to hook onto the keyboard and thus be able
to capture all keystrokes that go to any window?

I am able to intercept the WM_KEYDOWN message as long as my
own application has focus, but I need to make that an application
that logs keystrokes that go to other windows.

I think I should use some kind of hooking, but frankly I don't know
what that is and how to use it. Any detailed help would be much
appreciated.

Send replies to paul @ makamba.iaehv.nl     (without the spaces)
or reply to group.