VirtualBox

source: vbox/trunk/src/VBox/Devices/Graphics/shaderlib/wine/include/mapi.h

最後變更 在這個檔案是 53206,由 vboxsync 提交於 10 年 前

Devices/vmsvga: header fixes

  • 屬性 svn:eol-style 設為 native
  • 屬性 svn:keywords 設為 Author Date Id Revision
檔案大小: 7.1 KB
 
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 * Oracle 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, Oracle 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
59typedef struct
60{
61 ULONG ulReserved;
62 ULONG flFlags;
63 ULONG nPosition;
64 PWSTR lpszPathName;
65 PWSTR lpszFileName;
66 PVOID lpFileType;
67} MapiFileDescW, *lpMapiFileDescW;
68
69#ifndef MAPI_ORIG
70#define MAPI_ORIG 0
71#define MAPI_TO 1
72#define MAPI_CC 2
73#define MAPI_BCC 3
74#endif
75
76typedef struct
77{
78 ULONG ulReserved;
79 ULONG ulRecipClass;
80 LPSTR lpszName;
81 LPSTR lpszAddress;
82 ULONG ulEIDSize;
83 LPVOID lpEntryID;
84} MapiRecipDesc, *lpMapiRecipDesc;
85
86typedef struct
87{
88 ULONG ulReserved;
89 ULONG ulRecipClass;
90 PWSTR lpszName;
91 PWSTR lpszAddress;
92 ULONG ulEIDSize;
93 PVOID lpEntryID;
94} MapiRecipDescW, *lpMapiRecipDescW;
95
96typedef struct
97{
98 ULONG ulReserved;
99 LPSTR lpszSubject;
100 LPSTR lpszNoteText;
101 LPSTR lpszMessageType;
102 LPSTR lpszDateReceived;
103 LPSTR lpszConversationID;
104 FLAGS flFlags;
105 lpMapiRecipDesc lpOriginator;
106 ULONG nRecipCount;
107 lpMapiRecipDesc lpRecips;
108 ULONG nFileCount;
109 lpMapiFileDesc lpFiles;
110} MapiMessage, *lpMapiMessage;
111
112typedef struct
113{
114 ULONG ulReserved;
115 PWSTR lpszSubject;
116 PWSTR lpszNoteText;
117 PWSTR lpszMessageType;
118 PWSTR lpszDateReceived;
119 PWSTR lpszConversationID;
120 FLAGS flFlags;
121 lpMapiRecipDescW lpOriginator;
122 ULONG nRecipCount;
123 lpMapiRecipDescW lpRecips;
124 ULONG nFileCount;
125 lpMapiFileDescW lpFiles;
126} MapiMessageW, *lpMapiMessageW;
127
128/* Error codes */
129
130#ifndef SUCCESS_SUCCESS
131#define SUCCESS_SUCCESS 0
132#endif
133
134#define MAPI_USER_ABORT 1
135#define MAPI_E_USER_ABORT MAPI_USER_ABORT
136#define MAPI_E_FAILURE 2
137#define MAPI_E_LOGON_FAILURE 3
138#define MAPI_E_LOGIN_FAILURE MAPI_E_LOGON_FAILURE
139#define MAPI_E_DISK_FULL 4
140#define MAPI_E_INSUFFICIENT_MEMORY 5
141#define MAPI_E_ACCESS_DENIED 6
142#define MAPI_E_TOO_MANY_SESSIONS 8
143#define MAPI_E_TOO_MANY_FILES 9
144#define MAPI_E_TOO_MANY_RECIPIENTS 10
145#define MAPI_E_ATTACHMENT_NOT_FOUND 11
146#define MAPI_E_ATTACHMENT_OPEN_FAILURE 12
147#define MAPI_E_ATTACHMENT_WRITE_FAILURE 13
148#define MAPI_E_UNKNOWN_RECIPIENT 14
149#define MAPI_E_BAD_RECIPTYPE 15
150#define MAPI_E_NO_MESSAGES 16
151#define MAPI_E_INVALID_MESSAGE 17
152#define MAPI_E_TEXT_TOO_LARGE 18
153#define MAPI_E_INVALID_SESSION 19
154#define MAPI_E_TYPE_NOT_SUPPORTED 20
155#define MAPI_E_AMBIGUOUS_RECIPIENT 21
156#define MAPI_E_AMBIG_RECIP MAPI_E_AMBIGUOUS_RECIPIENT
157#define MAPI_E_MESSAGE_IN_USE 22
158#define MAPI_E_NETWORK_FAILURE 23
159#define MAPI_E_INVALID_EDITFIELDS 24
160#define MAPI_E_INVALID_RECIPS 25
161#define MAPI_E_NOT_SUPPORTED 26
162#define MAPI_E_UNICODE_NOT_SUPPORTED 27
163
164
165/* MAPILogon */
166
167#ifndef MAPI_LOGON_UI
168#define MAPI_LOGON_UI 0x00000001
169#endif
170#ifndef MAPI_NEW_SESSION
171#define MAPI_NEW_SESSION 0x00000002
172#endif
173#ifndef MAPI_EXTENDED
174#define MAPI_EXTENDED 0x00000020
175#endif
176#ifndef MAPI_FORCE_DOWNLOAD
177#define MAPI_FORCE_DOWNLOAD 0x00001000
178#endif
179#ifndef MAPI_PASSWORD_UI
180#define MAPI_PASSWORD_UI 0x00020000
181#endif
182
183
184/* MAPISendMail */
185
186#define MAPI_DIALOG 0x00000008
187
188/* MAPISendMailW */
189
190#define MAPI_FORCE_UNICODE 0x00040000
191
192
193/* API typedefs and prototypes */
194
195typedef ULONG (WINAPI MAPIADDRESS)(LHANDLE,ULONG_PTR,LPSTR,ULONG,LPSTR,ULONG,lpMapiRecipDesc,FLAGS,ULONG,LPULONG,lpMapiRecipDesc*);
196typedef MAPIADDRESS *LPMAPIADDRESS;
197MAPIADDRESS MAPIAddress;
198
199typedef ULONG (WINAPI MAPIDELETEMAIL)(LHANDLE,ULONG_PTR,LPSTR,FLAGS,ULONG);
200typedef MAPIDELETEMAIL *LPMAPIDELETEMAIL;
201MAPIDELETEMAIL MAPIDeleteMail;
202
203typedef ULONG (WINAPI MAPIDETAILS)(LHANDLE,ULONG_PTR,lpMapiRecipDesc,FLAGS,ULONG);
204typedef MAPIDETAILS *LPMAPIDETAILS;
205MAPIDETAILS MAPIDetails;
206
207typedef ULONG (WINAPI MAPIFINDNEXT)(LHANDLE,ULONG_PTR,LPSTR,LPSTR,FLAGS,ULONG,LPSTR);
208typedef MAPIFINDNEXT *LPMAPIFINDNEXT;
209MAPIFINDNEXT MAPIFindNext;
210
211#ifndef MAPIFREEBUFFER_DEFINED
212#define MAPIFREEBUFFER_DEFINED
213typedef ULONG (WINAPI MAPIFREEBUFFER)(LPVOID);
214typedef MAPIFREEBUFFER *LPMAPIFREEBUFFER;
215MAPIFREEBUFFER MAPIFreeBuffer;
216#endif
217
218typedef ULONG (WINAPI MAPILOGOFF)(LHANDLE,ULONG_PTR,FLAGS,ULONG);
219typedef MAPILOGOFF *LPMAPILOGOFF;
220MAPILOGOFF MAPILogoff;
221
222typedef ULONG (WINAPI MAPILOGON)(ULONG_PTR,LPSTR,LPSTR,FLAGS,ULONG,LPLHANDLE);
223typedef MAPILOGON *LPMAPILOGON;
224MAPILOGON MAPILogon;
225
226typedef ULONG (WINAPI MAPIREADMAIL)(LHANDLE,ULONG_PTR,LPSTR,FLAGS,ULONG,lpMapiMessage);
227typedef MAPIREADMAIL *LPMAPIREADMAIL;
228MAPIREADMAIL MAPIReadMail;
229
230typedef ULONG (WINAPI MAPIRESOLVENAME)(LHANDLE,ULONG_PTR,LPSTR,FLAGS,ULONG,lpMapiRecipDesc*);
231typedef MAPIRESOLVENAME *LPMAPIRESOLVENAME;
232MAPIRESOLVENAME MAPIResolveName;
233
234typedef ULONG (WINAPI MAPISAVEMAIL)(LHANDLE,ULONG_PTR,lpMapiMessage,FLAGS,ULONG,LPSTR);
235typedef MAPISAVEMAIL *LPMAPISAVEMAIL;
236MAPISAVEMAIL MAPISaveMail;
237
238typedef ULONG (WINAPI MAPISENDDOCUMENTS)(ULONG_PTR,LPSTR,LPSTR,LPSTR,ULONG);
239typedef MAPISENDDOCUMENTS *LPMAPISENDDOCUMENTS;
240MAPISENDDOCUMENTS MAPISendDocuments;
241
242typedef ULONG (WINAPI MAPISENDMAIL)(LHANDLE,ULONG_PTR,lpMapiMessage,FLAGS,ULONG);
243typedef MAPISENDMAIL *LPMAPISENDMAIL;
244MAPISENDMAIL MAPISendMail;
245
246typedef ULONG (WINAPI MAPISENDMAILW)(LHANDLE,ULONG_PTR,lpMapiMessageW,FLAGS,ULONG);
247typedef MAPISENDMAILW *LPMAPISENDMAILW;
248MAPISENDMAILW MAPISendMailW;
249
250#ifdef __cplusplus
251}
252#endif
253
254#endif /* MAPI_H */
注意: 瀏覽 TracBrowser 來幫助您使用儲存庫瀏覽器

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