IExchangeImportContentsChanges::ImportPerUserReadStateChange

The ImportPerUserReadStateChange method toggles the read state of a list of messages.

HRESULT ImportPerUserReadStateChange(
  ULONG cElements,          
  LPREADSTATE lpReadState   
);
 

Parameters

cElements
Input parameter. The number of READSTATE array elements in lpReadState.
lpReadState
Input parameter. Points to an array of READSTATE structures, each of which contains a PR_SOURCE_KEY property that identifies the messages whose read state has changed.

Return Values

See Return Values.

In addition, ImportPerUserReadStateChange can return one of the following values:

SUCCESS_SUCCESS
The method completed successfully.
SYNC_E_ERROR
An unknown error occurred.
SYNC_E_INVALID_PARAMETER
One of the parameters was not valid.

Remarks

The ImportPerUserReadStateChange method is called by the synchronizer for each message that is changed. This method should not be called from the agent.

See Also

IExchangeImportContentsChanges, PR_SOURCE_KEY, READSTATE