Share via


IReplObjHandler::SetPacket (Windows Embedded CE 6.0)

1/6/2010

This method is a user-implemented method that deserializes one or more packets into an object after the packets were transmitted between the Windows Embedded CEā€“based device and the desktop computer.

Syntax

HRESULT SetPacket(
  LPBYTE lpbData,
  DWORD cbData
);

Parameters

  • lpbData
    [in] Long pointer to the incoming packet.
  • cbData
    [in] Stores the packet size.

Return Value

The following table shows the possible returns values for this method.

NOERROR

The packet was successfully used to deserialize the object.

RERR_DISCARD

The object should be discarded from the device immediately.

RERR_DISCARD_LOCAL

The object should be discarded from the desktop only.

RERR_SKIP_ALL

The method failed to apply the packet toward the object. In this case skip all remaining packets for the object.

RERR_VOL_INACTIVE

The volume has become inactive.

Remarks

SetPacket is called repeatedly until the last packet is received. These packets are guaranteed to be received in the same order as were are created by IReplObjHandler::GetPacket.

Requirements

Header cesync.h
Library coredll.lib
Windows Embedded CE Windows CE 2.0 and later

See Also

Reference

IReplObjHandler
IReplObjHandler::GetPacket