VirtualBox

source: vbox/trunk/src/VBox/Additions/WINNT/Graphics/Wine/include/mapix.h@ 30705

Last change on this file since 30705 was 19678, checked in by vboxsync, 16 years ago

opengl: update wine to 1.1.21, add d3d9.dll to build list

  • Property svn:eol-style set to native
File size: 8.7 KB
Line 
1/*
2 * Copyright 2004 Jon Griffiths
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 MAPIX_H
29#define MAPIX_H
30
31#include <mapidefs.h>
32#include <mapicode.h>
33#include <mapiguid.h>
34#include <mapitags.h>
35
36#ifdef __cplusplus
37extern "C" {
38#endif
39
40typedef struct IProfAdmin IProfAdmin;
41typedef IProfAdmin *LPPROFADMIN;
42typedef struct IMsgServiceAdmin IMsgServiceAdmin;
43typedef IMsgServiceAdmin *LPSERVICEADMIN;
44typedef struct IMAPISession *LPMAPISESSION;
45
46#ifndef WINE_FLAGS_DEFINED
47#define WINE_FLAGS_DEFINED
48typedef ULONG FLAGS;
49#endif
50
51/* Flags for MAPILogon and MAPILogonEx */
52#ifndef MAPI_LOGON_UI
53#define MAPI_LOGON_UI 0x00000001
54#endif
55#ifndef MAPI_NEW_SESSION
56#define MAPI_NEW_SESSION 0x00000002
57#endif
58#define MAPI_ALLOW_OTHERS 0x00000008
59#define MAPI_EXPLICIT_PROFILE 0x00000010
60#ifndef MAPI_EXTENDED
61#define MAPI_EXTENDED 0x00000020
62#endif
63#ifndef MAPI_FORCE_DOWNLOAD
64#define MAPI_FORCE_DOWNLOAD 0x00001000
65#endif
66#ifndef MAPI_PASSWORD_UI
67#define MAPI_PASSWORD_UI 0x00020000
68#endif
69#define MAPI_SERVICE_UI_ALWAYS 0x00002000
70#define MAPI_NO_MAIL 0x00008000
71#define MAPI_NT_SERVICE 0x00010000
72#define MAPI_TIMEOUT_SHORT 0x00100000
73
74#define MAPI_SIMPLE_DEFAULT (MAPI_LOGON_UI|MAPI_ALLOW_OTHERS|MAPI_FORCE_DOWNLOAD)
75#define MAPI_SIMPLE_EXPLICIT (MAPI_NEW_SESSION|MAPI_EXPLICIT_PROFILE|MAPI_FORCE_DOWNLOAD)
76
77typedef struct tagMAPIINIT_0
78{
79 ULONG ulVersion;
80 ULONG ulFlags;
81} MAPIINIT_0, *LPMAPIINIT_0;
82
83typedef MAPIINIT_0 MAPIINIT, *LPMAPIINIT;
84
85#define MAPI_INIT_VERSION 0U
86
87typedef HRESULT (WINAPI MAPIINITIALIZE)(void*);
88typedef MAPIINITIALIZE *LPMAPIINITIALIZE;
89MAPIINITIALIZE MAPIInitialize;
90
91typedef void (WINAPI MAPIUNINITIALIZE)(void);
92typedef MAPIUNINITIALIZE *LPMAPIUNINITIALIZE;
93MAPIUNINITIALIZE MAPIUninitialize;
94
95#if defined (UNICODE) || defined (__WINESRC__)
96typedef HRESULT (STDMETHODCALLTYPE MAPILOGONEX)(ULONG_PTR,LPWSTR,LPWSTR,ULONG,LPMAPISESSION*);
97#else
98typedef HRESULT (STDMETHODCALLTYPE MAPILOGONEX)(ULONG_PTR,LPSTR,LPSTR,ULONG,LPMAPISESSION *);
99#endif
100typedef MAPILOGONEX *LPMAPILOGONEX;
101MAPILOGONEX MAPILogonEx;
102
103typedef SCODE (WINAPI MAPIALLOCATEBUFFER)(ULONG,LPVOID*);
104typedef MAPIALLOCATEBUFFER *LPMAPIALLOCATEBUFFER;
105MAPIALLOCATEBUFFER MAPIAllocateBuffer;
106
107typedef SCODE (WINAPI MAPIALLOCATEMORE)(ULONG,LPVOID,LPVOID*);
108typedef MAPIALLOCATEMORE *LPMAPIALLOCATEMORE;
109MAPIALLOCATEMORE MAPIAllocateMore;
110
111#ifndef MAPIFREEBUFFER_DEFINED
112#define MAPIFREEBUFFER_DEFINED
113typedef ULONG (WINAPI MAPIFREEBUFFER)(LPVOID);
114typedef MAPIFREEBUFFER *LPMAPIFREEBUFFER;
115MAPIFREEBUFFER MAPIFreeBuffer;
116#endif
117
118typedef HRESULT (WINAPI MAPIADMINPROFILES)(ULONG,LPPROFADMIN*);
119typedef MAPIADMINPROFILES *LPMAPIADMINPROFILES;
120MAPIADMINPROFILES MAPIAdminProfiles;
121
122/*****************************************************************************
123 * IMAPISession interface
124 */
125#define INTERFACE IMAPISession
126DECLARE_INTERFACE_(IMAPISession,IUnknown)
127{
128 /*** IUnknown methods ***/
129 STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE;
130 STDMETHOD_(ULONG,AddRef)(THIS) PURE;
131 STDMETHOD_(ULONG,Release)(THIS) PURE;
132 /*** IMAPISession methods ***/
133 STDMETHOD(GetLastError)(THIS_ HRESULT hResult, ULONG ulFlags, LPMAPIERROR *lppMAPIError) PURE;
134 STDMETHOD(GetMsgStoresTable)(THIS_ ULONG ulFlags, LPMAPITABLE *lppTable) PURE;
135 STDMETHOD(OpenMsgStore)(THIS_ ULONG_PTR ulUIParam, ULONG cbId,
136 LPENTRYID lpId, LPCIID lpIFace, ULONG ulFlags, LPMDB *lppMDB) PURE;
137 STDMETHOD(OpenAddressBook)(THIS_ ULONG_PTR ulUIParam, LPCIID iid, ULONG ulFlags, LPADRBOOK *lppAdrBook) PURE;
138 STDMETHOD(OpenProfileSection)(THIS_ LPMAPIUID lpUID, LPCIID iid, ULONG ulFlags, LPPROFSECT *lppProf) PURE;
139 STDMETHOD(GetStatusTable)(THIS_ ULONG ulFlags, LPMAPITABLE *lppTable) PURE;
140 STDMETHOD(OpenEntry)(THIS_ ULONG cbId, LPENTRYID lpId, LPCIID iid,
141 ULONG ulFlags, ULONG *lpType, LPUNKNOWN *lppUnk) PURE;
142 STDMETHOD(CompareEntryIDs)(THIS_ ULONG cbLID, LPENTRYID lpLID, ULONG cbRID,
143 LPENTRYID lpRID, ULONG ulFlags, ULONG *lpRes) PURE;
144 STDMETHOD(Advise)(THIS_ ULONG cbId, LPENTRYID lpId, ULONG ulMask,
145 LPMAPIADVISESINK lpSink, ULONG *lpCxn) PURE;
146 STDMETHOD(Unadvise)(THIS_ ULONG ulConnection) PURE;
147 STDMETHOD(MessageOptions)(THIS_ ULONG_PTR ulUIParam, ULONG ulFlags, LPSTR lpszAddr, LPMESSAGE lpMsg) PURE;
148 STDMETHOD(QueryDefaultMessageOpt)(THIS_ LPSTR lpszAddr, ULONG ulFlags,
149 ULONG *lpcVals, LPSPropValue *lppOpts) PURE;
150 STDMETHOD(EnumAdrTypes)(THIS_ ULONG ulFlags, ULONG *lpcTypes, LPSTR **lpppszTypes) PURE;
151 STDMETHOD(QueryIdentity)(THIS_ ULONG *lpcbId, LPENTRYID *lppEntryID) PURE;
152 STDMETHOD(Logoff)(THIS_ ULONG_PTR ulUIParam, ULONG ulFlags, ULONG ulReserved) PURE;
153 STDMETHOD(SetDefaultStore)(THIS_ ULONG ulFlags, ULONG cbId, LPENTRYID lpId) PURE;
154 STDMETHOD(AdminServices)(THIS_ ULONG ulFlags, LPSERVICEADMIN *lppAdmin) PURE;
155 STDMETHOD(ShowForm)(THIS_ ULONG_PTR ulUIParam, LPMDB lpStore,
156 LPMAPIFOLDER lpParent, LPCIID iid, ULONG ulToken,
157 LPMESSAGE lpSent, ULONG ulFlags, ULONG ulStatus,
158 ULONG ulMsgFlags, ULONG ulAccess, LPSTR lpszClass) PURE;
159 STDMETHOD(PrepareForm)(THIS_ LPCIID lpIFace, LPMESSAGE lpMsg, ULONG *lpToken) PURE;
160};
161#undef INTERFACE
162
163#if !defined(__cplusplus) || defined(CINTERFACE)
164 /*** IUnknown methods ***/
165#define IMAPISession_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
166#define IMAPISession_AddRef(p) (p)->lpVtbl->AddRef(p)
167#define IMAPISession_Release(p) (p)->lpVtbl->Release(p)
168 /*** IMAPISession methods ***/
169#define IMAPISession_GetLastError(p,a,b,c) (p)->lpVtbl->GetLastError(p,a,b,c)
170#define IMAPISession_GetMsgStoresTable(p,a,b) (p)->lpVtbl->GetMsgStoresTable(p,a,b)
171#define IMAPISession_OpenMsgStore(p,a,b,c,d,e,f) (p)->lpVtbl->OpenMsgStore(p,a,b,c,d,e,f)
172#define IMAPISession_OpenAddressBook(p,a,b,c,d) (p)->lpVtbl->OpenAddressBook(p,a,b,c,d)
173#define IMAPISession_OpenProfileSection(p,a,b,c,d) (p)->lpVtbl->OpenProfileSection(p,a,b,c,d)
174#define IMAPISession_GetStatusTable(p,a,b) (p)->lpVtbl->GetStatusTable(p,a,b)
175#define IMAPISession_OpenEntry(p,a,b,c,d,e,f) (p)->lpVtbl->OpenEntry(p,a,b,c,d,e,f)
176#define IMAPISession_CompareEntryIDs(p,a,b,c,d,e,f) (p)->lpVtbl->CompareEntryIDs(p,a,b,c,d,e,f)
177#define IMAPISession_Advise(p,a,b,c,d,e) (p)->lpVtbl->Advise(p,a,b,c,d,e)
178#define IMAPISession_Unadvise(p,a) (p)->lpVtbl->Unadvise(p,a)
179#define IMAPISession_MessageOptions(p,a,b,c,d) (p)->lpVtbl->MessageOptions)(p,a,b,c,d)
180#define IMAPISession_QueryDefaultMessageOpt(p,a,b,c,d) \
181 (p)->lpVtbl->QueryDefaultMessageOpt(p,a,b,c,d)
182#define IMAPISession_EnumAdrTypes(p,a,b,c) (p)->lpVtbl->EnumAdrTypes(p,a,b,c)
183#define IMAPISession_QueryIdentity(p,a,b) (p)->lpVtbl->QueryIdentity(p,a,b)
184#define IMAPISession_Logoff(p,a,b,c) (p)->lpVtbl->Logoff(p,a,b,c)
185#define IMAPISession_SetDefaultStore(p,a,b,c) (p)->lpVtbl->SetDefaultStore(p,a,b,c)
186#define IMAPISession_AdminServices(p,a,b) (p)->lpVtbl->AdminServices(p,a,b)
187#define IMAPISession_ShowForm(p,a,b,c,d,e,f,g,h,i,j,k) \
188 (p)->lpVtbl->ShowForm(p,a,b,c,d,e,f,g,h,i,j,k)
189#define IMAPISession_PrepareForm(p,a,b,c) (p)->lpVtbl->PrepareForm(p,a,b,c)
190#endif
191
192#ifdef __cplusplus
193}
194#endif
195
196#endif /* MAPIX_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