IReplObjHandler::SetPacket

This method is implemented by the ActiveSync service provider to serialize one or more packets into an object. These packets are guaranteed to be in the same order as when they are sent.

At a Glance

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

Syntax

HRESULT SetPacket( LPBYTE lpbData, DWORD cbData );

Parameters

lpbData

Long pointer to the incoming packet.

cbData

Stores the packet size.

Return Values

One of the values described in the following table is returned.

Value Description
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 same number and order as they are created by IReplObjHandler::GetPacket.

See Also

IReplObjHandler::GetPacket