IExchangeFavorites::GetLastError

The GetLastError method obtains further information about an error condition.

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

Parameters

hResult
Input parameter. The error that was received.
ulFlags
Input parameter. Defined flag that controls the type of text returned in lppMAPIError:
MAPI_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

IExchangeFavorites