Share via


IRAPISession::CeSyncStart

Send Feedback

This function begins synchronization between a desktop and a remote Microsoft® Windows® CE–based device.

HRESULT CeSyncStart(
  LPCWSTR szCommand
);

Parameters

  • szCommand
    [in] This parameter should always be NULL.

Return Values

S_OK indicates success. An error code indicates failure. To get extended error information, call IRAPISession::CeGetLastError and IRAPISession::CeRapiGetError.

Remarks

When this function is called, ActiveSync will begin to synchronize data between the desktop and the device. The set of items that are synchronized are determined by the previously established partnership between the device and the desktop. Calling this method initiates the same actions as the user clicking the Sync button in the ActiveSync window. Use the IRAPISession::CeSyncStop function to stop synchronization.

Requirements

OS Versions: Windows CE 5.01 and later.
Header: Rapi2.h.
Link Library: Ole32.lib, Rapiuuid.lib

See Also

IRAPISession::IUnknown| IRAPISession::CeSyncStop

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.