IReplStore::RemoveDuplicates

The IReplStore::RemoveDuplicates method removes duplicated objects.

Syntax

HRESULT RemoveDuplicates(
LPSTR
lpszObjType,
UINT
uFlags
);

At a Glance

Header file: Cesync.h
Platforms: H/PC
Windows CE versions: 2.0 and later

Parameters

lpszObjType
Pointer to the name of the object type for which this operation is intended. This parameter is NULL if all object types should be checked.
uFlags
Reserved. Always 0.

Return Values

NOERROR
The operation completed successfully and there is no need to restart replication to pick up the deletions.
RERR_RESTART
The operation completed successfully and replication should be restarted again to pick up the deletions.
E_NOTIMPL
The ActiveSync service provider does not support this operation.

Remarks

From time to time, the ActiveSync service manager might need to prompt an ActiveSync service provider to scan all objects in the store to check for duplicated objects and give the user a chance to remove them all. The ActiveSync service provider should return E_NOTIMPL if it chooses not to implement this functionality. Otherwise, the ActiveSync service provider should perform the check and remove and return NOERROR or RERR_RESTART if successful. In this case, replication will not call the IReplStore::RemoveDuplicates method again until necessary. It should return all other error values if for some reason operation can not be performed at this time. In this case, replication will call RemoveDuplicates again at the end of the next synchronization.

See Also

IReplStore