Desktop Client
The desktop client is an OLE in-process (Inproc) server dynamic-link library (DLL) that must:
- Have access to the store while synchronization is taking place.
- Be able to create, read, write, and delete any object in the store.
- Determine if an object has changed since the last time it was synchronized.
- Enumerate all objects that need to be synchronized.
- Be able to read an object and convert it into a series of bytes, a process called serialization.
- Take such a series of bytes and convert them back to an object, a process called deserialization.
To implement the desktop client
- Create one GUID for the store, using the Visual C++ GUID generator tool, Guidgen.exe.
- Define HREPLITEM and HREPLFLD. These handles can be simply pointers to data structures.
- Define HREPLOBJ, which is a generic handle that can be either HREPLITEM or HREPLFLD.
- Implement all methods in IReplStore.
These methods implement the following functionality:
- Initialize the store.
- Provide a folder handle for the specified object type and return a pointer to the IReplObjHandler interface.
- Provide for management of the object types.
- Provide a way for Windows CE Services to display related information in the main window.
- Enumerate objects for a specified object type.
- Implement all methods in IReplObjHandler.