Platform SDK: Exchange Server

IExchangeImportHierarchyChanges::ImportFolderDeletion

The ImportFolderDeletion method accepts a folder deletion notification from the synchronizer.

HRESULT ImportFolderDeletion(
  ULONG ulFlags,                   
  LPENTRYLIST lpSourceEntryList    
);
 

Parameters

ulFlags
Input parameter. Set this parameter to zero, as this parameter is ignored.
lpSourceEntryList
Input parameter. Points to a MAPI ENTRYLIST structure, which contains the list of SOURCE_KEY properties that identify the folders to delete.

Return Values

See Return Values.

In addition, ImportFolderDeletion 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 ImportFolderDeletion method is called by the synchronizer for each folder that is deleted. This method should not be called from the agent.

If one of the folders in the entry list is not a valid folder or cannot be deleted, ImportFolderDeletion exits without processing the rest of the list and returns SYNC_E_INVALID_PARAMETER.

See Also

IExchangeImportContentsChanges::ImportMessageDeletion, IExchangeImportHierarchyChanges