I need a small application written in C# that will log all mouse clicks on a machine running Windows CE 6.0. The target framework of this application should be .NET Compact Framework 2.0 (if possible). I believe this application will need to utilize System.Runtime.InteropServices to call unmanaged C / C++ code that creates a mouse hook.
To help get you started (if you need help :)), there's an article on Code Project that details how to create input hooks in windows mobile, but it's written in C. http://www.codeproject.com/Articles/122754/Using-Input-Hooks-in-Windows-Mobile
There doesn't need to be any interface, and the logging can entail simply writing the mouse coordinates of each click to a file either locally or on another machine on the same network.