Fixed wownt32.h to make it usable from inside Wine, and use it to
[wine] / include / mapidefs.h
1 /*
2  * Copyright (C) 1998 Justin Bradford
3  *
4  * This library is free software; you can redistribute it and/or
5  * modify it under the terms of the GNU Lesser General Public
6  * License as published by the Free Software Foundation; either
7  * version 2.1 of the License, or (at your option) any later version.
8  *
9  * This library is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
12  * Lesser General Public License for more details.
13  *
14  * You should have received a copy of the GNU Lesser General Public
15  * License along with this library; if not, write to the Free Software
16  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
17  */
18
19 #ifndef __WINE_MAPIDEFS_H
20 #define __WINE_MAPIDEFS_H
21
22 #include "windef.h"
23 #ifndef __WINE__
24 #include "windows.h"
25 #include "winerror.h"
26 #ifndef _OBJBASE_H_
27 #include "objbase.h"
28 #endif
29 #endif
30
31 /* Some types */
32
33 typedef unsigned char*          LPBYTE;
34 #ifndef __LHANDLE
35 #define __LHANDLE
36 typedef unsigned long           LHANDLE, *LPLHANDLE;
37 #endif
38
39 #ifndef _tagCY_DEFINED
40 #define _tagCY_DEFINED
41 typedef union tagCY
42 {
43    struct {
44 #ifdef WORDS_BIGENDIAN
45        LONG Hi;
46        ULONG Lo;
47 #else
48        ULONG Lo;
49        LONG Hi;
50 #endif
51    } u;
52    LONGLONG int64;
53 } CY;
54 #endif /* _tagCY_DEFINED */
55
56 /* MAPI Recipient types */
57 #ifndef MAPI_ORIG
58 #define MAPI_ORIG        0          /* Message originator   */
59 #define MAPI_TO          1          /* Primary recipient    */
60 #define MAPI_CC          2          /* Copy recipient       */
61 #define MAPI_BCC         3          /* Blind copy recipient */
62 #define MAPI_P1          0x10000000 /* P1 resend recipient  */
63 #define MAPI_SUBMITTED   0x80000000 /* Already processed    */
64 #endif
65
66 /* Bit definitions for abFlags[0] */
67 #define MAPI_SHORTTERM   0x80
68 #define MAPI_NOTRECIP    0x40
69 #define MAPI_THISSESSION 0x20
70 #define MAPI_NOW         0x10
71 #define MAPI_NOTRESERVED 0x08
72
73 /* Bit definitions for abFlags[1]  */
74 #define MAPI_COMPOUND    0x80
75
76 #endif /*__WINE_MAPIDEFS_H*/