Platform SDK: Exchange Server

IExchangeImportHierarchyChanges::GetLastError

The GetLastError method retrieves information about the most recent error during importing the incremental hierarchy changes.

HRESULT GetLastError(
  HRESULT hResult,                 
  ULONG ulFlags,                   
  LPMAPIERROR FAR * lppMAPIError   
);
 

Parameters

hResult
Input parameter. An error returned by one of the other IExchangeImportHierarchyChanges methods.
ulFlags
Input parameter. Defined flag that controls the format of the error report:
SYNC_UNICODE
Specifies that text is Unicode. If this flag is not set, the text is returned as the type of text in the clients' code page.
lppMAPIError

Output parameter. Points to the address of a MAPI MAPIERROR structure, which contains information on the last error.

Return Values

See Return Values.

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

SUCCESS_SUCCESS
The method completed successfully.
SYNC_E_INVALID_PARAMETER
One of the parameters was not valid.
MAPI_E_NOT_ENOUGH_MEMORY
There wasn't enough memory to complete the operation.

See Also

IExchangeImportHierarchyChanges