All MAPI functions return a result code. This value should be checked after each MAPI call to determine if it was successful.