source: Daodan/MSYS2/mingw32/i686-w64-mingw32/include/wabcode.h

Last change on this file was 1166, checked in by rossy, 3 years ago

Daodan: Replace MinGW build env with an up-to-date MSYS2 env

File size: 3.4 KB
RevLine 
[1166]1/**
2 * This file has no copyright assigned and is placed in the Public Domain.
3 * This file is part of the mingw-w64 runtime package.
4 * No warranty is given; refer to the file DISCLAIMER.PD within this package.
5 */
6#if !defined(MAPICODE_H) && !defined(WABCODE_H)
7#define WABCODE_H
8
9#include <objerror.h>
10
11#define MAKE_MAPI_SCODE(sev,fac,code) ((SCODE) (((unsigned __LONG32)(sev)<<31) | ((unsigned __LONG32)(fac)<<16) | ((unsigned __LONG32)(code))))
12
13#define MAKE_MAPI_E(err) (MAKE_MAPI_SCODE(1,FACILITY_ITF,err))
14#define MAKE_MAPI_S(warn) (MAKE_MAPI_SCODE(0,FACILITY_ITF,warn))
15
16#ifdef SUCCESS_SUCCESS
17#undef SUCCESS_SUCCESS
18#endif
19#define SUCCESS_SUCCESS __MSABI_LONG(0)
20
21#define MAPI_E_CALL_FAILED E_FAIL
22#define MAPI_E_NOT_ENOUGH_MEMORY E_OUTOFMEMORY
23#define MAPI_E_INVALID_PARAMETER E_INVALIDARG
24#define MAPI_E_INTERFACE_NOT_SUPPORTED E_NOINTERFACE
25#define MAPI_E_NO_ACCESS E_ACCESSDENIED
26
27#define MAPI_E_NO_SUPPORT MAKE_MAPI_E(0x102)
28#define MAPI_E_BAD_CHARWIDTH MAKE_MAPI_E(0x103)
29#define MAPI_E_STRING_TOO_LONG MAKE_MAPI_E(0x105)
30#define MAPI_E_UNKNOWN_FLAGS MAKE_MAPI_E(0x106)
31#define MAPI_E_INVALID_ENTRYID MAKE_MAPI_E(0x107)
32#define MAPI_E_INVALID_OBJECT MAKE_MAPI_E(0x108)
33#define MAPI_E_OBJECT_CHANGED MAKE_MAPI_E(0x109)
34#define MAPI_E_OBJECT_DELETED MAKE_MAPI_E(0x10A)
35#define MAPI_E_BUSY MAKE_MAPI_E(0x10B)
36#define MAPI_E_NOT_ENOUGH_DISK MAKE_MAPI_E(0x10D)
37#define MAPI_E_NOT_ENOUGH_RESOURCES MAKE_MAPI_E(0x10E)
38#define MAPI_E_NOT_FOUND MAKE_MAPI_E(0x10F)
39#define MAPI_E_VERSION MAKE_MAPI_E(0x110)
40#define MAPI_E_LOGON_FAILED MAKE_MAPI_E(0x111)
41#define MAPI_E_SESSION_LIMIT MAKE_MAPI_E(0x112)
42#define MAPI_E_USER_CANCEL MAKE_MAPI_E(0x113)
43#define MAPI_E_UNABLE_TO_ABORT MAKE_MAPI_E(0x114)
44#define MAPI_E_NETWORK_ERROR MAKE_MAPI_E(0x115)
45#define MAPI_E_DISK_ERROR MAKE_MAPI_E(0x116)
46#define MAPI_E_TOO_COMPLEX MAKE_MAPI_E(0x117)
47#define MAPI_E_BAD_COLUMN MAKE_MAPI_E(0x118)
48#define MAPI_E_EXTENDED_ERROR MAKE_MAPI_E(0x119)
49#define MAPI_E_COMPUTED MAKE_MAPI_E(0x11A)
50#define MAPI_E_CORRUPT_DATA MAKE_MAPI_E(0x11B)
51#define MAPI_E_UNCONFIGURED MAKE_MAPI_E(0x11C)
52#define MAPI_E_FAILONEPROVIDER MAKE_MAPI_E(0x11D)
53#define MAPI_E_END_OF_SESSION MAKE_MAPI_E(0x200)
54#define MAPI_E_UNKNOWN_ENTRYID MAKE_MAPI_E(0x201)
55#define MAPI_E_MISSING_REQUIRED_COLUMN MAKE_MAPI_E(0x202)
56#define MAPI_W_NO_SERVICE MAKE_MAPI_S(0x203)
57#define MAPI_E_BAD_VALUE MAKE_MAPI_E(0x301)
58#define MAPI_E_INVALID_TYPE MAKE_MAPI_E(0x302)
59#define MAPI_E_TYPE_NO_SUPPORT MAKE_MAPI_E(0x303)
60#define MAPI_E_UNEXPECTED_TYPE MAKE_MAPI_E(0x304)
61#define MAPI_E_TOO_BIG MAKE_MAPI_E(0x305)
62#define MAPI_E_DECLINE_COPY MAKE_MAPI_E(0x306)
63#define MAPI_E_UNEXPECTED_ID MAKE_MAPI_E(0x307)
64#define MAPI_W_ERRORS_RETURNED MAKE_MAPI_S(0x380)
65#define MAPI_E_UNABLE_TO_COMPLETE MAKE_MAPI_E(0x400)
66#define MAPI_E_TIMEOUT MAKE_MAPI_E(0x401)
67#define MAPI_E_TABLE_EMPTY MAKE_MAPI_E(0x402)
68#define MAPI_E_TABLE_TOO_BIG MAKE_MAPI_E(0x403)
69#define MAPI_E_INVALID_BOOKMARK MAKE_MAPI_E(0x405)
70#define MAPI_W_POSITION_CHANGED MAKE_MAPI_S(0x481)
71#define MAPI_W_APPROX_COUNT MAKE_MAPI_S(0x482)
72#define MAPI_W_PARTIAL_COMPLETION MAKE_MAPI_S(0x680)
73#define MAPI_E_AMBIGUOUS_RECIP MAKE_MAPI_E(0x700)
74#define MAPI_E_COLLISION MAKE_MAPI_E(0x604)
75#define MAPI_E_NOT_INITIALIZED MAKE_MAPI_E(0x605)
76#define MAPI_E_FOLDER_CYCLE MAKE_MAPI_E(0x60B)
77
78#ifndef MakeResult
79#define MakeResult(_s) ResultFromScode(_s)
80#endif
81
82#ifndef HR_SUCCEEDED
83#define HR_SUCCEEDED(_hr) SUCCEEDED((SCODE)(_hr))
84#define HR_FAILED(_hr) FAILED((SCODE)(_hr))
85#endif
86#endif
Note: See TracBrowser for help on using the repository browser.