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.
 
 
 
 
 
 
CryptoAlgo Inc daad8a087a Add source files 4 years ago
..
alloc.cpp Add source files 4 years ago
alloc.h Add source files 4 years ago
cfact.cpp Add source files 4 years ago
cfact.h Add source files 4 years ago
critsect.cpp Add source files 4 years ago
critsect.h Add source files 4 years ago
debug.cpp Add source files 4 years ago
debug.h Add source files 4 years ago
dllmain.cpp Add source files 4 years ago
dllmain.h Add source files 4 years ago
enum.cpp Add source files 4 years ago
enum.h Add source files 4 years ago
guid.c Add source files 4 years ago
guid.h Add source files 4 years ago
handler.cpp Add source files 4 years ago
handler.h Add source files 4 years ago
handler.rc Add source files 4 years ago
helper.cpp Add source files 4 years ago
helper.h Add source files 4 years ago
makefile Add source files 4 years ago
precomp.h Add source files 4 years ago
readme.txt Add source files 4 years ago
reg.cpp Add source files 4 years ago
reg.h Add source files 4 years ago
resource.h Add source files 4 years ago
settings.cpp Add source files 4 years ago
settings.h Add source files 4 years ago
small.ico Add source files 4 years ago
syncdir.def Add source files 4 years ago
syncdir.dsp Add source files 4 years ago
syncdir.dsw Add source files 4 years ago

readme.txt


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.