.net – Programming ActiveSync on Windows Mobile

activesyncnetwindowswindows-mobile

I am developing a desktop app which manages contact information and I want to be able to have it sync with the contacts list on Windows Mobile devices. Which namespaces/APIs do I need to understand to do this? I would prefer something in .NET compact framework, but I can do Win32 as well. I am looking for an approach that is completely stand alone, i.e. not dependent on a separate app such as Outlook.
Thanks

Best Answer

If you can work with the most recent compact framework then you can use the WindowsMobile Class Library.

If you have to work with an older version of the framework or want to support older hardware you can access the native ActiveSync API with Interop. All of the C++ APIs can be accessed through either Interop/PInvoke or COM Interop. An example is here.