Delen via


ISynchronousDataRetriever::GetIdParameters

Gets the ID format schema of the provider.

HRESULT GetIdParameters(
  ID_PARAMETERS * pIdParameters);

Parameters

  • pIdParameters
    [out] Returns the ID format schema of the provider.

Return Value

  • S_OK

  • Provider-determined error codes

Example

The following examples show how to implement GetIdParameters. The first example

declares the ID format schema by using a const structure. The second example returns the ID format schema.

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;
    }
}

See Also

Reference

ISynchronousDataRetriever Interface