ISyncProviderConfigUI::CreateAndRegisterNewSyncProvider method (syncregistration.h)

Creates and registers a new synchronization provider.

Syntax

HRESULT CreateAndRegisterNewSyncProvider(
  [in]  HWND              hwndParent,
  [in]  IUnknown          *pUnkContext,
  [out] ISyncProviderInfo **ppProviderInfo
);

Parameters

[in] hwndParent

HWND serving as the parent for the configuration UI that needs to be presented before the synchronization provider can be created. The HWND should be NULL only if the dwCapabilities member of the SyncProviderConfigUIConfiguration structure is set to not support a UI.

[in] pUnkContext

Pointer to an interface containing additional information needed to generate the synchronization provider. The pointer will be NULL if no additional information is needed.

[out] ppProviderInfo

An ISyncProviderInfo object that contains information about the newly created and registered 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 and register the synchronization provider.

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

ISyncProviderConfigUI Interface