IReplObjHandler : IUnknown

This interface implements all required methods related to the serialization and deserialization of an object.

At a Glance

Header file: Cesync.h
Windows CE versions: 2.0 and later

Methods Description
IReplObjHandler::DeleteObj Informs the ActiveSync service provider that an object should be deleted.
IReplObjHandler::GetPacket ActiveSync service provider implements this method to deserialize an object into one or more packets. These packets are sent between the Windows CE–based device and the desktop computer by the ActiveSync service provider.
IReplObjHandler::Reset Resets the ActiveSync service provider so all the resources that the ActiveSync service provider used during the serialization or deserialization are freed.
IReplObjHandler::SetPacket ActiveSync service provider implements this method to serialize one or more packets into an object. These packets are guaranteed to be in the same order as when they are sent.
IReplObjHandler::Setup Sets up the ActiveSync service provider so it is ready to serialize or deserialize an object.
IUnknown::AddRef Increments the reference count for an interface on an object. It should be called for every new copy of a pointer to an interface on a specified object.
IUnknown::QueryInterface Returns a pointer to a specified interface on an object to which a client currently holds an interface pointer. This method must call IUnknown::AddRef on the pointer it returns.
IUnknown::Release Decrements the reference count for the calling interface on a object. If the reference count on the object falls to 0, the object is freed from memory.

Remarks

The IReplObjHandler : IUnknown interface encapsulates all functions needed to serialize or deserialize the objects. Any object can be deserialized into one or more data packets of any size. An ActiveSync service provider determines the number of packets and their sizes. These packets are exchanged between the Windows CE–based device and the desktop computer. The receiver of these packets is guaranteed to receive them in the exact same order as they are sent and the receiver can then serialize these packets back into an object.