Steps to Implement Device Synchronization

< BACK  NEXT >
[oR]

Follow these steps to implement device synchronization:

  1. Create a standard DLL project.

  2. Write code to register the device ActiveSync provider in the registry.

  3. Implement the ActiveSync IReplObjHandler COM interface. This interface implements functions to take your items and convert them to a stream of bytes (serialization) and vice versa (deserialization).

  4. Implement the following exported functions that will be called by ActiveSync:

    InitObjType Called by ActiveSync when the service is loaded and unloaded.

    ObjectNotify Called by ActiveSync when the item in the store is added, deleted, or updated. The function returns TRUE if the item is to be synchronized.

    GetObjTypeInfo Called by ActiveSync to obtain information about the object store, which is typically a CE property database.

  5. Write code to add, update, and delete items from the store. This code can typically be shared with the application that will need to perform the same tasks.

The DLL will need to implement the IReplObjectHandler COM interface but does not need to be a fully implemented COM component. This means that a class factory and the standard exported functions (such as DllCanUnloadNow) do not need to be implemented.


< BACK  NEXT >


Windows CE 3. 0 Application Programming
Windows CE 3.0: Application Programming (Prentice Hall Series on Microsoft Technologies)
ISBN: 0130255920
EAN: 2147483647
Year: 2002
Pages: 181

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net