IProviderSyncServices2::CreateSyncSessionState

Creates an ISyncSessionState object that can be used to contain information about the synchronization session.

Syntax

HRESULT CreateSyncSessionState(
  ISyncCallback * pCallbacks,
  ISyncSessionState ** ppSyncSessionState);

Parameters

Term

Definition

pCallbacks

[in, unique] Callbacks that will receive notifications about change application events.

ppSyncSessionState

[out] Returns the newly created ISyncSessionState object.

Return Value

  • S_OK

  • E_POINTER

  • E_OUTOFMEMORY

Remarks

Sync Framework typically passes an ISyncSessionState object to a provider by using the IKnowledgeSyncProvider::BeginSession method. CreateSyncSessionState can be used in remote scenarios when a provider needs to create an ISyncSessionState object locally.

See Also

Reference

IProviderSyncServices2 Interface