source: Daodan/MSYS2/mingw32/i686-w64-mingw32/include/mapispi.h@ 1181

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

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

File size: 17.2 KB
Line 
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#ifndef MAPISPI_H
7#define MAPISPI_H
8
9#include <mapidefs.h>
10#include <mapicode.h>
11#include <mapiguid.h>
12#include <mapitags.h>
13
14#ifndef BEGIN_INTERFACE
15#define BEGIN_INTERFACE
16#endif
17
18#ifdef __cplusplus
19extern "C" {
20#endif
21
22#define CURRENT_SPI_VERSION __MSABI_LONG(0x00010010)
23#define PDK1_SPI_VERSION __MSABI_LONG(0x00010000)
24#define PDK2_SPI_VERSION __MSABI_LONG(0x00010008)
25#define PDK3_SPI_VERSION __MSABI_LONG(0x00010010)
26
27 DECLARE_MAPI_INTERFACE_PTR(IMAPISupport,LPMAPISUP);
28
29 typedef struct {
30 ULONG cb;
31 BYTE ab[MAPI_DIM];
32 } NOTIFKEY,*LPNOTIFKEY;
33
34#define CbNewNOTIFKEY(_cb) (offsetof(NOTIFKEY,ab) + (_cb))
35#define CbNOTIFKEY(_lpkey) (offsetof(NOTIFKEY,ab) + (_lpkey)->cb)
36#define SizedNOTIFKEY(_cb,_name) struct _NOTIFKEY_ ## _name { ULONG cb; BYTE ab[_cb]; } _name
37
38#define NOTIFY_SYNC ((ULONG) 0x40000000)
39#define NOTIFY_CANCELED ((ULONG) 0x80000000)
40#define CALLBACK_DISCONTINUE ((ULONG) 0x80000000)
41
42#define NOTIFY_NEWMAIL ((ULONG) 0x00000001)
43#define NOTIFY_READYTOSEND ((ULONG) 0x00000002)
44#define NOTIFY_SENTDEFERRED ((ULONG) 0x00000004)
45#define NOTIFY_CRITSEC ((ULONG) 0x00001000)
46#define NOTIFY_NONCRIT ((ULONG) 0x00002000)
47#define NOTIFY_CONFIG_CHANGE ((ULONG) 0x00004000)
48#define NOTIFY_CRITICAL_ERROR ((ULONG) 0x10000000)
49#define NOTIFY_NEWMAIL_RECEIVED ((ULONG) 0x20000000)
50
51#define STATUSROW_UPDATE ((ULONG) 0x10000000)
52
53#define STGSTRM_RESET ((ULONG) 0x00000000)
54#define STGSTRM_CURRENT ((ULONG) 0x10000000)
55#define STGSTRM_MODIFY ((ULONG) 0x00000002)
56#define STGSTRM_CREATE ((ULONG) 0x00001000)
57
58#define MAPI_NON_READ ((ULONG) 0x00000001)
59
60 typedef HRESULT (WINAPI PREPROCESSMESSAGE)(LPVOID lpvSession,LPMESSAGE lpMessage,LPADRBOOK lpAdrBook,LPMAPIFOLDER lpFolder,LPALLOCATEBUFFER AllocateBuffer,LPALLOCATEMORE AllocateMore,LPFREEBUFFER FreeBuffer,ULONG *lpcOutbound,LPMESSAGE **lpppMessage,LPADRLIST *lppRecipList);
61 typedef HRESULT (WINAPI REMOVEPREPROCESSINFO)(LPMESSAGE lpMessage);
62
63#define MAPI_IMAPISUPPORT_METHODS1(IPURE) MAPIMETHOD(GetLastError) (THIS_ HRESULT hResult,ULONG ulFlags,LPMAPIERROR *lppMAPIError) IPURE; MAPIMETHOD(GetMemAllocRoutines) (THIS_ LPALLOCATEBUFFER *lpAllocateBuffer,LPALLOCATEMORE *lpAllocateMore,LPFREEBUFFER *lpFreeBuffer) IPURE; MAPIMETHOD(Subscribe) (THIS_ LPNOTIFKEY lpKey,ULONG ulEventMask,ULONG ulFlags,LPMAPIADVISESINK lpAdviseSink,ULONG *lpulConnection) IPURE; MAPIMETHOD(Unsubscribe) (THIS_ ULONG ulConnection) IPURE; MAPIMETHOD(Notify) (THIS_ LPNOTIFKEY lpKey,ULONG cNotification,LPNOTIFICATION lpNotifications,ULONG *lpulFlags) IPURE; MAPIMETHOD(ModifyStatusRow) (THIS_ ULONG cValues,LPSPropValue lpColumnVals,ULONG ulFlags) IPURE; MAPIMETHOD(OpenProfileSection) (THIS_ LPMAPIUID lpUid,ULONG ulFlags,LPPROFSECT *lppProfileObj) IPURE; MAPIMETHOD(RegisterPreprocessor) (THIS_ LPMAPIUID lpMuid,LPTSTR lpszAdrType,LPTSTR lpszDLLName,LPSTR lpszPreprocess,LPSTR lpszRemovePreprocessInfo,ULONG ulFlags) IPURE; MAPIMETHOD(NewUID) (THIS_ LPMAPIUID lpMuid) IPURE; MAPIMETHOD(MakeInvalid) (THIS_ ULONG ulFlags,LPVOID lpObject,ULONG ulRefCount,ULONG cMethods) IPURE;
64#define MAPI_IMAPISUPPORT_METHODS2(IPURE) MAPIMETHOD(SpoolerYield) (THIS_ ULONG ulFlags) IPURE; MAPIMETHOD(SpoolerNotify) (THIS_ ULONG ulFlags,LPVOID lpvData) IPURE; MAPIMETHOD(CreateOneOff) (THIS_ LPTSTR lpszName,LPTSTR lpszAdrType,LPTSTR lpszAddress,ULONG ulFlags,ULONG *lpcbEntryID,LPENTRYID *lppEntryID) IPURE; MAPIMETHOD(SetProviderUID) (THIS_ LPMAPIUID lpProviderID,ULONG ulFlags) IPURE; MAPIMETHOD(CompareEntryIDs) (THIS_ ULONG cbEntry1,LPENTRYID lpEntry1,ULONG cbEntry2,LPENTRYID lpEntry2,ULONG ulCompareFlags,ULONG *lpulResult) IPURE; MAPIMETHOD(OpenTemplateID) (THIS_ ULONG cbTemplateID,LPENTRYID lpTemplateID,ULONG ulTemplateFlags,LPMAPIPROP lpMAPIPropData,LPCIID lpInterface,LPMAPIPROP *lppMAPIPropNew,LPMAPIPROP lpMAPIPropSibling) IPURE; MAPIMETHOD(OpenEntry) (THIS_ ULONG cbEntryID,LPENTRYID lpEntryID,LPCIID lpInterface,ULONG ulOpenFlags,ULONG *lpulObjType,LPUNKNOWN *lppUnk) IPURE; MAPIMETHOD(GetOneOffTable) (THIS_ ULONG ulFlags,LPMAPITABLE *lppTable) IPURE; MAPIMETHOD(Address) (THIS_ ULONG *lpulUIParam,LPADRPARM lpAdrParms,LPADRLIST *lppAdrList) IPURE; MAPIMETHOD(Details) (THIS_ ULONG *lpulUIParam,LPFNDISMISS lpfnDismiss,LPVOID lpvDismissContext,ULONG cbEntryID,LPENTRYID lpEntryID,LPFNBUTTON lpfButtonCallback,LPVOID lpvButtonContext,LPTSTR lpszButtonText,ULONG ulFlags) IPURE; MAPIMETHOD(NewEntry) (THIS_ ULONG ulUIParam,ULONG ulFlags,ULONG cbEIDContainer,LPENTRYID lpEIDContainer,ULONG cbEIDNewEntryTpl,LPENTRYID lpEIDNewEntryTpl,ULONG *lpcbEIDNewEntry,LPENTRYID *lppEIDNewEntry) IPURE; MAPIMETHOD(DoConfigPropsheet) (THIS_ ULONG ulUIParam,ULONG ulFlags,LPTSTR lpszTitle,LPMAPITABLE lpDisplayTable,LPMAPIPROP lpCOnfigData,ULONG ulTopPage) IPURE; MAPIMETHOD(CopyMessages) (THIS_ LPCIID lpSrcInterface,LPVOID lpSrcFolder,LPENTRYLIST lpMsgList,LPCIID lpDestInterface,LPVOID lpDestFolder,ULONG ulUIParam,LPMAPIPROGRESS lpProgress,ULONG ulFlags) IPURE; MAPIMETHOD(CopyFolder) (THIS_ LPCIID lpSrcInterface,LPVOID lpSrcFolder,ULONG cbEntryID,LPENTRYID lpEntryID,LPCIID lpDestInterface,LPVOID lpDestFolder,LPTSTR lszNewFolderName,ULONG ulUIParam,LPMAPIPROGRESS lpProgress,ULONG ulFlags) IPURE;
65#define MAPI_IMAPISUPPORT_METHODS3(IPURE) MAPIMETHOD(DoCopyTo) (THIS_ LPCIID lpSrcInterface,LPVOID lpSrcObj,ULONG ciidExclude,LPCIID rgiidExclude,LPSPropTagArray lpExcludeProps,ULONG ulUIParam,LPMAPIPROGRESS lpProgress,LPCIID lpDestInterface,LPVOID lpDestObj,ULONG ulFlags,LPSPropProblemArray *lppProblems) IPURE; MAPIMETHOD(DoCopyProps) (THIS_ LPCIID lpSrcInterface,LPVOID lpSrcObj,LPSPropTagArray lpIncludeProps,ULONG ulUIParam,LPMAPIPROGRESS lpProgress,LPCIID lpDestInterface,LPVOID lpDestObj,ULONG ulFlags,LPSPropProblemArray *lppProblems) IPURE; MAPIMETHOD(DoProgressDialog) (THIS_ ULONG ulUIParam,ULONG ulFlags,LPMAPIPROGRESS *lppProgress) IPURE; MAPIMETHOD(ReadReceipt) (THIS_ ULONG ulFlags,LPMESSAGE lpReadMessage,LPMESSAGE *lppEmptyMessage) IPURE; MAPIMETHOD(PrepareSubmit) (THIS_ LPMESSAGE lpMessage,ULONG *lpulFlags) IPURE; MAPIMETHOD(ExpandRecips) (THIS_ LPMESSAGE lpMessage,ULONG *lpulFlags) IPURE; MAPIMETHOD(UpdatePAB) (THIS_ ULONG ulFlags,LPMESSAGE lpMessage) IPURE; MAPIMETHOD(DoSentMail) (THIS_ ULONG ulFlags,LPMESSAGE lpMessage) IPURE; MAPIMETHOD(OpenAddressBook) (THIS_ LPCIID lpInterface,ULONG ulFlags,LPADRBOOK *lppAdrBook) IPURE; MAPIMETHOD(Preprocess) (THIS_ ULONG ulFlags,ULONG cbEntryID,LPENTRYID lpEntryID) IPURE; MAPIMETHOD(CompleteMsg) (THIS_ ULONG ulFlags,ULONG cbEntryID,LPENTRYID lpEntryID) IPURE; MAPIMETHOD(StoreLogoffTransports) (THIS_ ULONG *lpulFlags) IPURE; MAPIMETHOD(StatusRecips) (THIS_ LPMESSAGE lpMessage,LPADRLIST lpRecipList) IPURE; MAPIMETHOD(WrapStoreEntryID) (THIS_ ULONG cbOrigEntry,LPENTRYID lpOrigEntry,ULONG *lpcbWrappedEntry,LPENTRYID *lppWrappedEntry) IPURE; MAPIMETHOD(ModifyProfile) (THIS_ ULONG ulFlags) IPURE; MAPIMETHOD(IStorageFromStream) (THIS_ LPUNKNOWN lpUnkIn,LPCIID lpInterface,ULONG ulFlags,LPSTORAGE *lppStorageOut) IPURE; MAPIMETHOD(GetSvcConfigSupportObj) (THIS_ ULONG ulFlags,LPMAPISUP *lppSvcSupport) IPURE;
66#undef INTERFACE
67#define INTERFACE IMAPISupport
68 DECLARE_MAPI_INTERFACE_(IMAPISupport,IUnknown) {
69 BEGIN_INTERFACE
70 MAPI_IUNKNOWN_METHODS(PURE)
71 MAPI_IMAPISUPPORT_METHODS1(PURE)
72 MAPI_IMAPISUPPORT_METHODS2(PURE)
73 MAPI_IMAPISUPPORT_METHODS3(PURE)
74 };
75
76#define FILL_ENTRY ((ULONG) 0x00000001)
77
78 DECLARE_MAPI_INTERFACE_PTR(IABProvider,LPABPROVIDER);
79 DECLARE_MAPI_INTERFACE_PTR(IABLogon,LPABLOGON);
80
81#define MAPI_IABPROVIDER_METHODS(IPURE) MAPIMETHOD(Shutdown) (THIS_ ULONG *lpulFlags) IPURE; MAPIMETHOD(Logon) (THIS_ LPMAPISUP lpMAPISup,ULONG ulUIParam,LPTSTR lpszProfileName,ULONG ulFlags,ULONG *lpulpcbSecurity,LPBYTE *lppbSecurity,LPMAPIERROR *lppMAPIError,LPABLOGON *lppABLogon) IPURE;
82#undef INTERFACE
83#define INTERFACE IABProvider
84 DECLARE_MAPI_INTERFACE_(IABProvider,IUnknown) {
85 BEGIN_INTERFACE
86 MAPI_IUNKNOWN_METHODS(PURE)
87 MAPI_IABPROVIDER_METHODS(PURE)
88 };
89
90#define MAPI_IABLOGON_METHODS(IPURE) MAPIMETHOD(GetLastError) (THIS_ HRESULT hResult,ULONG ulFlags,LPMAPIERROR *lppMAPIError) IPURE; MAPIMETHOD(Logoff) (THIS_ ULONG ulFlags) IPURE; MAPIMETHOD(OpenEntry) (THIS_ ULONG cbEntryID,LPENTRYID lpEntryID,LPCIID lpInterface,ULONG ulFlags,ULONG *lpulObjType,LPUNKNOWN *lppUnk) IPURE; MAPIMETHOD(CompareEntryIDs) (THIS_ ULONG cbEntryID1,LPENTRYID lpEntryID1,ULONG cbEntryID2,LPENTRYID lpEntryID2,ULONG ulFlags,ULONG *lpulResult) IPURE; MAPIMETHOD(Advise) (THIS_ ULONG cbEntryID,LPENTRYID lpEntryID,ULONG ulEventMask,LPMAPIADVISESINK lpAdviseSink,ULONG *lpulConnection) IPURE; MAPIMETHOD(Unadvise) (THIS_ ULONG ulConnection) IPURE; MAPIMETHOD(OpenStatusEntry) (THIS_ LPCIID lpInterface,ULONG ulFlags,ULONG *lpulObjType,LPMAPISTATUS *lppEntry) IPURE; MAPIMETHOD(OpenTemplateID) (THIS_ ULONG cbTemplateID,LPENTRYID lpTemplateID,ULONG ulTemplateFlags,LPMAPIPROP lpMAPIPropData,LPCIID lpInterface,LPMAPIPROP *lppMAPIPropNew,LPMAPIPROP lpMAPIPropSibling) IPURE; MAPIMETHOD(GetOneOffTable) (THIS_ ULONG ulFlags,LPMAPITABLE *lppTable) IPURE; MAPIMETHOD(PrepareRecips) (THIS_ ULONG ulFlags,LPSPropTagArray lpPropTagArray,LPADRLIST lpRecipList) IPURE;
91#undef INTERFACE
92#define INTERFACE IABLogon
93 DECLARE_MAPI_INTERFACE_(IABLogon,IUnknown) {
94 BEGIN_INTERFACE
95 MAPI_IUNKNOWN_METHODS(PURE)
96 MAPI_IABLOGON_METHODS(PURE)
97 };
98
99 typedef HRESULT (__cdecl ABPROVIDERINIT)(HINSTANCE hInstance,LPMALLOC lpMalloc,LPALLOCATEBUFFER lpAllocateBuffer,LPALLOCATEMORE lpAllocateMore,LPFREEBUFFER lpFreeBuffer,ULONG ulFlags,ULONG ulMAPIVer,ULONG *lpulProviderVer,LPABPROVIDER *lppABProvider);
100
101 ABPROVIDERINIT ABProviderInit;
102
103#define DEINIT_NORMAL ((ULONG) 0x00000001)
104#define DEINIT_HURRY ((ULONG) 0x80000000)
105
106#define LOGON_NO_DIALOG ((ULONG) 0x00000001)
107#define LOGON_NO_CONNECT ((ULONG) 0x00000004)
108#define LOGON_NO_INBOUND ((ULONG) 0x00000008)
109#define LOGON_NO_OUTBOUND ((ULONG) 0x00000010)
110
111#define LOGON_SP_IDLE ((ULONG) 0x00010000)
112#define LOGON_SP_POLL ((ULONG) 0x00020000)
113#define LOGON_SP_RESOLVE ((ULONG) 0x00040000)
114
115 DECLARE_MAPI_INTERFACE_PTR(IXPProvider,LPXPPROVIDER);
116 DECLARE_MAPI_INTERFACE_PTR(IXPLogon,LPXPLOGON);
117
118#define MAPI_IXPPROVIDER_METHODS(IPURE) MAPIMETHOD(Shutdown) (THIS_ ULONG *lpulFlags) IPURE; MAPIMETHOD(TransportLogon) (THIS_ LPMAPISUP lpMAPISup,ULONG ulUIParam,LPTSTR lpszProfileName,ULONG *lpulFlags,LPMAPIERROR *lppMAPIError,LPXPLOGON *lppXPLogon) IPURE;
119#undef INTERFACE
120#define INTERFACE IXPProvider
121 DECLARE_MAPI_INTERFACE_(IXPProvider,IUnknown) {
122 BEGIN_INTERFACE
123 MAPI_IUNKNOWN_METHODS(PURE)
124 MAPI_IXPPROVIDER_METHODS(PURE)
125 };
126
127#define OPTION_TYPE_RECIPIENT ((ULONG) 0x00000001)
128#define OPTION_TYPE_MESSAGE ((ULONG) 0x00000002)
129
130 typedef struct _OPTIONDATA {
131 ULONG ulFlags;
132 LPGUID lpRecipGUID;
133 LPTSTR lpszAdrType;
134 LPTSTR lpszDLLName;
135 ULONG ulOrdinal;
136 ULONG cbOptionsData;
137 LPBYTE lpbOptionsData;
138 ULONG cOptionsProps;
139 LPSPropValue lpOptionsProps;
140 } OPTIONDATA,*LPOPTIONDATA;
141
142 typedef SCODE (__cdecl OPTIONCALLBACK)(HINSTANCE hInst,LPMALLOC lpMalloc,ULONG ulFlags,ULONG cbOptionData,LPBYTE lpbOptionData,LPMAPISUP lpMAPISup,LPMAPIPROP lpDataSource,LPMAPIPROP *lppWrappedSource,LPMAPIERROR *lppMAPIError);
143
144#define NOTIFY_ABORT_DEFERRED ((ULONG) 0x40000000)
145#define NOTIFY_CANCEL_MESSAGE ((ULONG) 0x80000000)
146#define NOTIFY_BEGIN_INBOUND ((ULONG) 0x00000001)
147#define NOTIFY_END_INBOUND ((ULONG) 0x00010000)
148#define NOTIFY_BEGIN_OUTBOUND ((ULONG) 0x00000002)
149#define NOTIFY_END_OUTBOUND ((ULONG) 0x00020000)
150#define NOTIFY_BEGIN_INBOUND_FLUSH ((ULONG) 0x00000004)
151#define NOTIFY_END_INBOUND_FLUSH ((ULONG) 0x00040000)
152#define NOTIFY_BEGIN_OUTBOUND_FLUSH ((ULONG) 0x00000008)
153#define NOTIFY_END_OUTBOUND_FLUSH ((ULONG) 0x00080000)
154
155#define LOGOFF_NORMAL ((ULONG) 0x00000001)
156#define LOGOFF_HURRY ((ULONG) 0x80000000)
157
158#define BEGIN_DEFERRED ((ULONG) 0x00000001)
159
160#define END_RESEND_NOW ((ULONG) 0x00010000)
161#define END_RESEND_LATER ((ULONG) 0x00020000)
162#define END_DONT_RESEND ((ULONG) 0x00040000)
163
164#define MAPI_IXPLOGON_METHODS(IPURE) MAPIMETHOD(AddressTypes) (THIS_ ULONG *lpulFlags,ULONG *lpcAdrType,LPTSTR **lpppAdrTypeArray,ULONG *lpcMAPIUID,LPMAPIUID **lpppUIDArray) IPURE; MAPIMETHOD(RegisterOptions) (THIS_ ULONG *lpulFlags,ULONG *lpcOptions,LPOPTIONDATA *lppOptions) IPURE; MAPIMETHOD(TransportNotify) (THIS_ ULONG *lpulFlags,LPVOID *lppvData) IPURE; MAPIMETHOD(Idle) (THIS_ ULONG ulFlags) IPURE; MAPIMETHOD(TransportLogoff) (THIS_ ULONG ulFlags) IPURE; MAPIMETHOD(SubmitMessage) (THIS_ ULONG ulFlags,LPMESSAGE lpMessage,ULONG *lpulMsgRef,ULONG *lpulReturnParm) IPURE; MAPIMETHOD(EndMessage) (THIS_ ULONG ulMsgRef,ULONG *lpulFlags) IPURE; MAPIMETHOD(Poll) (THIS_ ULONG *lpulIncoming) IPURE; MAPIMETHOD(StartMessage) (THIS_ ULONG ulFlags,LPMESSAGE lpMessage,ULONG *lpulMsgRef) IPURE; MAPIMETHOD(OpenStatusEntry) (THIS_ LPCIID lpInterface,ULONG ulFlags,ULONG *lpulObjType,LPMAPISTATUS *lppEntry) IPURE; MAPIMETHOD(ValidateState) (THIS_ ULONG ulUIParam,ULONG ulFlags) IPURE; MAPIMETHOD(FlushQueues) (THIS_ ULONG ulUIParam,ULONG cbTargetTransport,LPENTRYID lpTargetTransport,ULONG ulFlags) IPURE;
165#undef INTERFACE
166#define INTERFACE IXPLogon
167 DECLARE_MAPI_INTERFACE_(IXPLogon,IUnknown) {
168 BEGIN_INTERFACE
169 MAPI_IUNKNOWN_METHODS(PURE)
170 MAPI_IXPLOGON_METHODS(PURE)
171 };
172
173 typedef HRESULT (__cdecl XPPROVIDERINIT)(HINSTANCE hInstance,LPMALLOC lpMalloc,LPALLOCATEBUFFER lpAllocateBuffer,LPALLOCATEMORE lpAllocateMore,LPFREEBUFFER lpFreeBuffer,ULONG ulFlags,ULONG ulMAPIVer,ULONG *lpulProviderVer,LPXPPROVIDER *lppXPProvider);
174
175 XPPROVIDERINIT XPProviderInit;
176
177#define LOGON_SP_TRANSPORT ((ULONG) 0x00000001)
178#define LOGON_SP_PROMPT ((ULONG) 0x00000002)
179#define LOGON_SP_NEWPW ((ULONG) 0x00000004)
180#define LOGON_CHANGED ((ULONG) 0x00000008)
181
182#define DIALOG_FOLDER ((ULONG) 0x00000001)
183#define DIALOG_MESSAGE ((ULONG) 0x00000002)
184#define DIALOG_PROP ((ULONG) 0x00000004)
185#define DIALOG_ATTACH ((ULONG) 0x00000008)
186
187#define DIALOG_MOVE ((ULONG) 0x00000010)
188#define DIALOG_COPY ((ULONG) 0x00000020)
189#define DIALOG_DELETE ((ULONG) 0x00000040)
190
191#define DIALOG_ALLOW_CANCEL ((ULONG) 0x00000080)
192#define DIALOG_CONFIRM_CANCEL ((ULONG) 0x00000100)
193
194#define NEEDS_PREPROCESSING ((ULONG) 0x00000001)
195#define NEEDS_SPOOLER ((ULONG) 0x00000002)
196
197#define CHECK_SENDER ((ULONG) 0x00000001)
198#define NON_STANDARD ((ULONG) 0x00010000)
199
200 DECLARE_MAPI_INTERFACE_PTR(IMSLogon,LPMSLOGON);
201 DECLARE_MAPI_INTERFACE_PTR(IMSProvider,LPMSPROVIDER);
202
203#define MAPI_IMSPROVIDER_METHODS(IPURE) MAPIMETHOD(Shutdown) (THIS_ ULONG *lpulFlags) IPURE; MAPIMETHOD(Logon) (THIS_ LPMAPISUP lpMAPISup,ULONG ulUIParam,LPTSTR lpszProfileName,ULONG cbEntryID,LPENTRYID lpEntryID,ULONG ulFlags,LPCIID lpInterface,ULONG *lpcbSpoolSecurity,LPBYTE *lppbSpoolSecurity,LPMAPIERROR *lppMAPIError,LPMSLOGON *lppMSLogon,LPMDB *lppMDB) IPURE; MAPIMETHOD(SpoolerLogon) (THIS_ LPMAPISUP lpMAPISup,ULONG ulUIParam,LPTSTR lpszProfileName,ULONG cbEntryID,LPENTRYID lpEntryID,ULONG ulFlags,LPCIID lpInterface,ULONG cbSpoolSecurity,LPBYTE lpbSpoolSecurity,LPMAPIERROR *lppMAPIError,LPMSLOGON *lppMSLogon,LPMDB *lppMDB) IPURE; MAPIMETHOD(CompareStoreIDs) (THIS_ ULONG cbEntryID1,LPENTRYID lpEntryID1,ULONG cbEntryID2,LPENTRYID lpEntryID2,ULONG ulFlags,ULONG *lpulResult) IPURE;
204#undef INTERFACE
205#define INTERFACE IMSProvider
206 DECLARE_MAPI_INTERFACE_(IMSProvider,IUnknown) {
207 BEGIN_INTERFACE
208 MAPI_IUNKNOWN_METHODS(PURE)
209 MAPI_IMSPROVIDER_METHODS(PURE)
210 };
211
212#define MAPI_IMSLOGON_METHODS(IPURE) MAPIMETHOD(GetLastError) (THIS_ HRESULT hResult,ULONG ulFlags,LPMAPIERROR *lppMAPIError) IPURE; MAPIMETHOD(Logoff) (THIS_ ULONG *lpulFlags) IPURE; MAPIMETHOD(OpenEntry) (THIS_ ULONG cbEntryID,LPENTRYID lpEntryID,LPCIID lpInterface,ULONG ulFlags,ULONG *lpulObjType,LPUNKNOWN *lppUnk) IPURE; MAPIMETHOD(CompareEntryIDs) (THIS_ ULONG cbEntryID1,LPENTRYID lpEntryID1,ULONG cbEntryID2,LPENTRYID lpEntryID2,ULONG ulFlags,ULONG *lpulResult) IPURE; MAPIMETHOD(Advise) (THIS_ ULONG cbEntryID,LPENTRYID lpEntryID,ULONG ulEventMask,LPMAPIADVISESINK lpAdviseSink,ULONG *lpulConnection) IPURE; MAPIMETHOD(Unadvise) (THIS_ ULONG ulConnection) IPURE; MAPIMETHOD(OpenStatusEntry) (THIS_ LPCIID lpInterface,ULONG ulFlags,ULONG *lpulObjType,LPVOID *lppEntry) IPURE;
213#undef INTERFACE
214#define INTERFACE IMSLogon
215 DECLARE_MAPI_INTERFACE_(IMSLogon,IUnknown) {
216 BEGIN_INTERFACE
217 MAPI_IUNKNOWN_METHODS(PURE)
218 MAPI_IMSLOGON_METHODS(PURE)
219 };
220
221 typedef HRESULT (__cdecl MSPROVIDERINIT)(HINSTANCE hInstance,LPMALLOC lpMalloc,LPALLOCATEBUFFER lpAllocateBuffer,LPALLOCATEMORE lpAllocateMore,LPFREEBUFFER lpFreeBuffer,ULONG ulFlags,ULONG ulMAPIVer,ULONG *lpulProviderVer,LPMSPROVIDER *lppMSProvider);
222
223 MSPROVIDERINIT MSProviderInit;
224
225#define MSG_SERVICE_UI_READ_ONLY 0x00000008
226#define SERVICE_LOGON_FAILED 0x00000020
227
228#define MSG_SERVICE_INSTALL 0x00000001
229#define MSG_SERVICE_CREATE 0x00000002
230#define MSG_SERVICE_CONFIGURE 0x00000003
231#define MSG_SERVICE_DELETE 0x00000004
232#define MSG_SERVICE_UNINSTALL 0x00000005
233#define MSG_SERVICE_PROVIDER_CREATE 0x00000006
234#define MSG_SERVICE_PROVIDER_DELETE 0x00000007
235
236 typedef HRESULT (WINAPI MSGSERVICEENTRY)(HINSTANCE hInstance,LPMALLOC lpMalloc,LPMAPISUP lpMAPISup,ULONG ulUIParam,ULONG ulFlags,ULONG ulContext,ULONG cValues,LPSPropValue lpProps,LPPROVIDERADMIN lpProviderAdmin,LPMAPIERROR *lppMapiError);
237 typedef MSGSERVICEENTRY *LPMSGSERVICEENTRY;
238
239#ifdef __cplusplus
240}
241#endif
242#endif
Note: See TracBrowser for help on using the repository browser.