Example of a CBT hook...anyone?

Hi (again!)

About a ago I posted a message about a CBT hook - I got some help but I
can't seem to make it working (and do something with the data) without
Windows is cracking.

Can somebody please give me an example of a working CBT systemwide hook DLL
file writing the nCode, wParam and lParam to a file!
Help will be greatly appreciated...

Janus N. T?ndering, Denmark