ISyncProviderInfo::GetSyncProvider method (syncregistration.h)

Creates an instance of the synchronization provider.

Syntax

HRESULT GetSyncProvider(
  [in]  DWORD                   dwClsContext,
  [out] IRegisteredSyncProvider **ppSyncProvider
);

Parameters

[in] dwClsContext

The context in which the code that manages the newly created object will run. The only context supported is CLSCTX_INPROC_SERVER.

[out] ppSyncProvider

The instance of the synchronization provider.

Return value

The possible return codes include, but are not limited to, the values shown in the following table.

Return code Description
S_OK
The method succeeded.
E_POINTER
Invalid pointer.
E_OUTOFMEMORY
There was not enough memory available to create the synchronization provider.
HRESULT_FROM_WIN32(ERROR_INVALID_DATA)
Information stored in the registration store is an unexpected size.

Requirements

Requirement Value
Minimum supported client Windows 7 [desktop apps only]
Minimum supported server Windows Server 2008 R2 [desktop apps only]
Target Platform Windows
Header syncregistration.h

See also

ISyncProviderInfo Interface