The IReplStore::RemoveDuplicates method removes duplicated objects.
HRESULT RemoveDuplicates(
LPSTR lpszObjType,
UINT uFlags
);
Header file: | Cesync.h |
Platforms: | H/PC |
Windows CE versions: | 2.0 and later |
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.