Skip to content

Latest commit

 

History

History
161 lines (131 loc) · 5.02 KB

nf-syncregistration-isyncproviderregistration-getsyncproviderfrominstanceid.md

File metadata and controls

161 lines (131 loc) · 5.02 KB
UID title description helpviewer_keywords old-location tech.root ms.assetid ms.date ms.keywords req.header req.include-header req.target-type req.target-min-winverclnt req.target-min-winversvr req.kmdf-ver req.umdf-ver req.ddi-compliance req.unicode-ansi req.idl req.max-support req.namespace req.assembly req.type-library req.lib req.dll req.irql targetos req.typenames req.redist ms.custom f1_keywords dev_langs topic_type api_type api_location api_name
NF:syncregistration.ISyncProviderRegistration.GetSyncProviderFromInstanceId
ISyncProviderRegistration::GetSyncProviderFromInstanceId (syncregistration.h)
Returns an initialized and instantiated IRegisteredSyncProvider object for the specific unique instance ID.
GetSyncProviderFromInstanceId
GetSyncProviderFromInstanceId method [Windows Sync]
GetSyncProviderFromInstanceId method [Windows Sync]
ISyncProviderRegistration interface
ISyncProviderRegistration interface [Windows Sync]
GetSyncProviderFromInstanceId method
ISyncProviderRegistration.GetSyncProviderFromInstanceId
ISyncProviderRegistration::GetSyncProviderFromInstanceId
syncregistration/ISyncProviderRegistration::GetSyncProviderFromInstanceId
winsync.isyncproviderregistration_getsyncproviderfrominstanceid
winsync\isyncproviderregistration_getsyncproviderfrominstanceid.htm
winsync
ed204998-9e9a-4bac-b178-b4137be87ff4
12/05/2018
GetSyncProviderFromInstanceId, GetSyncProviderFromInstanceId method [Windows Sync], GetSyncProviderFromInstanceId method [Windows Sync],ISyncProviderRegistration interface, ISyncProviderRegistration interface [Windows Sync],GetSyncProviderFromInstanceId method, ISyncProviderRegistration.GetSyncProviderFromInstanceId, ISyncProviderRegistration::GetSyncProviderFromInstanceId, syncregistration/ISyncProviderRegistration::GetSyncProviderFromInstanceId, winsync.isyncproviderregistration_getsyncproviderfrominstanceid
syncregistration.h
Windows
Windows 7 [desktop apps only]
Windows Server 2008 R2 [desktop apps only]
Windows
19H1
ISyncProviderRegistration::GetSyncProviderFromInstanceId
syncregistration/ISyncProviderRegistration::GetSyncProviderFromInstanceId
c++
APIRef
kbSyntax
COM
Syncregistration.h
ISyncProviderRegistration.GetSyncProviderFromInstanceId

ISyncProviderRegistration::GetSyncProviderFromInstanceId

-description

Returns an initialized and instantiated IRegisteredSyncProvider object for the specific unique instance ID.

-parameters

-param pguidInstanceId [in]

The unique instance ID of the IRegisteredSyncProvider object.

-param dwClsContext [in]

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

-param ppSyncProvider [out]

The initialized and instantiated synchronization provider object.

-returns

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_INVALIDARG
The instance ID is GUID_NULL.
E_OUTOFMEMORY
There was not enough memory available to create the synchronization provider.
REGDB_E_CLASSNOTREG
The synchronization provider’s CLSID is not registered with the requested context or the provider has not had its DLL registered.
SYNC_E_REGISTRATION_NOTREGISTERED
A synchronization provider with the specified instance ID was not registered.

-remarks

Note  The caller of this method should not explicitly call IRegisteredSyncProvider::Init on the IRegisteredSyncProvider object that is returned, as this method will do this on the caller's behalf. The caller should call QueryInterface on the IRegisteredSyncProvider object that is returned to obtain an ISyncProvider interface to pass to the synchronization session.
 

-see-also

IRegisteredSyncProvider Interface

ISyncProvider Interface

ISyncProviderRegistration Interface