IReplObjHandler::SetPacket
The SetPacket method is implemented by the ActiveSync service provider to serialize one or more packets into an object. These packets are always received in the same order as they are created by IReplObjHandler::GetPacket.
Syntax
HRESULT SetPacket (
LPBYTE lpbData,
DWORD cbData
);
Parameters
- lpbData
[in] Reference to the incoming packet. - cbData
[in] Specifies the packet size.
Return Values
This method returns the standard values E_INVALIDARG, E_OUTOFMEMORY, E_UNEXPECTED, and E_FAIL, as well as the following:
- S_OK
The method completed successfully.
RERR_DISCARD
The object should be discarded from the device immediately. - RERR_DISCARD_LOCAL
The object should be discarded from the desktop only. - RERR_VOL_INACTIVE
The volume has become inactive.
Remarks
This method is called continuously until the last packet is received.
Requirements
Smartphone: Windows Mobile 2002 and later
OS Versions: Windows CE 3.0 and later
Header: cesync.h
Library: None
See Also
Last updated on Friday, April 22, 2005
© 2005 Microsoft Corporation. All rights reserved.
Send feedback on this topic to the authors.