Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

55 lines
1.5 KiB

  1. Synchronization Manager Sample Handler
  2. SUMMARY
  3. =======
  4. Sample demonstrates how to write a handler that works with Synchronization Manager
  5. to synchronize offline data.
  6. Description
  7. ===========
  8. SyncDir is a fully functional sample handler that demonstrates the common
  9. functionality that must be implemented by all Synchronization Manager handlers.
  10. It exercises the synchronization features by synchronizing the contents of two
  11. directories configured by the user.
  12. It has the necessary code to register and unregister itself with the
  13. Synchronization Manager. It is an COM inproc server and implements the
  14. ISyncMgrSynchronize interface for the purposes of synchronization using the
  15. ISyncMgrSynchronizeCallback to communicate progress and status information.
  16. Additionally, it allows the user to create and manage synchronization items by
  17. specifying the directory pairs to be synchronized.
  18. Building
  19. ========
  20. To build the sample you must have mobsync.h from the Platform SDK in
  21. your include path and mobsync.lib in your lib path.
  22. Registering Handler
  23. =====================
  24. Once the handler has been built you must register it.
  25. Steps:
  26. - Go to the Directory the syncdir.dll is located
  27. - type regsvr32 syncdir.dll
  28. To uninstall type regsvr32 /u syncdir.dll
  29. Class Overview
  30. ======================
  31. CSyncMgrHandler - main class that implements ISyncMgrSynchronize interface
  32. CEnumSyncMgrItems - implements ISyncMgrEnumItems interface
  33. CSettings - handles item and handler configuration
  34. CClassFactory - implements standard COM Class Factory interface.