Freigeben über


IReplObjHandler::SetPacket (Windows CE 5.0)

Send Feedback

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

HRESULT SetPacket(LPBYTE lpbData,DWORD cbData);

Parameters

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

Return Values

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

OS Versions: Windows CE 2.0 and later.
Header: Cesync.h.
Link Library: Coredll.lib.

See Also

IReplObjHandler::GetPacket

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.