Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.

SQL Anywhere 12.0.0 » UltraLite - C and C++ Programming » Application development » Developing UltraLite applications for Windows Mobile » Synchronization on Windows Mobile

 

Adding ActiveSync synchronization to your application

ActiveSync is software from Microsoft that handles data synchronization between a desktop computer running Windows and a connected Windows Mobile handheld device. UltraLite supports ActiveSync versions 3.5 and later.

This section describes how to add ActiveSync provider to your application, and how to register your application for use with ActiveSync on your end users' computers.

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 Synchronize 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 more information about 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.

To determine which platforms the provider is supported on, see [external link] SQL Anywhere Components by Platform.

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.