ActiveSync
Microsoft® ActiveSync® synchronizes data between a desktop computer and the Windows Mobile-based device. Application Manager for ActiveSync installs and removes applications on the Windows Mobile-based device when the device is connected to the desktop computer.
The ActiveSync API enables you to complete the following programming tasks:
Implement a file filter. As a file is transferred between the Windows Mobile-based device and the desktop computer, ActiveSync uses a file filter stored on the desktop computer to convert a file format. ActiveSync includes some basic file filters. You can implement a custom file filter by using the ICeFileFilter ActiveSync API interface and registering the filter. For more information, see Converting File Formats.
Create an ActiveSync service provider. ActiveSync service providers define data types for synchronization. ActiveSync includes service providers for commonly used applications and data types on Windows Mobile-based devices. You can create a custom service provider by using the IReplStore and IReplObjHandler ActiveSync API interfaces and the following ActiveSync API functions:
Note The preceding functions implement Windows CE functions that you use to create a custom service provider.
For more information, see Creating the ActiveSync Service Provider.
Notify a desktop application about Windows Mobile-based device connections. By modifying the registry, you can have a desktop application launched when a connection is made or broken between the desktop computer and the Windows Mobile-based device. You can use the CeSvcOpen and CeSvcSetString ActiveSync API functions to modify the registry. For more information, see Registry-Based Notification.
ActiveSync also enables you to perform the following operations:
- Download and run applications on the emulator by connecting the emulator to a development tool. For more information, see How to: Connect the Emulator to a Development Tool.
- Download and run applications on a Windows Mobile-based device by connecting the device to a development tool. For more information, see How to: Connect the Windows Mobile-Based Device to a Development Tool.
- Test and debug custom ActiveSync synchronization providers, and move files between a desktop computer and the emulator, by connecting to the emulator through ActiveSync. For more information, see How to: Use ActiveSync with the Emulator.
- Utilize the Remote API (RAPI), which allows applications running on a desktop computer to invoke functions directly on the Windows Mobile-based device.
See Also
Creating the ActiveSync Service Provider
How to: Connect the Emulator to a Development Tool
How to: Connect the Windows Mobile-Based Device to a Development Tool
How to: Use ActiveSync with the Emulator
Send feedback on this topic to the authors.
© 2005 Microsoft Corporation. All rights reserved.