IReplObjHandler::SetPacket

The ActiveSync service provder implements SetPacket to serialize one or more packets into an object. These packets are guaranteed to be in the exact same order as when they are sent.

Syntax

HRESULT SetPacket(
LPBYTE
lpbData,
DWORD cbData
);

At a Glance

Header file: Cesync.h
Platforms: H/PC
Windows CE versions: 2.0 and later

Parameters

lpbData
Pointer to the incoming packet.
cbData
Stores the packet size.

Return Values

NOERROR
The packet was successfully used to deserialize the object.
RERR_SKIP_ALL
Failed to apply the packet toward the object; skip all remaining packets for the object.

Remarks

The IReplObjHandler::SetPacket method is called continuously until the last packet is received. These packets are guaranteed to be received in the exact same number and in the exact same order as they are created by IReplObjHandler::GetPacket.

See Also

IReplObjHandler::GetPacket