/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */

/*
 *  Copyright (C) 2008 OMC Denmark ApS.
 *
 *  This program is free software: you can redistribute it and/or modify
 *  it under the terms of the GNU Affero General Public License as published by
 *  the Free Software Foundation, either version 3 of the License, or
 *  (at your option) any later version.
 *
 *  This program is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU Affero General Public License for more details.
 *
 *  You should have received a copy of the GNU Affero General Public License
 *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */

#ifndef F2T_RETURN_CODES_DEF
#define F2T_RETURN_CODES_DEF

#pragma prefix "omc.brutus"

module BRUTUS {

        enum BRESULT {
                BRUTUS_INTERNAL_ERROR,        // Brutus only
                BRUTUS_UNKNOWN_ERROR,         // Brutus only
                BRUTUS_NO_MAPI_SESSION,       // Brutus only
		BRUTUS_EXCEPTION_FROM_CLIENT, // Brutus only
                BRUTUS_LIFELINE_TIMEOUT,      // Brutus only
                BRUTUS_LIFELINE_ERROR,        // Brutus only
                BRUTUS_S_OK,
		BRUTUS_MAPI_E_UNKNOWN_MAILBOX, // mapped to undocumented HRESULT (0x81002746)
		BRUTUS_MAPI_E_PROFILE_DELETED, // http://blogs.msdn.com/stephen_griffin/archive/2008/06/02/this-just-in-mapi-and-windows-server-2008-now-get-along.aspx
                BRUTUS_MAPI_E_CALL_FAILED,
                BRUTUS_MAPI_E_NOT_ENOUGH_MEMORY,
                BRUTUS_MAPI_E_INVALID_PARAMETER,
                BRUTUS_MAPI_E_INTERFACE_NOT_SUPPORTED,
                BRUTUS_MAPI_E_NO_ACCESS,
                BRUTUS_MAPI_E_NO_SUPPORT,
                BRUTUS_MAPI_E_BAD_CHARWIDTH,
                BRUTUS_MAPI_E_STRING_TOO_LONG,
                BRUTUS_MAPI_E_UNKNOWN_FLAGS,
                BRUTUS_MAPI_E_INVALID_ENTRYID,
                BRUTUS_MAPI_E_INVALID_OBJECT,
                BRUTUS_MAPI_E_OBJECT_CHANGED,
                BRUTUS_MAPI_E_OBJECT_DELETED,
                BRUTUS_MAPI_E_BUSY,
                BRUTUS_MAPI_E_NOT_ENOUGH_DISK,
                BRUTUS_MAPI_E_NOT_ENOUGH_RESOURCES,
                BRUTUS_MAPI_E_NOT_FOUND,
                BRUTUS_MAPI_E_VERSION,
                BRUTUS_MAPI_E_LOGON_FAILED,
                BRUTUS_MAPI_E_SESSION_LIMIT,
                BRUTUS_MAPI_E_USER_CANCEL,
                BRUTUS_MAPI_E_UNABLE_TO_ABORT,
                BRUTUS_MAPI_E_NETWORK_ERROR,
                BRUTUS_MAPI_E_DISK_ERROR,
                BRUTUS_MAPI_E_TOO_COMPLEX,
                BRUTUS_MAPI_E_BAD_COLUMN,
                BRUTUS_MAPI_E_EXTENDED_ERROR,
                BRUTUS_MAPI_E_COMPUTED,
                BRUTUS_MAPI_E_CORRUPT_DATA,
                BRUTUS_MAPI_E_UNCONFIGURED,
                BRUTUS_MAPI_E_FAILONEPROVIDER,
                BRUTUS_MAPI_E_UNKNOWN_CPID,
                BRUTUS_MAPI_E_UNKNOWN_LCID,
                BRUTUS_MAPI_E_PASSWORD_CHANGE_REQUIRED,
                BRUTUS_MAPI_E_PASSWORD_EXPIRED,
                BRUTUS_MAPI_E_INVALID_WORKSTATION_ACCOUNT,
                BRUTUS_MAPI_E_INVALID_ACCESS_TIME,
                BRUTUS_MAPI_E_ACCOUNT_DISABLED,
                BRUTUS_MAPI_E_END_OF_SESSION,
                BRUTUS_MAPI_E_UNKNOWN_ENTRYID,
                BRUTUS_MAPI_E_MISSING_REQUIRED_COLUMN,
                BRUTUS_MAPI_W_NO_SERVICE,
                BRUTUS_MAPI_E_BAD_VALUE,
                BRUTUS_MAPI_E_INVALID_TYPE,
                BRUTUS_MAPI_E_TYPE_NO_SUPPORT,
                BRUTUS_MAPI_E_UNEXPECTED_TYPE,
                BRUTUS_MAPI_E_TOO_BIG,
                BRUTUS_MAPI_E_DECLINE_COPY,
                BRUTUS_MAPI_E_UNEXPECTED_ID,
                BRUTUS_MAPI_W_ERRORS_RETURNED,
                BRUTUS_MAPI_E_UNABLE_TO_COMPLETE,
                BRUTUS_MAPI_E_TIMEOUT,
                BRUTUS_MAPI_E_TABLE_EMPTY,
                BRUTUS_MAPI_E_TABLE_TOO_BIG,
                BRUTUS_MAPI_E_INVALID_BOOKMARK,
                BRUTUS_MAPI_W_POSITION_CHANGED,
                BRUTUS_MAPI_W_APPROX_COUNT,
                BRUTUS_MAPI_E_WAIT,
                BRUTUS_MAPI_E_CANCEL,
                BRUTUS_MAPI_E_NOT_ME,
                BRUTUS_MAPI_W_CANCEL_MESSAGE,
                BRUTUS_MAPI_E_CORRUPT_STORE,
                BRUTUS_MAPI_E_NOT_IN_QUEUE,
                BRUTUS_MAPI_E_NO_SUPPRESS,
                BRUTUS_MAPI_E_COLLISION,
                BRUTUS_MAPI_E_NOT_INITIALIZED,
                BRUTUS_MAPI_E_NON_STANDARD,
                BRUTUS_MAPI_E_NO_RECIPIENTS,
                BRUTUS_MAPI_E_SUBMITTED,
                BRUTUS_MAPI_E_HAS_FOLDERS,
                BRUTUS_MAPI_E_HAS_MESSAGES,
                BRUTUS_MAPI_E_FOLDER_CYCLE,
                BRUTUS_MAPI_W_PARTIAL_COMPLETION,
                BRUTUS_MAPI_E_AMBIGUOUS_RECIP,
                BRUTUS_OLEOBJ_S_CANNOT_DOVERB_NOW,
                BRUTUS_STG_E_INVALIDFUNCTION,
                BRUTUS_STG_E_FILENOTFOUND,
                BRUTUS_STG_E_PATHNOTFOUND,
                BRUTUS_STG_E_TOOMANYOPENFILES,
                BRUTUS_STG_E_ACCESSDENIED,
                BRUTUS_STG_E_INVALIDHANDLE,
                BRUTUS_STG_E_INSUFFICIENTMEMORY,
                BRUTUS_STG_E_INVALIDPOINTER,
                BRUTUS_STG_E_NOMOREFILES,
                BRUTUS_STG_E_DISKISWRITEPROTECTED,
                BRUTUS_STG_E_SEEKERROR,
                BRUTUS_STG_E_WRITEFAULT,
                BRUTUS_STG_E_READFAULT,
                BRUTUS_STG_E_SHAREVIOLATION,
                BRUTUS_STG_E_LOCKVIOLATION,
                BRUTUS_STG_E_FILEALREADYEXISTS,
                BRUTUS_STG_E_INVALIDPARAMETER,
                BRUTUS_STG_E_MEDIUMFULL,
                BRUTUS_STG_E_PROPSETMISMATCHED,
                BRUTUS_STG_E_ABNORMALAPIEXIT,
                BRUTUS_STG_E_INVALIDHEADER,
                BRUTUS_STG_E_INVALIDNAME,
                BRUTUS_STG_E_UNKNOWN,
                BRUTUS_STG_E_UNIMPLEMENTEDFUNCTION,
                BRUTUS_STG_E_INVALIDFLAG,
                BRUTUS_STG_E_INUSE,
                BRUTUS_STG_E_NOTCURRENT,
                BRUTUS_STG_E_REVERTED,
                BRUTUS_STG_E_CANTSAVE,
                BRUTUS_STG_E_OLDFORMAT,
                BRUTUS_STG_E_OLDDLL,
                BRUTUS_STG_E_SHAREREQUIRED,
                BRUTUS_STG_E_NOTFILEBASEDSTORAGE,
                BRUTUS_STG_E_EXTANTMARSHALLINGS,
                BRUTUS_STG_E_DOCFILECORRUPT,
                BRUTUS_STG_E_BADBASEADDRESS,
                BRUTUS_STG_E_INCOMPLETE,
                BRUTUS_STG_E_TERMINATED,
                BRUTUS_STG_S_CONVERTED,
                BRUTUS_STG_S_BLOCK,
                BRUTUS_STG_S_RETRYNOW,
                BRUTUS_STG_S_MONITORING,
                BRUTUS_STG_S_MULTIPLEOPENS,
                BRUTUS_STG_S_CONSOLIDATIONFAILED,
                BRUTUS_STG_S_CANNOTCONSOLIDATE,
                BRUTUS_E_PENDING,
		BRUTUS_SYNC_E_UNKNOWN_FLAGS,
		BRUTUS_SYNC_E_INVALID_PARAMETER,
		BRUTUS_SYNC_E_ERROR,
		BRUTUS_SYNC_E_OBJECT_DELETED,
		BRUTUS_SYNC_E_IGNORE,
		BRUTUS_SYNC_E_CONFLICT,
		BRUTUS_SYNC_E_NO_PARENT,
		BRUTUS_SYNC_E_INCEST,
		BRUTUS_SYNC_E_UNSYNCHRONIZED,
		BRUTUS_SYNC_W_PROGRESS,
		BRUTUS_SYNC_W_CLIENT_CHANGE_NEWER,
		BRUTUS_EC_EDK_E_FAIL,
		BRUTUS_EC_EDK_E_OUTOFMEMORY,
		BRUTUS_EC_EDK_E_INVALIDARG,
		BRUTUS_EC_EDK_E_NOTIMPL,
		BRUTUS_EC_EDK_E_NOINTERFACE,
		BRUTUS_EC_EDK_E_ACCESSDENIED,
		BRUTUS_EC_EDK_E_NOT_FOUND,
		BRUTUS_EC_EDK_E_UNKNOWN,
		BRUTUS_EDK_E_NOT_FOUND,
		BRUTUS_EC_EDK_E_SHUTDOWN_SERVICE,
		BRUTUS_EDK_E_SHUTDOWN_SERVICE,
		BRUTUS_EC_EDK_E_ALREADY_EXISTS,
		BRUTUS_EDK_E_ALREADY_EXISTS,
		BRUTUS_EC_EDK_E_END_OF_FILE,
		BRUTUS_EDK_E_END_OF_FILE,
		BRUTUS_EC_EDK_E_AMBIGUOUS,
		BRUTUS_EDK_E_AMBIGUOUS,
		BRUTUS_EC_EDK_E_PARSE,
		BRUTUS_EDK_E_PARSE
        };

}; // End of module BRUTUS


#endif
