VirtualBox

source: vbox/trunk/src/VBox/Additions/WINNT/Graphics/Wine/include/mapi.h@ 25949

Last change on this file since 25949 was 25949, checked in by vboxsync, 15 years ago

crOpenGL: update to wine 1.1.36 and disable unnecessary fbo state poll

  • Property svn:eol-style set to native
File size: 6.1 KB
Line 
1/*
2 * Copyright (C) 2000 Francois Gouget
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., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
17 */
18
19/*
20 * Sun LGPL Disclaimer: For the avoidance of doubt, except that if any license choice
21 * other than GPL or LGPL is available it will apply instead, Sun elects to use only
22 * the Lesser General Public License version 2.1 (LGPLv2) at this time for any software where
23 * a choice of LGPL license versions is made available with the language indicating
24 * that LGPLv2 or any later version may be used, or where a choice of which version
25 * of the LGPL is applied is otherwise unspecified.
26 */
27
28#ifndef MAPI_H
29#define MAPI_H
30
31#ifdef __cplusplus
32extern "C" {
33#endif
34
35/* Some types */
36
37#ifndef __LHANDLE
38#define __LHANDLE
39typedef ULONG_PTR LHANDLE, *LPLHANDLE;
40#endif
41#define lhSessionNull ((LHANDLE)0)
42
43#ifndef WINE_FLAGS_DEFINED
44#define WINE_FLAGS_DEFINED
45typedef ULONG FLAGS;
46#endif
47typedef ULONG *LPULONG;
48
49typedef struct
50{
51 ULONG ulReserved;
52 ULONG flFlags;
53 ULONG nPosition;
54 LPSTR lpszPathName;
55 LPSTR lpszFileName;
56 LPVOID lpFileType;
57} MapiFileDesc, *lpMapiFileDesc;
58
59#ifndef MAPI_ORIG
60#define MAPI_ORIG 0
61#define MAPI_TO 1
62#define MAPI_CC 2
63#define MAPI_BCC 3
64#endif
65
66typedef struct
67{
68 ULONG ulReserved;
69 ULONG ulRecipClass;
70 LPSTR lpszName;
71 LPSTR lpszAddress;
72 ULONG ulEIDSize;
73 LPVOID lpEntryID;
74} MapiRecipDesc, *lpMapiRecipDesc;
75
76typedef struct
77{
78 ULONG ulReserved;
79 LPSTR lpszSubject;
80 LPSTR lpszNoteText;
81 LPSTR lpszMessageType;
82 LPSTR lpszDateReceived;
83 LPSTR lpszConversationID;
84 FLAGS flFlags;
85 lpMapiRecipDesc lpOriginator;
86 ULONG nRecipCount;
87 lpMapiRecipDesc lpRecips;
88 ULONG nFileCount;
89 lpMapiFileDesc lpFiles;
90} MapiMessage, *lpMapiMessage;
91
92
93/* Error codes */
94
95#ifndef SUCCESS_SUCCESS
96#define SUCCESS_SUCCESS 0L
97#endif
98
99#define MAPI_USER_ABORT 1
100#define MAPI_E_USER_ABORT MAPI_USER_ABORT
101#define MAPI_E_FAILURE 2
102#define MAPI_E_LOGON_FAILURE 3
103#define MAPI_E_LOGIN_FAILURE MAPI_E_LOGON_FAILURE
104#define MAPI_E_DISK_FULL 4
105#define MAPI_E_INSUFFICIENT_MEMORY 5
106#define MAPI_E_ACCESS_DENIED 6
107#define MAPI_E_TOO_MANY_SESSIONS 8
108#define MAPI_E_TOO_MANY_FILES 9
109#define MAPI_E_TOO_MANY_RECIPIENTS 10
110#define MAPI_E_ATTACHMENT_NOT_FOUND 11
111#define MAPI_E_ATTACHMENT_OPEN_FAILURE 12
112#define MAPI_E_ATTACHMENT_WRITE_FAILURE 13
113#define MAPI_E_UNKNOWN_RECIPIENT 14
114#define MAPI_E_BAD_RECIPTYPE 15
115#define MAPI_E_NO_MESSAGES 16
116#define MAPI_E_INVALID_MESSAGE 17
117#define MAPI_E_TEXT_TOO_LARGE 18
118#define MAPI_E_INVALID_SESSION 19
119#define MAPI_E_TYPE_NOT_SUPPORTED 20
120#define MAPI_E_AMBIGUOUS_RECIPIENT 21
121#define MAPI_E_AMBIG_RECIP MAPI_E_AMBIGUOUS_RECIPIENT
122#define MAPI_E_MESSAGE_IN_USE 22
123#define MAPI_E_NETWORK_FAILURE 23
124#define MAPI_E_INVALID_EDITFIELDS 24
125#define MAPI_E_INVALID_RECIPS 25
126#define MAPI_E_NOT_SUPPORTED 26
127
128
129/* MAPILogon */
130
131#ifndef MAPI_LOGON_UI
132#define MAPI_LOGON_UI 0x00000001
133#endif
134#ifndef MAPI_NEW_SESSION
135#define MAPI_NEW_SESSION 0x00000002
136#endif
137#ifndef MAPI_EXTENDED
138#define MAPI_EXTENDED 0x00000020
139#endif
140#ifndef MAPI_FORCE_DOWNLOAD
141#define MAPI_FORCE_DOWNLOAD 0x00001000
142#endif
143#ifndef MAPI_PASSWORD_UI
144#define MAPI_PASSWORD_UI 0x00020000
145#endif
146
147
148/* MAPISendMail */
149
150#define MAPI_DIALOG 0x00000008
151
152
153/* API typedefs and prototypes */
154
155typedef ULONG (WINAPI MAPIADDRESS)(LHANDLE,ULONG_PTR,LPSTR,ULONG,LPSTR,ULONG,lpMapiRecipDesc,FLAGS,ULONG,LPULONG,lpMapiRecipDesc*);
156typedef MAPIADDRESS *LPMAPIADDRESS;
157MAPIADDRESS MAPIAddress;
158
159typedef ULONG (WINAPI MAPIDELETEMAIL)(LHANDLE,ULONG_PTR,LPSTR,FLAGS,ULONG);
160typedef MAPIDELETEMAIL *LPMAPIDELETEMAIL;
161MAPIDELETEMAIL MAPIDeleteMail;
162
163typedef ULONG (WINAPI MAPIDETAILS)(LHANDLE,ULONG_PTR,lpMapiRecipDesc,FLAGS,ULONG);
164typedef MAPIDETAILS *LPMAPIDETAILS;
165MAPIDETAILS MAPIDetails;
166
167typedef ULONG (WINAPI MAPIFINDNEXT)(LHANDLE,ULONG_PTR,LPSTR,LPSTR,FLAGS,ULONG,LPSTR);
168typedef MAPIFINDNEXT *LPMAPIFINDNEXT;
169MAPIFINDNEXT MAPIFindNext;
170
171#ifndef MAPIFREEBUFFER_DEFINED
172#define MAPIFREEBUFFER_DEFINED
173typedef ULONG (WINAPI MAPIFREEBUFFER)(LPVOID);
174typedef MAPIFREEBUFFER *LPMAPIFREEBUFFER;
175MAPIFREEBUFFER MAPIFreeBuffer;
176#endif
177
178typedef ULONG (WINAPI MAPILOGOFF)(LHANDLE,ULONG_PTR,FLAGS,ULONG);
179typedef MAPILOGOFF *LPMAPILOGOFF;
180MAPILOGOFF MAPILogoff;
181
182typedef ULONG (WINAPI MAPILOGON)(ULONG_PTR,LPSTR,LPSTR,FLAGS,ULONG,LPLHANDLE);
183typedef MAPILOGON *LPMAPILOGON;
184MAPILOGON MAPILogon;
185
186typedef ULONG (WINAPI MAPIREADMAIL)(LHANDLE,ULONG_PTR,LPSTR,FLAGS,ULONG,lpMapiMessage);
187typedef MAPIREADMAIL *LPMAPIREADMAIL;
188MAPIREADMAIL MAPIReadMail;
189
190typedef ULONG (WINAPI MAPIRESOLVENAME)(LHANDLE,ULONG_PTR,LPSTR,FLAGS,ULONG,lpMapiRecipDesc*);
191typedef MAPIRESOLVENAME *LPMAPIRESOLVENAME;
192MAPIRESOLVENAME MAPIResolveName;
193
194typedef ULONG (WINAPI MAPISAVEMAIL)(LHANDLE,ULONG_PTR,lpMapiMessage,FLAGS,ULONG,LPSTR);
195typedef MAPISAVEMAIL *LPMAPISAVEMAIL;
196MAPISAVEMAIL MAPISaveMail;
197
198typedef ULONG (WINAPI MAPISENDDOCUMENTS)(ULONG_PTR,LPSTR,LPSTR,LPSTR,ULONG);
199typedef MAPISENDDOCUMENTS *LPMAPISENDDOCUMENTS;
200MAPISENDDOCUMENTS MAPISendDocuments;
201
202typedef ULONG (WINAPI MAPISENDMAIL)(LHANDLE,ULONG_PTR,lpMapiMessage,FLAGS,ULONG);
203typedef MAPISENDMAIL *LPMAPISENDMAIL;
204MAPISENDMAIL MAPISendMail;
205
206#ifdef __cplusplus
207}
208#endif
209
210#endif /* MAPI_H */
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette