IReplStore::RemoveDuplicates
A version of this page is also available for
4/8/2010
This method finds and removes duplicated objects from the store.
Syntax
HRESULT RemoveDuplicates(
LPSTR lpszObjType,
UINT uFlags
);
Parameters
- lpszObjType
[in] Long pointer to the null-terminated string with the name of the object type for which this operation is intended. This parameter is NULL if all object types should be checked.
- uFlags
[in] Reserved; set to zero.
Return Value
The following table shows the possible return values for this method.
Value | Description |
---|---|
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 to pick up the deletions. |
E_NOTIMPL |
The ActiveSync service provider does not support this operation. |
Remarks
The ActiveSync manager might occasionally need to prompt an ActiveSync service provider to scan all objects in the store to check for duplicates and give the user a chance to remove them. 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 does not call RemoveDuplicates again until necessary. It should return all other error values if, for some reason, operation cannot be performed at that time. In this case, replication calls RemoveDuplicates again at the end of the next synchronization.
Requirements
Header | cesync.h |
Library | coredll.lib |
Windows Embedded CE | Windows CE 2.0 and later |
Windows Mobile | Windows Mobile Version 5.0 and later |