windows-nt/Source/XPSP1/NT/com/mobile/syncmgr/sample
2020-09-26 16:20:57 +08:00
..
alloc.cpp Add source files 2020-09-26 16:20:57 +08:00
alloc.h Add source files 2020-09-26 16:20:57 +08:00
cfact.cpp Add source files 2020-09-26 16:20:57 +08:00
cfact.h Add source files 2020-09-26 16:20:57 +08:00
critsect.cpp Add source files 2020-09-26 16:20:57 +08:00
critsect.h Add source files 2020-09-26 16:20:57 +08:00
debug.cpp Add source files 2020-09-26 16:20:57 +08:00
debug.h Add source files 2020-09-26 16:20:57 +08:00
dllmain.cpp Add source files 2020-09-26 16:20:57 +08:00
dllmain.h Add source files 2020-09-26 16:20:57 +08:00
enum.cpp Add source files 2020-09-26 16:20:57 +08:00
enum.h Add source files 2020-09-26 16:20:57 +08:00
guid.c Add source files 2020-09-26 16:20:57 +08:00
guid.h Add source files 2020-09-26 16:20:57 +08:00
handler.cpp Add source files 2020-09-26 16:20:57 +08:00
handler.h Add source files 2020-09-26 16:20:57 +08:00
handler.rc Add source files 2020-09-26 16:20:57 +08:00
helper.cpp Add source files 2020-09-26 16:20:57 +08:00
helper.h Add source files 2020-09-26 16:20:57 +08:00
makefile Add source files 2020-09-26 16:20:57 +08:00
precomp.h Add source files 2020-09-26 16:20:57 +08:00
readme.txt Add source files 2020-09-26 16:20:57 +08:00
reg.cpp Add source files 2020-09-26 16:20:57 +08:00
reg.h Add source files 2020-09-26 16:20:57 +08:00
resource.h Add source files 2020-09-26 16:20:57 +08:00
settings.cpp Add source files 2020-09-26 16:20:57 +08:00
settings.h Add source files 2020-09-26 16:20:57 +08:00
small.ico Add source files 2020-09-26 16:20:57 +08:00
syncdir.def Add source files 2020-09-26 16:20:57 +08:00
syncdir.dsp Add source files 2020-09-26 16:20:57 +08:00
syncdir.dsw Add source files 2020-09-26 16:20:57 +08:00

Synchronization Manager Sample Handler


SUMMARY
=======

Sample demonstrates how to write a handler that works with Synchronization Manager 
to synchronize offline data.

Description
===========

SyncDir is a fully functional sample handler that demonstrates the common 
functionality that must be implemented by all Synchronization Manager handlers.
  It exercises the synchronization features by synchronizing the contents of two 
directories configured by the user.

It has the necessary code to register and unregister itself with the 
Synchronization Manager.  It is an COM inproc server and implements the 
ISyncMgrSynchronize interface for the purposes of synchronization using the 
ISyncMgrSynchronizeCallback to communicate progress and status information.  

Additionally, it allows the user to create and manage synchronization items by 
specifying the directory pairs to be synchronized.

Building
========

To build the sample you must have mobsync.h from the Platform SDK in 
your include path and mobsync.lib in your lib path.


Registering  Handler
=====================

Once the handler has been built you must register it. 

Steps:
- Go to the Directory the syncdir.dll is located
- type regsvr32 syncdir.dll

To uninstall type regsvr32 /u syncdir.dll


Class Overview
======================

CSyncMgrHandler - main class that implements ISyncMgrSynchronize interface

CEnumSyncMgrItems - implements ISyncMgrEnumItems interface

CSettings - handles item and handler configuration

CClassFactory - implements standard COM Class Factory interface.