ISynchronousDataRetriever::GetIdParameters
Obtient le schéma du format d'ID du fournisseur.
HRESULT GetIdParameters(
ID_PARAMETERS * pIdParameters);
Paramètres
- pIdParameters
[out] Retourne le schéma du format d'ID du fournisseur.
Valeur de retour
S_OK
Codes d'erreur déterminés par le fournisseur
Exemple
Les exemples suivants illustrent l'implémentation de GetIdParameters. Le premier exemple
déclare le schéma du format d'ID à l'aide d'une structure const
. Le second exemple retourne le schéma du format d'ID.
const ID_PARAMETERS c_idParams =
{
sizeof(ID_PARAMETERS), // dwSize
{ FALSE, sizeof(GUID) }, // replicaId
{ FALSE, sizeof(SYNC_GID) }, // itemId
{ FALSE, 1 }, // changeUnitId
};
STDMETHODIMP CItemStore::GetIdParameters(
ID_PARAMETERS * pIdParameters)
{
if (NULL == pIdParameters)
{
return E_POINTER;
}
else
{
*pIdParameters = c_idParams;
return S_OK;
}
}