UltraLite Static C++ User's Guide
Developing UltraLite Applications for Windows CE
Synchronization on Windows CE
ActiveSync is synchronization software for Microsoft Windows CE handheld devices. UltraLite supports ActiveSync versions 3.1 and 3.5.
This section describes how to add ActiveSync to your application, and how to register your application for use with ActiveSync on your end users' machines.
If you use ActiveSync, synchronization can be initiated only by ActiveSync itself. ActiveSync automatically initiates a synchronization when the device is placed in the cradle or when the Synchronization command is selected from the ActiveSync window. The MobiLink provider starts the application, if it is not already running, and sends a message to the application.
For information on setting up ActiveSync synchronization, see Deploying applications that use ActiveSync.
The ActiveSync provider uses the wParam parameter. A wParam value of 1 indicates that the MobiLink provider for ActiveSync launched the application. The application must then shut itself down after it has finished synchronizing. If the application was already running when called by the MobiLink provider for ActiveSync, wParam is 0. The application can ignore the wParam parameter if it wants to keep running.
Adding synchronization depends on whether you are addressing the Windows API directly or whether you are using the Microsoft Foundation Classes. Both development models are described here.
Adding ActiveSync synchronization (Windows API)
Adding ActiveSync synchronization (MFC)