IApplicationSyncServices::CreateSyncSession

Creates a new ISyncSession object that can be used to connect two synchronization providers and perform synchronization.

Syntax

HRESULT CreateSyncSession(
  ISyncProvider *pDestinationProvider,
  ISyncProvider *pSourceProvider,
  ISyncSession **ppSyncSession);

Parameters

  • pDestinationProvider
    [in] The provider that receives changes.

  • pSourceProvider
    [in] The provider that sends changes.

  • ppSyncSession
    [out] Returns the newly created ISyncSession object.

Return Value

  • S_OK

  • E_OUTOFMEMORY

  • SYNC_E_ID_FORMAT_MISMATCH when the ID format schema of pDestinationProvider is not the same as the ID format schema of pSourceProvider.

See Also

Reference

IApplicationSyncServices Interface