Compartilhar via


Developing the Desktop Provider

A version of this page is also available for

Windows Embedded CE 6.0 R3

4/8/2010

The desktop provider handles the bulk of communications with the ActiveSync manager. The provider implements two COM interfaces, IReplStore and IReplObjHandler. IReplStore enumerates objects in the store, checks for changes to an object, and displays a user interface for the user to set synchronization options and resolve conflicts. IReplObjHandler converts objects into data streams and back again, and deletes objects.

The following list outlines what must be done to implement the desktop provider. The sections following provide additional detail for those steps requiring it.

  1. Use guidgen.exe to create a GUID for the store.
  2. Initialize the store. For more information, see Initializing the Store.
  3. Compare store identifiers and handle mismapped store identifiers. For more information, see Comparing Store Identifiers.
  4. Define object handles to provide access to data objects stored on a Windows Mobile device. For more information, see Accessing Objects.
    The object handles typically are pointers to data structures and include HREPLITEM, HREPLFLD, and HREPLOBJ. HREPLOBJ is a generic handle for an item or a folder.
  5. Provide a folder handle for the specified object type and, to access folders, return a pointer to the IReplObjHandler interface. For more information, see Accessing Folders.
  6. Enumerate objects for a specified object type. For more information, see Enumerating Objects.
  7. Detect changes in objects. For more information, see Detecting Changes to Desktop Objects.
  8. Send and receive changed objects. For more information, see Sending and Receiving Changed Objects.
  9. Create a user interface to set synchronization options and handle conflicts. For more information, see Setting Synchronization Options.

See Also

Concepts

Creating ActiveSync Service Providers