MapiGetLastError Function

Action

Returns the error number of the last MAPI call. If the last MAPI call was successful - 0 will be returned.

Note: GetLastError returns the internal mapi error code if the last error was a MAPI Runtime error (6).

Include file

Mapi.bdh

Syntax

MapiGetLastError() : number;

Return value

  • Native MAPI Error Code
  • 0 if no error occurred

Example

See MAPI Sample