IApplicationSyncServices::CreateSyncSession

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


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

pDestinationProvider

[in] The provider that receives changes.

pSourceProvider

[in] The provider that sends changes.

ppSyncSession

[out] Returns the newly created ISyncSession object.

  • 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.

Show: