I need help with detecting mouse coordinates and clicks beyond my application. I´m using SetWindowsHookEx(WH_MOUSE... but it only detects mouse events in my program. As soon as the cursor leaves my application it stops getting mouse data.

It would be great to have a sample of source