>This has to be implemented in a C DLL
No, it doesn't. This was the old, standard response to this question, and is incorrect. I figured a way around it for tek-tips about 3 years ago - August 2001 to be precise. Thread222-118564 explains how to do this for key presses, but my advice in my previous post in this thread suggests how to change it to work for mouse events.
Finally, about 6 months after the initial solution, figured out the journalling solution (most recently detailed in thread222-775642, to which I refered in my initial post) to get around the limitations inherent in the LowLevel<x> technique (wouldn't work for anything pre NT4 SP3). The journalling solution has one major disadvantage - it slows down your system since it filters every message...