source: Daodan/MSYS2/mingw32/i686-w64-mingw32/include/wabdefs.h@ 1171

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

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

File size: 51.8 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#if !defined(MAPIDEFS_H) && !defined(WABDEFS_H)
7#define WABDEFS_H
8#if defined (NT) && !defined (_WINNT)
9#warning NT defined but not _WINNT. You must define _WINNT to ensure " "successful compile of Windows NT code.
10#define _WINNT
11#endif
12
13#ifndef _WINDOWS_
14#define INC_OLE2
15#define INC_RPC
16#define _OLE_H_
17#include <windows.h>
18#endif
19
20#ifndef _OLEERROR_H_
21#include <objerror.h>
22#endif
23#include <objbase.h>
24#include <stddef.h>
25
26#ifndef MAPI_DIM
27#define MAPI_DIM 1
28#endif
29
30#ifndef STDMAPIINITCALLTYPE
31#define STDMAPIINITCALLTYPE __cdecl
32#define STDINITMETHODIMP HRESULT __cdecl
33#define STDINITMETHODIMP_(type) type __cdecl
34#endif
35
36#ifdef __cplusplus
37extern "C" {
38#endif
39
40#ifndef __WCHAR_DEFINED
41#define __WCHAR_DEFINED
42 typedef WORD WCHAR;
43#endif
44
45#if defined(UNICODE)
46 typedef WCHAR TCHAR;
47#else
48 typedef char TCHAR;
49#endif
50
51 typedef WCHAR *LPWSTR;
52 typedef const WCHAR *LPCWSTR;
53 typedef TCHAR *LPTSTR;
54 typedef const TCHAR *LPCTSTR;
55 typedef BYTE *LPBYTE;
56 typedef ULONG *LPULONG;
57
58#ifndef __LHANDLE
59#define __LHANDLE
60 typedef unsigned __LONG32 LHANDLE,*LPLHANDLE;
61#endif
62
63#if !defined(_WINBASE_) && !defined(_FILETIME_)
64#define _FILETIME_
65 typedef struct _FILETIME {
66 DWORD dwLowDateTime;
67 DWORD dwHighDateTime;
68 } FILETIME,*LPFILETIME;
69#endif
70
71#ifndef BEGIN_INTERFACE
72#define BEGIN_INTERFACE
73#endif
74
75#define MAPI_MODIFY ((ULONG) 0x00000001)
76
77#define MAPI_ACCESS_MODIFY ((ULONG) 0x00000001)
78#define MAPI_ACCESS_READ ((ULONG) 0x00000002)
79#define MAPI_ACCESS_DELETE ((ULONG) 0x00000004)
80#define MAPI_ACCESS_CREATE_HIERARCHY ((ULONG) 0x00000008)
81#define MAPI_ACCESS_CREATE_CONTENTS ((ULONG) 0x00000010)
82#define MAPI_ACCESS_CREATE_ASSOCIATED ((ULONG) 0x00000020)
83#define MAPI_UNICODE ((ULONG) 0x80000000)
84
85#if defined(UNICODE)
86#define fMapiUnicode MAPI_UNICODE
87#else
88#define fMapiUnicode 0
89#endif
90
91#define hrSuccess 0
92
93#ifndef MAPI_ORIG
94#define MAPI_ORIG 0
95#define MAPI_TO 1
96#define MAPI_CC 2
97#define MAPI_BCC 3
98#define MAPI_P1 0x10000000
99#define MAPI_SUBMITTED 0x80000000
100#endif
101
102#define MAPI_SHORTTERM 0x80
103#define MAPI_NOTRECIP 0x40
104#define MAPI_THISSESSION 0x20
105#define MAPI_NOW 0x10
106#define MAPI_NOTRESERVED 0x08
107
108#define MAPI_COMPOUND 0x80
109
110 typedef struct {
111 BYTE abFlags[4];
112 BYTE ab[MAPI_DIM];
113 } ENTRYID,*LPENTRYID;
114
115#define CbNewENTRYID(_cb) (offsetof(ENTRYID,ab) + (_cb))
116#define CbENTRYID(_cb) (offsetof(ENTRYID,ab) + (_cb))
117#define SizedENTRYID(_cb,_name) struct _ENTRYID_ ## _name { BYTE abFlags[4]; BYTE ab[_cb]; } _name
118
119 typedef struct _MAPIUID {
120 BYTE ab[16];
121 } MAPIUID,*LPMAPIUID;
122
123#define IsEqualMAPIUID(lpuid1,lpuid2) (!memcmp(lpuid1,lpuid2,sizeof(MAPIUID)))
124
125#define MAPI_STORE ((ULONG) 0x00000001)
126#define MAPI_ADDRBOOK ((ULONG) 0x00000002)
127#define MAPI_FOLDER ((ULONG) 0x00000003)
128#define MAPI_ABCONT ((ULONG) 0x00000004)
129#define MAPI_MESSAGE ((ULONG) 0x00000005)
130#define MAPI_MAILUSER ((ULONG) 0x00000006)
131#define MAPI_ATTACH ((ULONG) 0x00000007)
132#define MAPI_DISTLIST ((ULONG) 0x00000008)
133#define MAPI_PROFSECT ((ULONG) 0x00000009)
134#define MAPI_STATUS ((ULONG) 0x0000000A)
135#define MAPI_SESSION ((ULONG) 0x0000000B)
136#define MAPI_FORMINFO ((ULONG) 0x0000000C)
137
138#ifndef cchProfileNameMax
139#define cchProfileNameMax 64
140#define cchProfilePassMax 64
141#endif
142
143#define MV_FLAG 0x1000
144
145#define PT_UNSPECIFIED ((ULONG) 0)
146#define PT_NULL ((ULONG) 1)
147#define PT_I2 ((ULONG) 2)
148#define PT_LONG ((ULONG) 3)
149#define PT_R4 ((ULONG) 4)
150#define PT_DOUBLE ((ULONG) 5)
151#define PT_CURRENCY ((ULONG) 6)
152#define PT_APPTIME ((ULONG) 7)
153#define PT_ERROR ((ULONG) 10)
154#define PT_BOOLEAN ((ULONG) 11)
155#define PT_OBJECT ((ULONG) 13)
156#define PT_I8 ((ULONG) 20)
157#define PT_STRING8 ((ULONG) 30)
158#define PT_UNICODE ((ULONG) 31)
159#define PT_SYSTIME ((ULONG) 64)
160#define PT_CLSID ((ULONG) 72)
161#define PT_BINARY ((ULONG) 258)
162
163#define PT_SHORT PT_I2
164#define PT_I4 PT_LONG
165#define PT_FLOAT PT_R4
166#define PT_R8 PT_DOUBLE
167#define PT_LONGLONG PT_I8
168
169#if defined(UNICODE)
170#define PT_TSTRING PT_UNICODE
171#define PT_MV_TSTRING (MV_FLAG|PT_UNICODE)
172#define LPSZ lpszW
173#define LPPSZ lppszW
174#define MVSZ MVszW
175#else
176#define PT_TSTRING PT_STRING8
177#define PT_MV_TSTRING (MV_FLAG|PT_STRING8)
178#define LPSZ lpszA
179#define LPPSZ lppszA
180#define MVSZ MVszA
181#endif
182
183#define PROP_TYPE_MASK ((ULONG)0x0000FFFF)
184#define PROP_TYPE(ulPropTag) (((ULONG)(ulPropTag))&PROP_TYPE_MASK)
185#define PROP_ID(ulPropTag) (((ULONG)(ulPropTag))>>16)
186#define PROP_TAG(ulPropType,ulPropID) ((((ULONG)(ulPropID))<<16)|((ULONG)(ulPropType)))
187#define PROP_ID_NULL 0
188#define PROP_ID_INVALID 0xFFFF
189#define PR_NULL PROP_TAG(PT_NULL,PROP_ID_NULL)
190#define CHANGE_PROP_TYPE(ulPropTag,ulPropType) (((ULONG)0xFFFF0000 & ulPropTag) | ulPropType)
191
192#define PT_MV_I2 (MV_FLAG|PT_I2)
193#define PT_MV_LONG (MV_FLAG|PT_LONG)
194#define PT_MV_R4 (MV_FLAG|PT_R4)
195#define PT_MV_DOUBLE (MV_FLAG|PT_DOUBLE)
196#define PT_MV_CURRENCY (MV_FLAG|PT_CURRENCY)
197#define PT_MV_APPTIME (MV_FLAG|PT_APPTIME)
198#define PT_MV_SYSTIME (MV_FLAG|PT_SYSTIME)
199#define PT_MV_STRING8 (MV_FLAG|PT_STRING8)
200#define PT_MV_BINARY (MV_FLAG|PT_BINARY)
201#define PT_MV_UNICODE (MV_FLAG|PT_UNICODE)
202#define PT_MV_CLSID (MV_FLAG|PT_CLSID)
203#define PT_MV_I8 (MV_FLAG|PT_I8)
204
205#define PT_MV_SHORT PT_MV_I2
206#define PT_MV_I4 PT_MV_LONG
207#define PT_MV_FLOAT PT_MV_R4
208#define PT_MV_R8 PT_MV_DOUBLE
209#define PT_MV_LONGLONG PT_MV_I8
210
211#define MV_INSTANCE 0x2000
212#define MVI_FLAG (MV_FLAG | MV_INSTANCE)
213#define MVI_PROP(tag) ((tag) | MVI_FLAG)
214
215 typedef struct _SPropTagArray {
216 ULONG cValues;
217 ULONG aulPropTag[MAPI_DIM];
218 } SPropTagArray,*LPSPropTagArray;
219
220#define CbNewSPropTagArray(_ctag) (offsetof(SPropTagArray,aulPropTag) + (_ctag)*sizeof(ULONG))
221#define CbSPropTagArray(_lparray) (offsetof(SPropTagArray,aulPropTag) + (UINT)((_lparray)->cValues)*sizeof(ULONG))
222#define SizedSPropTagArray(_ctag,_name) struct _SPropTagArray_ ## _name { ULONG cValues; ULONG aulPropTag[_ctag]; } _name
223
224 typedef struct _SPropValue SPropValue;
225
226#ifndef _tagCY_DEFINED
227#define _tagCY_DEFINED
228#define _CY_DEFINED
229 typedef union tagCY {
230 struct {
231 unsigned __LONG32 Lo;
232 __LONG32 Hi;
233 };
234 LONGLONG int64;
235 } CY;
236#endif
237
238 typedef CY CURRENCY;
239
240 typedef struct _SBinary {
241 ULONG cb;
242 LPBYTE lpb;
243 } SBinary,*LPSBinary;
244
245 typedef struct _SShortArray {
246 ULONG cValues;
247 short int *lpi;
248 } SShortArray;
249
250 typedef struct _SGuidArray {
251 ULONG cValues;
252 GUID *lpguid;
253 } SGuidArray;
254
255 typedef struct _SRealArray {
256 ULONG cValues;
257 float *lpflt;
258 } SRealArray;
259
260 typedef struct _SLongArray {
261 ULONG cValues;
262 LONG *lpl;
263 } SLongArray;
264
265 typedef struct _SLargeIntegerArray {
266 ULONG cValues;
267 LARGE_INTEGER *lpli;
268 } SLargeIntegerArray;
269
270 typedef struct _SDateTimeArray {
271 ULONG cValues;
272 FILETIME *lpft;
273 } SDateTimeArray;
274
275 typedef struct _SAppTimeArray {
276 ULONG cValues;
277 double *lpat;
278 } SAppTimeArray;
279
280 typedef struct _SCurrencyArray {
281 ULONG cValues;
282 CURRENCY *lpcur;
283 } SCurrencyArray;
284
285 typedef struct _SBinaryArray {
286 ULONG cValues;
287 SBinary *lpbin;
288 } SBinaryArray;
289
290 typedef struct _SDoubleArray {
291 ULONG cValues;
292 double *lpdbl;
293 } SDoubleArray;
294
295 typedef struct _SWStringArray {
296 ULONG cValues;
297 LPWSTR *lppszW;
298 } SWStringArray;
299
300 typedef struct _SLPSTRArray {
301 ULONG cValues;
302 LPSTR *lppszA;
303 } SLPSTRArray;
304
305 typedef union _PV {
306 short int i;
307 LONG l;
308 ULONG ul;
309 float flt;
310 double dbl;
311 unsigned short int b;
312 CURRENCY cur;
313 double at;
314 FILETIME ft;
315 LPSTR lpszA;
316 SBinary bin;
317 LPWSTR lpszW;
318 LPGUID lpguid;
319 LARGE_INTEGER li;
320 SShortArray MVi;
321 SLongArray MVl;
322 SRealArray MVflt;
323 SDoubleArray MVdbl;
324 SCurrencyArray MVcur;
325 SAppTimeArray MVat;
326 SDateTimeArray MVft;
327 SBinaryArray MVbin;
328 SLPSTRArray MVszA;
329 SWStringArray MVszW;
330 SGuidArray MVguid;
331 SLargeIntegerArray MVli;
332 SCODE err;
333 LONG x;
334 } __UPV;
335
336 typedef struct _SPropValue {
337 ULONG ulPropTag;
338 ULONG dwAlignPad;
339 union _PV Value;
340 } SPropValue,*LPSPropValue;
341
342 typedef struct _SPropProblem {
343 ULONG ulIndex;
344 ULONG ulPropTag;
345 SCODE scode;
346 } SPropProblem,*LPSPropProblem;
347
348 typedef struct _SPropProblemArray {
349 ULONG cProblem;
350 SPropProblem aProblem[MAPI_DIM];
351 } SPropProblemArray,*LPSPropProblemArray;
352
353#define CbNewSPropProblemArray(_cprob) (offsetof(SPropProblemArray,aProblem) + (_cprob)*sizeof(SPropProblem))
354#define CbSPropProblemArray(_lparray) (offsetof(SPropProblemArray,aProblem) + (UINT) ((_lparray)->cProblem*sizeof(SPropProblem)))
355#define SizedSPropProblemArray(_cprob,_name) struct _SPropProblemArray_ ## _name { ULONG cProblem; SPropProblem aProblem[_cprob]; } _name
356
357 typedef SBinaryArray ENTRYLIST,*LPENTRYLIST;
358
359 typedef struct {
360 ULONG cb;
361 BYTE abEntry[MAPI_DIM];
362 } FLATENTRY,*LPFLATENTRY;
363
364 typedef struct {
365 ULONG cEntries;
366 ULONG cbEntries;
367 BYTE abEntries[MAPI_DIM];
368 } FLATENTRYLIST,*LPFLATENTRYLIST;
369
370 typedef struct {
371 ULONG cb;
372 BYTE ab[MAPI_DIM];
373 } MTSID,*LPMTSID;
374
375 typedef struct {
376 ULONG cMTSIDs;
377 ULONG cbMTSIDs;
378 BYTE abMTSIDs[MAPI_DIM];
379 } FLATMTSIDLIST,*LPFLATMTSIDLIST;
380
381#define CbNewFLATENTRY(_cb) (offsetof(FLATENTRY,abEntry) + (_cb))
382#define CbFLATENTRY(_lpentry) (offsetof(FLATENTRY,abEntry) + (_lpentry)->cb)
383#define CbNewFLATENTRYLIST(_cb) (offsetof(FLATENTRYLIST,abEntries) + (_cb))
384#define CbFLATENTRYLIST(_lplist) (offsetof(FLATENTRYLIST,abEntries) + (_lplist)->cbEntries)
385#define CbNewMTSID(_cb) (offsetof(MTSID,ab) + (_cb))
386#define CbMTSID(_lpentry) (offsetof(MTSID,ab) + (_lpentry)->cb)
387#define CbNewFLATMTSIDLIST(_cb) (offsetof(FLATMTSIDLIST,abMTSIDs) + (_cb))
388#define CbFLATMTSIDLIST(_lplist) (offsetof(FLATMTSIDLIST,abMTSIDs) + (_lplist)->cbMTSIDs)
389
390 typedef struct _ADRENTRY {
391 ULONG ulReserved1;
392 ULONG cValues;
393 LPSPropValue rgPropVals;
394 } ADRENTRY,*LPADRENTRY;
395
396 typedef struct _ADRLIST {
397 ULONG cEntries;
398 ADRENTRY aEntries[MAPI_DIM];
399 } ADRLIST,*LPADRLIST;
400
401#define CbNewADRLIST(_centries) (offsetof(ADRLIST,aEntries) + (_centries)*sizeof(ADRENTRY))
402#define CbADRLIST(_lpadrlist) (offsetof(ADRLIST,aEntries) + (UINT)(_lpadrlist)->cEntries*sizeof(ADRENTRY))
403#define SizedADRLIST(_centries,_name) struct _ADRLIST_ ## _name { ULONG cEntries; ADRENTRY aEntries[_centries]; } _name
404
405 typedef struct _SRow {
406 ULONG ulAdrEntryPad;
407 ULONG cValues;
408 LPSPropValue lpProps;
409 } SRow,*LPSRow;
410
411 typedef struct _SRowSet {
412 ULONG cRows;
413 SRow aRow[MAPI_DIM];
414 } SRowSet,*LPSRowSet;
415
416#define CbNewSRowSet(_crow) (offsetof(SRowSet,aRow) + (_crow)*sizeof(SRow))
417#define CbSRowSet(_lprowset) (offsetof(SRowSet,aRow) + (UINT)((_lprowset)->cRows*sizeof(SRow)))
418#define SizedSRowSet(_crow,_name) struct _SRowSet_ ## _name { ULONG cRows; SRow aRow[_crow]; } _name
419
420 typedef SCODE (WINAPI ALLOCATEBUFFER)(ULONG cbSize,LPVOID *lppBuffer);
421 typedef SCODE (WINAPI ALLOCATEMORE)(ULONG cbSize,LPVOID lpObject,LPVOID *lppBuffer);
422 typedef ULONG (WINAPI FREEBUFFER)(LPVOID lpBuffer);
423 typedef ALLOCATEBUFFER *LPALLOCATEBUFFER;
424 typedef ALLOCATEMORE *LPALLOCATEMORE;
425 typedef FREEBUFFER *LPFREEBUFFER;
426
427#if defined(MAPI_IF) && (!defined(__cplusplus) || defined(CINTERFACE))
428#define DECLARE_MAPI_INTERFACE(iface) typedef struct iface##Vtbl iface##Vtbl,*iface; struct iface##Vtbl
429#define DECLARE_MAPI_INTERFACE_(iface,baseiface) DECLARE_MAPI_INTERFACE(iface)
430#define DECLARE_MAPI_INTERFACE_PTR(iface,piface) typedef struct iface##Vtbl iface##Vtbl,*iface,**piface;
431#else
432#define DECLARE_MAPI_INTERFACE(iface) DECLARE_INTERFACE(iface)
433#define DECLARE_MAPI_INTERFACE_(iface,baseiface) DECLARE_INTERFACE_(iface,baseiface)
434#ifdef __cplusplus
435#define DECLARE_MAPI_INTERFACE_PTR(iface,piface) struct iface; typedef iface *piface
436#else
437#define DECLARE_MAPI_INTERFACE_PTR(iface,piface) typedef struct iface iface,*piface
438#endif
439#endif
440
441#define MAPIMETHOD(method) MAPIMETHOD_(HRESULT,method)
442#define MAPIMETHOD_(type,method) STDMETHOD_(type,method)
443#define MAPIMETHOD_DECLARE(type,method,prefix) STDMETHODIMP_(type) prefix##method
444#define MAPIMETHOD_TYPEDEF(type,method,prefix) typedef type (WINAPI prefix##method##_METHOD)
445
446#define MAPI_IUNKNOWN_METHODS(IPURE) MAPIMETHOD(QueryInterface) (THIS_ REFIID riid,LPVOID *ppvObj) IPURE; MAPIMETHOD_(ULONG,AddRef) (THIS) IPURE; MAPIMETHOD_(ULONG,Release) (THIS) IPURE;
447#undef IMPL
448#define IMPL
449
450 typedef const IID *LPCIID;
451
452 DECLARE_MAPI_INTERFACE_PTR(IMsgStore,LPMDB);
453 DECLARE_MAPI_INTERFACE_PTR(IMAPIFolder,LPMAPIFOLDER);
454 DECLARE_MAPI_INTERFACE_PTR(IMessage,LPMESSAGE);
455 DECLARE_MAPI_INTERFACE_PTR(IAttach,LPATTACH);
456 DECLARE_MAPI_INTERFACE_PTR(IAddrBook,LPADRBOOK);
457 DECLARE_MAPI_INTERFACE_PTR(IABContainer,LPABCONT);
458 DECLARE_MAPI_INTERFACE_PTR(IMailUser,LPMAILUSER);
459 DECLARE_MAPI_INTERFACE_PTR(IDistList,LPDISTLIST);
460 DECLARE_MAPI_INTERFACE_PTR(IMAPIStatus,LPMAPISTATUS);
461 DECLARE_MAPI_INTERFACE_PTR(IMAPITable,LPMAPITABLE);
462 DECLARE_MAPI_INTERFACE_PTR(IProfSect,LPPROFSECT);
463 DECLARE_MAPI_INTERFACE_PTR(IMAPIProp,LPMAPIPROP);
464 DECLARE_MAPI_INTERFACE_PTR(IMAPIContainer,LPMAPICONTAINER);
465 DECLARE_MAPI_INTERFACE_PTR(IMAPIAdviseSink,LPMAPIADVISESINK);
466 DECLARE_MAPI_INTERFACE_PTR(IMAPIProgress,LPMAPIPROGRESS);
467 DECLARE_MAPI_INTERFACE_PTR(IProviderAdmin,LPPROVIDERADMIN);
468
469 typedef struct _MAPIERROR {
470 ULONG ulVersion;
471 LPTSTR lpszError;
472 LPTSTR lpszComponent;
473 ULONG ulLowLevelError;
474 ULONG ulContext;
475
476 } MAPIERROR,*LPMAPIERROR;
477
478#define fnevCriticalError ((ULONG) 0x00000001)
479#define fnevNewMail ((ULONG) 0x00000002)
480#define fnevObjectCreated ((ULONG) 0x00000004)
481#define fnevObjectDeleted ((ULONG) 0x00000008)
482#define fnevObjectModified ((ULONG) 0x00000010)
483#define fnevObjectMoved ((ULONG) 0x00000020)
484#define fnevObjectCopied ((ULONG) 0x00000040)
485#define fnevSearchComplete ((ULONG) 0x00000080)
486#define fnevTableModified ((ULONG) 0x00000100)
487#define fnevStatusObjectModified ((ULONG) 0x00000200)
488#define fnevReservedForMapi ((ULONG) 0x40000000)
489#define fnevExtended ((ULONG) 0x80000000)
490
491#define TABLE_CHANGED 1
492#define TABLE_ERROR 2
493#define TABLE_ROW_ADDED 3
494#define TABLE_ROW_DELETED 4
495#define TABLE_ROW_MODIFIED 5
496#define TABLE_SORT_DONE 6
497#define TABLE_RESTRICT_DONE 7
498#define TABLE_SETCOL_DONE 8
499#define TABLE_RELOAD 9
500
501 typedef struct _ERROR_NOTIFICATION {
502 ULONG cbEntryID;
503 LPENTRYID lpEntryID;
504 SCODE scode;
505 ULONG ulFlags;
506 LPMAPIERROR lpMAPIError;
507 } ERROR_NOTIFICATION;
508
509 typedef struct _NEWMAIL_NOTIFICATION {
510 ULONG cbEntryID;
511 LPENTRYID lpEntryID;
512 ULONG cbParentID;
513 LPENTRYID lpParentID;
514 ULONG ulFlags;
515 LPTSTR lpszMessageClass;
516 ULONG ulMessageFlags;
517 } NEWMAIL_NOTIFICATION;
518
519 typedef struct _OBJECT_NOTIFICATION {
520 ULONG cbEntryID;
521 LPENTRYID lpEntryID;
522 ULONG ulObjType;
523 ULONG cbParentID;
524 LPENTRYID lpParentID;
525 ULONG cbOldID;
526 LPENTRYID lpOldID;
527 ULONG cbOldParentID;
528 LPENTRYID lpOldParentID;
529 LPSPropTagArray lpPropTagArray;
530 } OBJECT_NOTIFICATION;
531
532 typedef struct _TABLE_NOTIFICATION {
533 ULONG ulTableEvent;
534 HRESULT hResult;
535 SPropValue propIndex;
536 SPropValue propPrior;
537 SRow row;
538 ULONG ulPad;
539 } TABLE_NOTIFICATION;
540
541 typedef struct _EXTENDED_NOTIFICATION {
542 ULONG ulEvent;
543 ULONG cb;
544 LPBYTE pbEventParameters;
545 } EXTENDED_NOTIFICATION;
546
547 typedef struct {
548 ULONG cbEntryID;
549 LPENTRYID lpEntryID;
550 ULONG cValues;
551 LPSPropValue lpPropVals;
552 } STATUS_OBJECT_NOTIFICATION;
553
554 typedef struct _NOTIFICATION {
555 ULONG ulEventType;
556 ULONG ulAlignPad;
557 union {
558 ERROR_NOTIFICATION err;
559 NEWMAIL_NOTIFICATION newmail;
560 OBJECT_NOTIFICATION obj;
561 TABLE_NOTIFICATION tab;
562 EXTENDED_NOTIFICATION ext;
563 STATUS_OBJECT_NOTIFICATION statobj;
564 } info;
565 } NOTIFICATION,*LPNOTIFICATION;
566
567#define MAPI_IMAPIADVISESINK_METHODS(IPURE) MAPIMETHOD_(ULONG,OnNotify) (THIS_ ULONG cNotif,LPNOTIFICATION lpNotifications) IPURE;
568#undef INTERFACE
569#define INTERFACE IMAPIAdviseSink
570 DECLARE_MAPI_INTERFACE_(IMAPIAdviseSink,IUnknown) {
571 BEGIN_INTERFACE
572 MAPI_IUNKNOWN_METHODS(PURE)
573 MAPI_IMAPIADVISESINK_METHODS(PURE)
574 };
575
576 typedef __LONG32 (WINAPI NOTIFCALLBACK) (LPVOID lpvContext,ULONG cNotification,LPNOTIFICATION lpNotifications);
577 typedef NOTIFCALLBACK *LPNOTIFCALLBACK;
578
579#define szMAPINotificationMsg "MAPI Notify window message"
580
581#define MAPI_TOP_LEVEL ((ULONG) 0x00000001)
582#define MAPI_IMAPIPROGRESS_METHODS(IPURE) MAPIMETHOD(Progress) (THIS_ ULONG ulValue,ULONG ulCount,ULONG ulTotal) IPURE; MAPIMETHOD(GetFlags) (THIS_ ULONG *lpulFlags) IPURE; MAPIMETHOD(GetMax) (THIS_ ULONG *lpulMax) IPURE; MAPIMETHOD(GetMin) (THIS_ ULONG *lpulMin) IPURE; MAPIMETHOD(SetLimits) (THIS_ LPULONG lpulMin,LPULONG lpulMax,LPULONG lpulFlags) IPURE;
583
584#undef INTERFACE
585#define INTERFACE IMAPIProgress
586 DECLARE_MAPI_INTERFACE_(IMAPIProgress,IUnknown) {
587 BEGIN_INTERFACE
588 MAPI_IUNKNOWN_METHODS(PURE)
589 MAPI_IMAPIPROGRESS_METHODS(PURE)
590 };
591
592#define MAPI_ERROR_VERSION __MSABI_LONG(0x00000000)
593
594#define KEEP_OPEN_READONLY ((ULONG) 0x00000001)
595#define KEEP_OPEN_READWRITE ((ULONG) 0x00000002)
596#define FORCE_SAVE ((ULONG) 0x00000004)
597
598#define MAPI_CREATE ((ULONG) 0x00000002)
599#define STREAM_APPEND ((ULONG) 0x00000004)
600
601#define MAPI_MOVE ((ULONG) 0x00000001)
602#define MAPI_NOREPLACE ((ULONG) 0x00000002)
603#define MAPI_DECLINE_OK ((ULONG) 0x00000004)
604
605#ifndef MAPI_DIALOG
606#define MAPI_DIALOG ((ULONG) 0x00000008)
607#endif
608
609#ifndef MAPI_USE_DEFAULT
610#define MAPI_USE_DEFAULT 0x00000040
611#endif
612
613#define MAPI_NO_STRINGS ((ULONG) 0x00000001)
614#define MAPI_NO_IDS ((ULONG) 0x00000002)
615
616#define MNID_ID 0
617#define MNID_STRING 1
618
619 typedef struct _MAPINAMEID {
620 LPGUID lpguid;
621 ULONG ulKind;
622 union {
623 LONG lID;
624 LPWSTR lpwstrName;
625 } Kind;
626 } MAPINAMEID,*LPMAPINAMEID;
627
628#define MAPI_IMAPIPROP_METHODS(IPURE) MAPIMETHOD(GetLastError) (THIS_ HRESULT hResult,ULONG ulFlags,LPMAPIERROR *lppMAPIError) IPURE; MAPIMETHOD(SaveChanges) (THIS_ ULONG ulFlags) IPURE; MAPIMETHOD(GetProps) (THIS_ LPSPropTagArray lpPropTagArray,ULONG ulFlags,ULONG *lpcValues,LPSPropValue *lppPropArray) IPURE; MAPIMETHOD(GetPropList) (THIS_ ULONG ulFlags,LPSPropTagArray *lppPropTagArray) IPURE; MAPIMETHOD(OpenProperty) (THIS_ ULONG ulPropTag,LPCIID lpiid,ULONG ulInterfaceOptions,ULONG ulFlags,LPUNKNOWN *lppUnk) IPURE; MAPIMETHOD(SetProps) (THIS_ ULONG cValues,LPSPropValue lpPropArray,LPSPropProblemArray *lppProblems) IPURE; MAPIMETHOD(DeleteProps) (THIS_ LPSPropTagArray lpPropTagArray,LPSPropProblemArray *lppProblems) IPURE; MAPIMETHOD(CopyTo) (THIS_ ULONG ciidExclude,LPCIID rgiidExclude,LPSPropTagArray lpExcludeProps,ULONG ulUIParam,LPMAPIPROGRESS lpProgress,LPCIID lpInterface,LPVOID lpDestObj,ULONG ulFlags,LPSPropProblemArray *lppProblems) IPURE; MAPIMETHOD(CopyProps) (THIS_ LPSPropTagArray lpIncludeProps,ULONG ulUIParam,LPMAPIPROGRESS lpProgress,LPCIID lpInterface,LPVOID lpDestObj,ULONG ulFlags,LPSPropProblemArray *lppProblems) IPURE; MAPIMETHOD(GetNamesFromIDs) (THIS_ LPSPropTagArray *lppPropTags,LPGUID lpPropSetGuid,ULONG ulFlags,ULONG *lpcPropNames,LPMAPINAMEID **lpppPropNames) IPURE; MAPIMETHOD(GetIDsFromNames) (THIS_ ULONG cPropNames,LPMAPINAMEID *lppPropNames,ULONG ulFlags,LPSPropTagArray *lppPropTags) IPURE;
629
630#undef INTERFACE
631#define INTERFACE IMAPIProp
632 DECLARE_MAPI_INTERFACE_(IMAPIProp,IUnknown) {
633 BEGIN_INTERFACE
634 MAPI_IUNKNOWN_METHODS(PURE)
635 MAPI_IMAPIPROP_METHODS(PURE)
636 };
637
638#define TBLSTAT_COMPLETE ((ULONG) 0)
639#define TBLSTAT_QCHANGED ((ULONG) 7)
640#define TBLSTAT_SORTING ((ULONG) 9)
641#define TBLSTAT_SORT_ERROR ((ULONG) 10)
642#define TBLSTAT_SETTING_COLS ((ULONG) 11)
643#define TBLSTAT_SETCOL_ERROR ((ULONG) 13)
644#define TBLSTAT_RESTRICTING ((ULONG) 14)
645#define TBLSTAT_RESTRICT_ERROR ((ULONG) 15)
646
647#define TBLTYPE_SNAPSHOT ((ULONG) 0)
648#define TBLTYPE_KEYSET ((ULONG) 1)
649#define TBLTYPE_DYNAMIC ((ULONG) 2)
650
651#define TABLE_SORT_ASCEND ((ULONG) 0x00000000)
652#define TABLE_SORT_DESCEND ((ULONG) 0x00000001)
653#define TABLE_SORT_COMBINE ((ULONG) 0x00000002)
654
655 typedef struct _SSortOrder {
656 ULONG ulPropTag;
657 ULONG ulOrder;
658 } SSortOrder,*LPSSortOrder;
659
660 typedef struct _SSortOrderSet {
661 ULONG cSorts;
662 ULONG cCategories;
663 ULONG cExpanded;
664 SSortOrder aSort[MAPI_DIM];
665 } SSortOrderSet,*LPSSortOrderSet;
666
667#define CbNewSSortOrderSet(_csort) (offsetof(SSortOrderSet,aSort) + (_csort)*sizeof(SSortOrder))
668#define CbSSortOrderSet(_lpset) (offsetof(SSortOrderSet,aSort) + (UINT)((_lpset)->cSorts*sizeof(SSortOrder)))
669#define SizedSSortOrderSet(_csort,_name) struct _SSortOrderSet_ ## _name { ULONG cSorts; ULONG cCategories; ULONG cExpanded; SSortOrder aSort[_csort]; } _name
670
671 typedef ULONG BOOKMARK;
672
673#define BOOKMARK_BEGINNING ((BOOKMARK) 0)
674#define BOOKMARK_CURRENT ((BOOKMARK) 1)
675#define BOOKMARK_END ((BOOKMARK) 2)
676
677#define FL_FULLSTRING ((ULONG) 0x00000000)
678#define FL_SUBSTRING ((ULONG) 0x00000001)
679#define FL_PREFIX ((ULONG) 0x00000002)
680
681#define FL_IGNORECASE ((ULONG) 0x00010000)
682#define FL_IGNORENONSPACE ((ULONG) 0x00020000)
683#define FL_LOOSE ((ULONG) 0x00040000)
684
685 typedef struct _SRestriction *LPSRestriction;
686
687#define RES_AND ((ULONG) 0x00000000)
688#define RES_OR ((ULONG) 0x00000001)
689#define RES_NOT ((ULONG) 0x00000002)
690#define RES_CONTENT ((ULONG) 0x00000003)
691#define RES_PROPERTY ((ULONG) 0x00000004)
692#define RES_COMPAREPROPS ((ULONG) 0x00000005)
693#define RES_BITMASK ((ULONG) 0x00000006)
694#define RES_SIZE ((ULONG) 0x00000007)
695#define RES_EXIST ((ULONG) 0x00000008)
696#define RES_SUBRESTRICTION ((ULONG) 0x00000009)
697#define RES_COMMENT ((ULONG) 0x0000000A)
698
699#define RELOP_LT ((ULONG) 0)
700#define RELOP_LE ((ULONG) 1)
701#define RELOP_GT ((ULONG) 2)
702#define RELOP_GE ((ULONG) 3)
703#define RELOP_EQ ((ULONG) 4)
704#define RELOP_NE ((ULONG) 5)
705#define RELOP_RE ((ULONG) 6)
706
707#define BMR_EQZ ((ULONG) 0)
708#define BMR_NEZ ((ULONG) 1)
709
710 typedef struct _SAndRestriction {
711 ULONG cRes;
712 LPSRestriction lpRes;
713 } SAndRestriction;
714
715 typedef struct _SOrRestriction {
716 ULONG cRes;
717 LPSRestriction lpRes;
718 } SOrRestriction;
719
720 typedef struct _SNotRestriction {
721 ULONG ulReserved;
722 LPSRestriction lpRes;
723 } SNotRestriction;
724
725 typedef struct _SContentRestriction {
726 ULONG ulFuzzyLevel;
727 ULONG ulPropTag;
728 LPSPropValue lpProp;
729 } SContentRestriction;
730
731 typedef struct _SBitMaskRestriction {
732 ULONG relBMR;
733 ULONG ulPropTag;
734 ULONG ulMask;
735 } SBitMaskRestriction;
736
737 typedef struct _SPropertyRestriction {
738 ULONG relop;
739 ULONG ulPropTag;
740 LPSPropValue lpProp;
741 } SPropertyRestriction;
742
743 typedef struct _SComparePropsRestriction {
744 ULONG relop;
745 ULONG ulPropTag1;
746 ULONG ulPropTag2;
747 } SComparePropsRestriction;
748
749 typedef struct _SSizeRestriction {
750 ULONG relop;
751 ULONG ulPropTag;
752 ULONG cb;
753 } SSizeRestriction;
754
755 typedef struct _SExistRestriction {
756 ULONG ulReserved1;
757 ULONG ulPropTag;
758 ULONG ulReserved2;
759 } SExistRestriction;
760
761 typedef struct _SSubRestriction {
762 ULONG ulSubObject;
763 LPSRestriction lpRes;
764 } SSubRestriction;
765
766 typedef struct _SCommentRestriction {
767 ULONG cValues;
768 LPSRestriction lpRes;
769 LPSPropValue lpProp;
770 } SCommentRestriction;
771
772 typedef struct _SRestriction {
773 ULONG rt;
774 union {
775 SComparePropsRestriction resCompareProps;
776 SAndRestriction resAnd;
777 SOrRestriction resOr;
778 SNotRestriction resNot;
779 SContentRestriction resContent;
780 SPropertyRestriction resProperty;
781 SBitMaskRestriction resBitMask;
782 SSizeRestriction resSize;
783 SExistRestriction resExist;
784 SSubRestriction resSub;
785 SCommentRestriction resComment;
786 } res;
787 } SRestriction;
788
789#define TBL_ALL_COLUMNS ((ULONG) 0x00000001)
790
791#define TBL_LEAF_ROW ((ULONG) 1)
792#define TBL_EMPTY_CATEGORY ((ULONG) 2)
793#define TBL_EXPANDED_CATEGORY ((ULONG) 3)
794#define TBL_COLLAPSED_CATEGORY ((ULONG) 4)
795
796#define TBL_NOWAIT ((ULONG) 0x00000001)
797
798#define TBL_ASYNC ((ULONG) 0x00000001)
799#define TBL_BATCH ((ULONG) 0x00000002)
800
801#define DIR_BACKWARD ((ULONG) 0x00000001)
802
803#define TBL_NOADVANCE ((ULONG) 0x00000001)
804
805#define MAPI_IMAPITABLE_METHODS(IPURE) MAPIMETHOD(GetLastError) (THIS_ HRESULT hResult,ULONG ulFlags,LPMAPIERROR *lppMAPIError) IPURE; MAPIMETHOD(Advise) (THIS_ ULONG ulEventMask,LPMAPIADVISESINK lpAdviseSink,ULONG *lpulConnection) IPURE; MAPIMETHOD(Unadvise) (THIS_ ULONG ulConnection) IPURE; MAPIMETHOD(GetStatus) (THIS_ ULONG *lpulTableStatus,ULONG *lpulTableType) IPURE; MAPIMETHOD(SetColumns) (THIS_ LPSPropTagArray lpPropTagArray,ULONG ulFlags) IPURE; MAPIMETHOD(QueryColumns) (THIS_ ULONG ulFlags,LPSPropTagArray *lpPropTagArray) IPURE; MAPIMETHOD(GetRowCount) (THIS_ ULONG ulFlags,ULONG *lpulCount) IPURE; MAPIMETHOD(SeekRow) (THIS_ BOOKMARK bkOrigin,LONG lRowCount,LONG *lplRowsSought) IPURE; MAPIMETHOD(SeekRowApprox) (THIS_ ULONG ulNumerator,ULONG ulDenominator) IPURE; MAPIMETHOD(QueryPosition) (THIS_ ULONG *lpulRow,ULONG *lpulNumerator,ULONG *lpulDenominator) IPURE; MAPIMETHOD(FindRow) (THIS_ LPSRestriction lpRestriction,BOOKMARK bkOrigin,ULONG ulFlags) IPURE; MAPIMETHOD(Restrict) (THIS_ LPSRestriction lpRestriction,ULONG ulFlags) IPURE; MAPIMETHOD(CreateBookmark) (THIS_ BOOKMARK *lpbkPosition) IPURE; MAPIMETHOD(FreeBookmark) (THIS_ BOOKMARK bkPosition) IPURE; MAPIMETHOD(SortTable) (THIS_ LPSSortOrderSet lpSortCriteria,ULONG ulFlags) IPURE; MAPIMETHOD(QuerySortOrder) (THIS_ LPSSortOrderSet *lppSortCriteria) IPURE; MAPIMETHOD(QueryRows) (THIS_ LONG lRowCount,ULONG ulFlags,LPSRowSet *lppRows) IPURE; MAPIMETHOD(Abort) (THIS) IPURE; MAPIMETHOD(ExpandRow) (THIS_ ULONG cbInstanceKey,LPBYTE pbInstanceKey,ULONG ulRowCount,ULONG ulFlags,LPSRowSet *lppRows,ULONG *lpulMoreRows) IPURE; MAPIMETHOD(CollapseRow) (THIS_ ULONG cbInstanceKey,LPBYTE pbInstanceKey,ULONG ulFlags,ULONG *lpulRowCount) IPURE; MAPIMETHOD(WaitForCompletion) (THIS_ ULONG ulFlags,ULONG ulTimeout,ULONG *lpulTableStatus) IPURE; MAPIMETHOD(GetCollapseState) (THIS_ ULONG ulFlags,ULONG cbInstanceKey,LPBYTE lpbInstanceKey,ULONG *lpcbCollapseState,LPBYTE *lppbCollapseState) IPURE; MAPIMETHOD(SetCollapseState) (THIS_ ULONG ulFlags,ULONG cbCollapseState,LPBYTE pbCollapseState,BOOKMARK *lpbkLocation) IPURE;
806
807#undef INTERFACE
808#define INTERFACE IMAPITable
809 DECLARE_MAPI_INTERFACE_(IMAPITable,IUnknown) {
810 BEGIN_INTERFACE
811 MAPI_IUNKNOWN_METHODS(PURE)
812 MAPI_IMAPITABLE_METHODS(PURE)
813 };
814
815#define PS_PROFILE_PROPERTIES_INIT { 0x98,0x15,0xAC,0x08,0xAA,0xB0,0x10,0x1A,0x8C,0x93,0x08,0x00,0x2B,0x2A,0x56,0xC2 }
816
817#define MAPI_IPROFSECT_METHODS(IPURE)
818
819#undef INTERFACE
820#define INTERFACE IProfSect
821 DECLARE_MAPI_INTERFACE_(IProfSect,IMAPIProp) {
822 BEGIN_INTERFACE
823 MAPI_IUNKNOWN_METHODS(PURE)
824 MAPI_IMAPIPROP_METHODS(PURE)
825 MAPI_IPROFSECT_METHODS(PURE)
826 };
827
828#define MAPI_STORE_PROVIDER ((ULONG) 33)
829#define MAPI_AB ((ULONG) 34)
830#define MAPI_AB_PROVIDER ((ULONG) 35)
831#define MAPI_TRANSPORT_PROVIDER ((ULONG) 36)
832#define MAPI_SPOOLER ((ULONG) 37)
833#define MAPI_PROFILE_PROVIDER ((ULONG) 38)
834#define MAPI_SUBSYSTEM ((ULONG) 39)
835#define MAPI_HOOK_PROVIDER ((ULONG) 40)
836
837#define STATUS_VALIDATE_STATE ((ULONG) 0x00000001)
838#define STATUS_SETTINGS_DIALOG ((ULONG) 0x00000002)
839#define STATUS_CHANGE_PASSWORD ((ULONG) 0x00000004)
840#define STATUS_FLUSH_QUEUES ((ULONG) 0x00000008)
841
842#define STATUS_DEFAULT_OUTBOUND ((ULONG) 0x00000001)
843#define STATUS_DEFAULT_STORE ((ULONG) 0x00000002)
844#define STATUS_PRIMARY_IDENTITY ((ULONG) 0x00000004)
845#define STATUS_SIMPLE_STORE ((ULONG) 0x00000008)
846#define STATUS_XP_PREFER_LAST ((ULONG) 0x00000010)
847#define STATUS_NO_PRIMARY_IDENTITY ((ULONG) 0x00000020)
848#define STATUS_NO_DEFAULT_STORE ((ULONG) 0x00000040)
849#define STATUS_TEMP_SECTION ((ULONG) 0x00000080)
850#define STATUS_OWN_STORE ((ULONG) 0x00000100)
851
852#define STATUS_NEED_IPM_TREE ((ULONG) 0x00000800)
853#define STATUS_PRIMARY_STORE ((ULONG) 0x00001000)
854#define STATUS_SECONDARY_STORE ((ULONG) 0x00002000)
855
856#define STATUS_AVAILABLE ((ULONG) 0x00000001)
857#define STATUS_OFFLINE ((ULONG) 0x00000002)
858#define STATUS_FAILURE ((ULONG) 0x00000004)
859
860#define STATUS_INBOUND_ENABLED ((ULONG) 0x00010000)
861#define STATUS_INBOUND_ACTIVE ((ULONG) 0x00020000)
862#define STATUS_INBOUND_FLUSH ((ULONG) 0x00040000)
863#define STATUS_OUTBOUND_ENABLED ((ULONG) 0x00100000)
864#define STATUS_OUTBOUND_ACTIVE ((ULONG) 0x00200000)
865#define STATUS_OUTBOUND_FLUSH ((ULONG) 0x00400000)
866#define STATUS_REMOTE_ACCESS ((ULONG) 0x00800000)
867
868#define SUPPRESS_UI ((ULONG) 0x00000001)
869#define REFRESH_XP_HEADER_CACHE ((ULONG) 0x00010000)
870#define PROCESS_XP_HEADER_CACHE ((ULONG) 0x00020000)
871#define FORCE_XP_CONNECT ((ULONG) 0x00040000)
872#define FORCE_XP_DISCONNECT ((ULONG) 0x00080000)
873#define CONFIG_CHANGED ((ULONG) 0x00100000)
874#define ABORT_XP_HEADER_OPERATION ((ULONG) 0x00200000)
875#define SHOW_XP_SESSION_UI ((ULONG) 0x00400000)
876
877#define UI_READONLY ((ULONG) 0x00000001)
878
879#define FLUSH_UPLOAD ((ULONG) 0x00000002)
880#define FLUSH_DOWNLOAD ((ULONG) 0x00000004)
881#define FLUSH_FORCE ((ULONG) 0x00000008)
882#define FLUSH_NO_UI ((ULONG) 0x00000010)
883#define FLUSH_ASYNC_OK ((ULONG) 0x00000020)
884
885#define MAPI_IMAPISTATUS_METHODS(IPURE) MAPIMETHOD(ValidateState) (THIS_ ULONG ulUIParam,ULONG ulFlags) IPURE; MAPIMETHOD(SettingsDialog) (THIS_ ULONG ulUIParam,ULONG ulFlags) IPURE; MAPIMETHOD(ChangePassword) (THIS_ LPTSTR lpOldPass,LPTSTR lpNewPass,ULONG ulFlags) IPURE; MAPIMETHOD(FlushQueues) (THIS_ ULONG ulUIParam,ULONG cbTargetTransport,LPENTRYID lpTargetTransport,ULONG ulFlags) IPURE;
886
887#undef INTERFACE
888#define INTERFACE IMAPIStatus
889 DECLARE_MAPI_INTERFACE_(IMAPIStatus,IMAPIProp) {
890 BEGIN_INTERFACE
891 MAPI_IUNKNOWN_METHODS(PURE)
892 MAPI_IMAPIPROP_METHODS(PURE)
893 MAPI_IMAPISTATUS_METHODS(PURE)
894 };
895
896#define MAPI_BEST_ACCESS ((ULONG) 0x00000010)
897
898#define WAB_LOCAL_CONTAINERS 0x00100000
899#define WAB_PROFILE_CONTENTS 0x00200000
900
901#define CONVENIENT_DEPTH ((ULONG) 0x00000001)
902
903#define SEARCH_RUNNING ((ULONG) 0x00000001)
904#define SEARCH_REBUILD ((ULONG) 0x00000002)
905#define SEARCH_RECURSIVE ((ULONG) 0x00000004)
906#define SEARCH_FOREGROUND ((ULONG) 0x00000008)
907
908#define STOP_SEARCH ((ULONG) 0x00000001)
909#define RESTART_SEARCH ((ULONG) 0x00000002)
910#define RECURSIVE_SEARCH ((ULONG) 0x00000004)
911#define SHALLOW_SEARCH ((ULONG) 0x00000008)
912#define FOREGROUND_SEARCH ((ULONG) 0x00000010)
913#define BACKGROUND_SEARCH ((ULONG) 0x00000020)
914
915#define MAPI_IMAPICONTAINER_METHODS(IPURE) MAPIMETHOD(GetContentsTable) (THIS_ ULONG ulFlags,LPMAPITABLE *lppTable) IPURE; MAPIMETHOD(GetHierarchyTable) (THIS_ ULONG ulFlags,LPMAPITABLE *lppTable) IPURE; MAPIMETHOD(OpenEntry) (THIS_ ULONG cbEntryID,LPENTRYID lpEntryID,LPCIID lpInterface,ULONG ulFlags,ULONG *lpulObjType,LPUNKNOWN *lppUnk) IPURE; MAPIMETHOD(SetSearchCriteria) (THIS_ LPSRestriction lpRestriction,LPENTRYLIST lpContainerList,ULONG ulSearchFlags) IPURE; MAPIMETHOD(GetSearchCriteria) (THIS_ ULONG ulFlags,LPSRestriction *lppRestriction,LPENTRYLIST *lppContainerList,ULONG *lpulSearchState)IPURE;
916
917#undef INTERFACE
918#define INTERFACE IMAPIContainer
919 DECLARE_MAPI_INTERFACE_(IMAPIContainer,IMAPIProp) {
920 BEGIN_INTERFACE
921 MAPI_IUNKNOWN_METHODS(PURE)
922 MAPI_IMAPIPROP_METHODS(PURE)
923 MAPI_IMAPICONTAINER_METHODS(PURE)
924 };
925
926 typedef struct _flaglist {
927 ULONG cFlags;
928 ULONG ulFlag[MAPI_DIM];
929 } FlagList,*LPFlagList;
930
931#define AB_RECIPIENTS ((ULONG) 0x00000001)
932#define AB_SUBCONTAINERS ((ULONG) 0x00000002)
933#define AB_MODIFIABLE ((ULONG) 0x00000004)
934#define AB_UNMODIFIABLE ((ULONG) 0x00000008)
935#define AB_FIND_ON_OPEN ((ULONG) 0x00000010)
936#define AB_NOT_DEFAULT ((ULONG) 0x00000020)
937
938#define CREATE_CHECK_DUP_STRICT ((ULONG) 0x00000001)
939#define CREATE_CHECK_DUP_LOOSE ((ULONG) 0x00000002)
940#define CREATE_REPLACE ((ULONG) 0x00000004)
941#define CREATE_MERGE ((ULONG) 0x00000008)
942
943#define WAB_IGNORE_PROFILES 0x00800000
944
945#define MAPI_UNRESOLVED ((ULONG) 0x00000000)
946#define MAPI_AMBIGUOUS ((ULONG) 0x00000001)
947#define MAPI_RESOLVED ((ULONG) 0x00000002)
948
949#define MAPI_IABCONTAINER_METHODS(IPURE) MAPIMETHOD(CreateEntry) (THIS_ ULONG cbEntryID,LPENTRYID lpEntryID,ULONG ulCreateFlags,LPMAPIPROP *lppMAPIPropEntry) IPURE; MAPIMETHOD(CopyEntries) (THIS_ LPENTRYLIST lpEntries,ULONG ulUIParam,LPMAPIPROGRESS lpProgress,ULONG ulFlags) IPURE; MAPIMETHOD(DeleteEntries) (THIS_ LPENTRYLIST lpEntries,ULONG ulFlags) IPURE; MAPIMETHOD(ResolveNames) (THIS_ LPSPropTagArray lpPropTagArray,ULONG ulFlags,LPADRLIST lpAdrList,LPFlagList lpFlagList) IPURE;
950
951#undef INTERFACE
952#define INTERFACE IABContainer
953 DECLARE_MAPI_INTERFACE_(IABContainer,IMAPIContainer) {
954 BEGIN_INTERFACE
955 MAPI_IUNKNOWN_METHODS(PURE)
956 MAPI_IMAPIPROP_METHODS(PURE)
957 MAPI_IMAPICONTAINER_METHODS(PURE)
958 MAPI_IABCONTAINER_METHODS(PURE)
959 };
960
961#define MAPI_SEND_NO_RICH_INFO ((ULONG) 0x00010000)
962
963#define MAPI_DIAG(_code) ((LONG) _code)
964#define MAPI_DIAG_NO_DIAGNOSTIC MAPI_DIAG(-1)
965#define MAPI_DIAG_OR_NAME_UNRECOGNIZED MAPI_DIAG(0)
966#define MAPI_DIAG_OR_NAME_AMBIGUOUS MAPI_DIAG(1)
967#define MAPI_DIAG_MTS_CONGESTED MAPI_DIAG(2)
968#define MAPI_DIAG_LOOP_DETECTED MAPI_DIAG(3)
969#define MAPI_DIAG_RECIPIENT_UNAVAILABLE MAPI_DIAG(4)
970#define MAPI_DIAG_MAXIMUM_TIME_EXPIRED MAPI_DIAG(5)
971#define MAPI_DIAG_EITS_UNSUPPORTED MAPI_DIAG(6)
972#define MAPI_DIAG_CONTENT_TOO_LONG MAPI_DIAG(7)
973#define MAPI_DIAG_IMPRACTICAL_TO_CONVERT MAPI_DIAG(8)
974#define MAPI_DIAG_PROHIBITED_TO_CONVERT MAPI_DIAG(9)
975#define MAPI_DIAG_CONVERSION_UNSUBSCRIBED MAPI_DIAG(10)
976#define MAPI_DIAG_PARAMETERS_INVALID MAPI_DIAG(11)
977#define MAPI_DIAG_CONTENT_SYNTAX_IN_ERROR MAPI_DIAG(12)
978#define MAPI_DIAG_LENGTH_CONSTRAINT_VIOLATD MAPI_DIAG(13)
979#define MAPI_DIAG_NUMBER_CONSTRAINT_VIOLATD MAPI_DIAG(14)
980#define MAPI_DIAG_CONTENT_TYPE_UNSUPPORTED MAPI_DIAG(15)
981#define MAPI_DIAG_TOO_MANY_RECIPIENTS MAPI_DIAG(16)
982#define MAPI_DIAG_NO_BILATERAL_AGREEMENT MAPI_DIAG(17)
983#define MAPI_DIAG_CRITICAL_FUNC_UNSUPPORTED MAPI_DIAG(18)
984#define MAPI_DIAG_CONVERSION_LOSS_PROHIB MAPI_DIAG(19)
985#define MAPI_DIAG_LINE_TOO_LONG MAPI_DIAG(20)
986#define MAPI_DIAG_PAGE_TOO_LONG MAPI_DIAG(21)
987#define MAPI_DIAG_PICTORIAL_SYMBOL_LOST MAPI_DIAG(22)
988#define MAPI_DIAG_PUNCTUATION_SYMBOL_LOST MAPI_DIAG(23)
989#define MAPI_DIAG_ALPHABETIC_CHARACTER_LOST MAPI_DIAG(24)
990#define MAPI_DIAG_MULTIPLE_INFO_LOSSES MAPI_DIAG(25)
991#define MAPI_DIAG_REASSIGNMENT_PROHIBITED MAPI_DIAG(26)
992#define MAPI_DIAG_REDIRECTION_LOOP_DETECTED MAPI_DIAG(27)
993#define MAPI_DIAG_EXPANSION_PROHIBITED MAPI_DIAG(28)
994#define MAPI_DIAG_SUBMISSION_PROHIBITED MAPI_DIAG(29)
995#define MAPI_DIAG_EXPANSION_FAILED MAPI_DIAG(30)
996#define MAPI_DIAG_RENDITION_UNSUPPORTED MAPI_DIAG(31)
997#define MAPI_DIAG_MAIL_ADDRESS_INCORRECT MAPI_DIAG(32)
998#define MAPI_DIAG_MAIL_OFFICE_INCOR_OR_INVD MAPI_DIAG(33)
999#define MAPI_DIAG_MAIL_ADDRESS_INCOMPLETE MAPI_DIAG(34)
1000#define MAPI_DIAG_MAIL_RECIPIENT_UNKNOWN MAPI_DIAG(35)
1001#define MAPI_DIAG_MAIL_RECIPIENT_DECEASED MAPI_DIAG(36)
1002#define MAPI_DIAG_MAIL_ORGANIZATION_EXPIRED MAPI_DIAG(37)
1003#define MAPI_DIAG_MAIL_REFUSED MAPI_DIAG(38)
1004#define MAPI_DIAG_MAIL_UNCLAIMED MAPI_DIAG(39)
1005#define MAPI_DIAG_MAIL_RECIPIENT_MOVED MAPI_DIAG(40)
1006#define MAPI_DIAG_MAIL_RECIPIENT_TRAVELLING MAPI_DIAG(41)
1007#define MAPI_DIAG_MAIL_RECIPIENT_DEPARTED MAPI_DIAG(42)
1008#define MAPI_DIAG_MAIL_NEW_ADDRESS_UNKNOWN MAPI_DIAG(43)
1009#define MAPI_DIAG_MAIL_FORWARDING_UNWANTED MAPI_DIAG(44)
1010#define MAPI_DIAG_MAIL_FORWARDING_PROHIB MAPI_DIAG(45)
1011#define MAPI_DIAG_SECURE_MESSAGING_ERROR MAPI_DIAG(46)
1012#define MAPI_DIAG_DOWNGRADING_IMPOSSIBLE MAPI_DIAG(47)
1013
1014#define MAPI_IMAILUSER_METHODS(IPURE)
1015
1016#undef INTERFACE
1017#define INTERFACE IMailUser
1018 DECLARE_MAPI_INTERFACE_(IMailUser,IMAPIProp) {
1019 BEGIN_INTERFACE
1020 MAPI_IUNKNOWN_METHODS(PURE)
1021 MAPI_IMAPIPROP_METHODS(PURE)
1022 MAPI_IMAILUSER_METHODS(PURE)
1023 };
1024
1025#define MAPI_IDISTLIST_METHODS(IPURE) MAPIMETHOD(CreateEntry) (THIS_ ULONG cbEntryID,LPENTRYID lpEntryID,ULONG ulCreateFlags,LPMAPIPROP *lppMAPIPropEntry) IPURE; MAPIMETHOD(CopyEntries) (THIS_ LPENTRYLIST lpEntries,ULONG ulUIParam,LPMAPIPROGRESS lpProgress,ULONG ulFlags) IPURE; MAPIMETHOD(DeleteEntries) (THIS_ LPENTRYLIST lpEntries,ULONG ulFlags) IPURE; MAPIMETHOD(ResolveNames) (THIS_ LPSPropTagArray lpPropTagArray,ULONG ulFlags,LPADRLIST lpAdrList,LPFlagList lpFlagList) IPURE;
1026
1027#undef INTERFACE
1028#define INTERFACE IDistList
1029 DECLARE_MAPI_INTERFACE_(IDistList,IMAPIContainer) {
1030 BEGIN_INTERFACE
1031 MAPI_IUNKNOWN_METHODS(PURE)
1032 MAPI_IMAPIPROP_METHODS(PURE)
1033 MAPI_IMAPICONTAINER_METHODS(PURE)
1034 MAPI_IDISTLIST_METHODS(PURE)
1035 };
1036
1037#define FOLDER_ROOT ((ULONG) 0x00000000)
1038#define FOLDER_GENERIC ((ULONG) 0x00000001)
1039#define FOLDER_SEARCH ((ULONG) 0x00000002)
1040
1041#define MESSAGE_MOVE ((ULONG) 0x00000001)
1042#define MESSAGE_DIALOG ((ULONG) 0x00000002)
1043
1044#define OPEN_IF_EXISTS ((ULONG) 0x00000001)
1045
1046#define DEL_MESSAGES ((ULONG) 0x00000001)
1047#define FOLDER_DIALOG ((ULONG) 0x00000002)
1048#define DEL_FOLDERS ((ULONG) 0x00000004)
1049
1050#define DEL_ASSOCIATED ((ULONG) 0x00000008)
1051
1052#define FOLDER_MOVE ((ULONG) 0x00000001)
1053
1054#define COPY_SUBFOLDERS ((ULONG) 0x00000010)
1055
1056#define GENERATE_RECEIPT_ONLY ((ULONG) 0x00000010)
1057
1058#define MSGSTATUS_HIGHLIGHTED ((ULONG) 0x00000001)
1059#define MSGSTATUS_TAGGED ((ULONG) 0x00000002)
1060#define MSGSTATUS_HIDDEN ((ULONG) 0x00000004)
1061#define MSGSTATUS_DELMARKED ((ULONG) 0x00000008)
1062
1063#define MSGSTATUS_REMOTE_DOWNLOAD ((ULONG) 0x00001000)
1064#define MSGSTATUS_REMOTE_DELETE ((ULONG) 0x00002000)
1065
1066#define RECURSIVE_SORT ((ULONG) 0x00000002)
1067
1068#define FLDSTATUS_HIGHLIGHTED ((ULONG) 0x00000001)
1069#define FLDSTATUS_TAGGED ((ULONG) 0x00000002)
1070#define FLDSTATUS_HIDDEN ((ULONG) 0x00000004)
1071#define FLDSTATUS_DELMARKED ((ULONG) 0x00000008)
1072
1073#define MAPI_IMAPIFOLDER_METHODS(IPURE) MAPIMETHOD(CreateMessage) (THIS_ LPCIID lpInterface,ULONG ulFlags,LPMESSAGE *lppMessage) IPURE; MAPIMETHOD(CopyMessages) (THIS_ LPENTRYLIST lpMsgList,LPCIID lpInterface,LPVOID lpDestFolder,ULONG ulUIParam,LPMAPIPROGRESS lpProgress,ULONG ulFlags) IPURE; MAPIMETHOD(DeleteMessages) (THIS_ LPENTRYLIST lpMsgList,ULONG ulUIParam,LPMAPIPROGRESS lpProgress,ULONG ulFlags) IPURE; MAPIMETHOD(CreateFolder) (THIS_ ULONG ulFolderType,LPTSTR lpszFolderName,LPTSTR lpszFolderComment,LPCIID lpInterface,ULONG ulFlags,LPMAPIFOLDER *lppFolder) IPURE; MAPIMETHOD(CopyFolder) (THIS_ ULONG cbEntryID,LPENTRYID lpEntryID,LPCIID lpInterface,LPVOID lpDestFolder,LPTSTR lpszNewFolderName,ULONG ulUIParam,LPMAPIPROGRESS lpProgress,ULONG ulFlags) IPURE; MAPIMETHOD(DeleteFolder) (THIS_ ULONG cbEntryID,LPENTRYID lpEntryID,ULONG ulUIParam,LPMAPIPROGRESS lpProgress,ULONG ulFlags) IPURE; MAPIMETHOD(SetReadFlags) (THIS_ LPENTRYLIST lpMsgList,ULONG ulUIParam,LPMAPIPROGRESS lpProgress,ULONG ulFlags) IPURE; MAPIMETHOD(GetMessageStatus) (THIS_ ULONG cbEntryID,LPENTRYID lpEntryID,ULONG ulFlags,ULONG *lpulMessageStatus) IPURE; MAPIMETHOD(SetMessageStatus) (THIS_ ULONG cbEntryID,LPENTRYID lpEntryID,ULONG ulNewStatus,ULONG ulNewStatusMask,ULONG *lpulOldStatus) IPURE; MAPIMETHOD(SaveContentsSort) (THIS_ LPSSortOrderSet lpSortCriteria,ULONG ulFlags) IPURE; MAPIMETHOD(EmptyFolder) (THIS_ ULONG ulUIParam,LPMAPIPROGRESS lpProgress,ULONG ulFlags) IPURE;
1074
1075#undef INTERFACE
1076#define INTERFACE IMAPIFolder
1077 DECLARE_MAPI_INTERFACE_(IMAPIFolder,IMAPIContainer) {
1078 BEGIN_INTERFACE
1079 MAPI_IUNKNOWN_METHODS(PURE)
1080 MAPI_IMAPIPROP_METHODS(PURE)
1081 MAPI_IMAPICONTAINER_METHODS(PURE)
1082 MAPI_IMAPIFOLDER_METHODS(PURE)
1083 };
1084
1085#define STORE_ENTRYID_UNIQUE ((ULONG) 0x00000001)
1086#define STORE_READONLY ((ULONG) 0x00000002)
1087#define STORE_SEARCH_OK ((ULONG) 0x00000004)
1088#define STORE_MODIFY_OK ((ULONG) 0x00000008)
1089#define STORE_CREATE_OK ((ULONG) 0x00000010)
1090#define STORE_ATTACH_OK ((ULONG) 0x00000020)
1091#define STORE_OLE_OK ((ULONG) 0x00000040)
1092#define STORE_SUBMIT_OK ((ULONG) 0x00000080)
1093#define STORE_NOTIFY_OK ((ULONG) 0x00000100)
1094#define STORE_MV_PROPS_OK ((ULONG) 0x00000200)
1095#define STORE_CATEGORIZE_OK ((ULONG) 0x00000400)
1096#define STORE_RTF_OK ((ULONG) 0x00000800)
1097#define STORE_RESTRICTION_OK ((ULONG) 0x00001000)
1098#define STORE_SORT_OK ((ULONG) 0x00002000)
1099
1100#define STORE_HAS_SEARCHES ((ULONG) 0x01000000)
1101
1102#define LOGOFF_NO_WAIT ((ULONG) 0x00000001)
1103#define LOGOFF_ORDERLY ((ULONG) 0x00000002)
1104#define LOGOFF_PURGE ((ULONG) 0x00000004)
1105#define LOGOFF_ABORT ((ULONG) 0x00000008)
1106#define LOGOFF_QUIET ((ULONG) 0x00000010)
1107
1108#define LOGOFF_COMPLETE ((ULONG) 0x00010000)
1109#define LOGOFF_INBOUND ((ULONG) 0x00020000)
1110#define LOGOFF_OUTBOUND ((ULONG) 0x00040000)
1111#define LOGOFF_OUTBOUND_QUEUE ((ULONG) 0x00080000)
1112
1113#define MSG_LOCKED ((ULONG) 0x00000001)
1114#define MSG_UNLOCKED ((ULONG) 0x00000000)
1115
1116#define FOLDER_IPM_SUBTREE_VALID ((ULONG) 0x00000001)
1117#define FOLDER_IPM_INBOX_VALID ((ULONG) 0x00000002)
1118#define FOLDER_IPM_OUTBOX_VALID ((ULONG) 0x00000004)
1119#define FOLDER_IPM_WASTEBASKET_VALID ((ULONG) 0x00000008)
1120#define FOLDER_IPM_SENTMAIL_VALID ((ULONG) 0x00000010)
1121#define FOLDER_VIEWS_VALID ((ULONG) 0x00000020)
1122#define FOLDER_COMMON_VIEWS_VALID ((ULONG) 0x00000040)
1123#define FOLDER_FINDER_VALID ((ULONG) 0x00000080)
1124
1125#define MAPI_IMSGSTORE_METHODS(IPURE) MAPIMETHOD(Advise) (THIS_ ULONG cbEntryID,LPENTRYID lpEntryID,ULONG ulEventMask,LPMAPIADVISESINK lpAdviseSink,ULONG *lpulConnection) IPURE; MAPIMETHOD(Unadvise) (THIS_ ULONG ulConnection) IPURE; MAPIMETHOD(CompareEntryIDs) (THIS_ ULONG cbEntryID1,LPENTRYID lpEntryID1,ULONG cbEntryID2,LPENTRYID lpEntryID2,ULONG ulFlags,ULONG *lpulResult) IPURE; MAPIMETHOD(OpenEntry) (THIS_ ULONG cbEntryID,LPENTRYID lpEntryID,LPCIID lpInterface,ULONG ulFlags,ULONG *lpulObjType,LPUNKNOWN *lppUnk) IPURE; MAPIMETHOD(SetReceiveFolder) (THIS_ LPTSTR lpszMessageClass,ULONG ulFlags,ULONG cbEntryID,LPENTRYID lpEntryID) IPURE; MAPIMETHOD(GetReceiveFolder) (THIS_ LPTSTR lpszMessageClass,ULONG ulFlags,ULONG *lpcbEntryID,LPENTRYID *lppEntryID,LPTSTR *lppszExplicitClass) IPURE; MAPIMETHOD(GetReceiveFolderTable) (THIS_ ULONG ulFlags,LPMAPITABLE *lppTable) IPURE; MAPIMETHOD(StoreLogoff) (THIS_ ULONG *lpulFlags) IPURE; MAPIMETHOD(AbortSubmit) (THIS_ ULONG cbEntryID,LPENTRYID lpEntryID,ULONG ulFlags) IPURE; MAPIMETHOD(GetOutgoingQueue) (THIS_ ULONG ulFlags,LPMAPITABLE *lppTable) IPURE; MAPIMETHOD(SetLockState) (THIS_ LPMESSAGE lpMessage,ULONG ulLockState) IPURE; MAPIMETHOD(FinishedMsg) (THIS_ ULONG ulFlags,ULONG cbEntryID,LPENTRYID lpEntryID) IPURE; MAPIMETHOD(NotifyNewMail) (THIS_ LPNOTIFICATION lpNotification) IPURE;
1126
1127#undef INTERFACE
1128#define INTERFACE IMsgStore
1129 DECLARE_MAPI_INTERFACE_(IMsgStore,IMAPIProp) {
1130 BEGIN_INTERFACE
1131 MAPI_IUNKNOWN_METHODS(PURE)
1132 MAPI_IMAPIPROP_METHODS(PURE)
1133 MAPI_IMSGSTORE_METHODS(PURE)
1134 };
1135
1136#define FORCE_SUBMIT ((ULONG) 0x00000001)
1137
1138#define MSGFLAG_READ ((ULONG) 0x00000001)
1139#define MSGFLAG_UNMODIFIED ((ULONG) 0x00000002)
1140#define MSGFLAG_SUBMIT ((ULONG) 0x00000004)
1141#define MSGFLAG_UNSENT ((ULONG) 0x00000008)
1142#define MSGFLAG_HASATTACH ((ULONG) 0x00000010)
1143#define MSGFLAG_FROMME ((ULONG) 0x00000020)
1144#define MSGFLAG_ASSOCIATED ((ULONG) 0x00000040)
1145#define MSGFLAG_RESEND ((ULONG) 0x00000080)
1146#define MSGFLAG_RN_PENDING ((ULONG) 0x00000100)
1147#define MSGFLAG_NRN_PENDING ((ULONG) 0x00000200)
1148
1149#define SUBMITFLAG_LOCKED ((ULONG) 0x00000001)
1150#define SUBMITFLAG_PREPROCESS ((ULONG) 0x00000002)
1151
1152#define MODRECIP_ADD ((ULONG) 0x00000002)
1153#define MODRECIP_MODIFY ((ULONG) 0x00000004)
1154#define MODRECIP_REMOVE ((ULONG) 0x00000008)
1155
1156#define SUPPRESS_RECEIPT ((ULONG) 0x00000001)
1157#define CLEAR_READ_FLAG ((ULONG) 0x00000004)
1158
1159#define GENERATE_RECEIPT_ONLY ((ULONG) 0x00000010)
1160#define CLEAR_RN_PENDING ((ULONG) 0x00000020)
1161#define CLEAR_NRN_PENDING ((ULONG) 0x00000040)
1162
1163#define ATTACH_DIALOG ((ULONG) 0x00000001)
1164
1165#define SECURITY_SIGNED ((ULONG) 0x00000001)
1166#define SECURITY_ENCRYPTED ((ULONG) 0x00000002)
1167
1168#define PRIO_URGENT ((__LONG32) 1)
1169#define PRIO_NORMAL ((__LONG32) 0)
1170#define PRIO_NONURGENT ((__LONG32) -1)
1171
1172#define SENSITIVITY_NONE ((ULONG) 0x00000000)
1173#define SENSITIVITY_PERSONAL ((ULONG) 0x00000001)
1174#define SENSITIVITY_PRIVATE ((ULONG) 0x00000002)
1175#define SENSITIVITY_COMPANY_CONFIDENTIAL ((ULONG) 0x00000003)
1176
1177#define IMPORTANCE_LOW ((__LONG32) 0)
1178#define IMPORTANCE_NORMAL ((__LONG32) 1)
1179#define IMPORTANCE_HIGH ((__LONG32) 2)
1180
1181#define MAPI_IMESSAGE_METHODS(IPURE) MAPIMETHOD(GetAttachmentTable) (THIS_ ULONG ulFlags,LPMAPITABLE *lppTable) IPURE; MAPIMETHOD(OpenAttach) (THIS_ ULONG ulAttachmentNum,LPCIID lpInterface,ULONG ulFlags,LPATTACH *lppAttach) IPURE; MAPIMETHOD(CreateAttach) (THIS_ LPCIID lpInterface,ULONG ulFlags,ULONG *lpulAttachmentNum,LPATTACH *lppAttach) IPURE; MAPIMETHOD(DeleteAttach) (THIS_ ULONG ulAttachmentNum,ULONG ulUIParam,LPMAPIPROGRESS lpProgress,ULONG ulFlags) IPURE; MAPIMETHOD(GetRecipientTable) (THIS_ ULONG ulFlags,LPMAPITABLE *lppTable) IPURE; MAPIMETHOD(ModifyRecipients) (THIS_ ULONG ulFlags,LPADRLIST lpMods) IPURE; MAPIMETHOD(SubmitMessage) (THIS_ ULONG ulFlags) IPURE; MAPIMETHOD(SetReadFlag) (THIS_ ULONG ulFlags) IPURE;
1182#undef INTERFACE
1183#define INTERFACE IMessage
1184 DECLARE_MAPI_INTERFACE_(IMessage,IMAPIProp) {
1185 BEGIN_INTERFACE
1186 MAPI_IUNKNOWN_METHODS(PURE)
1187 MAPI_IMAPIPROP_METHODS(PURE)
1188 MAPI_IMESSAGE_METHODS(PURE)
1189 };
1190
1191#define NO_ATTACHMENT ((ULONG) 0x00000000)
1192#define ATTACH_BY_VALUE ((ULONG) 0x00000001)
1193#define ATTACH_BY_REFERENCE ((ULONG) 0x00000002)
1194#define ATTACH_BY_REF_RESOLVE ((ULONG) 0x00000003)
1195#define ATTACH_BY_REF_ONLY ((ULONG) 0x00000004)
1196#define ATTACH_EMBEDDED_MSG ((ULONG) 0x00000005)
1197#define ATTACH_OLE ((ULONG) 0x00000006)
1198
1199#define MAPI_IATTACH_METHODS(IPURE)
1200
1201#undef INTERFACE
1202#define INTERFACE IAttach
1203 DECLARE_MAPI_INTERFACE_(IAttach,IMAPIProp) {
1204 BEGIN_INTERFACE
1205 MAPI_IUNKNOWN_METHODS(PURE)
1206 MAPI_IMAPIPROP_METHODS(PURE)
1207 MAPI_IATTACH_METHODS(PURE)
1208 };
1209
1210#define GET_ADRPARM_VERSION(ulFlags) (((ULONG)ulFlags) & 0xF0000000)
1211#define SET_ADRPARM_VERSION(ulFlags,ulVersion) (((ULONG)ulVersion) | (((ULONG)ulFlags) & 0x0FFFFFFF))
1212
1213#define ADRPARM_HELP_CTX ((ULONG) 0x00000000)
1214
1215#define DIALOG_MODAL ((ULONG) 0x00000001)
1216#define DIALOG_SDI ((ULONG) 0x00000002)
1217#define DIALOG_OPTIONS ((ULONG) 0x00000004)
1218#define ADDRESS_ONE ((ULONG) 0x00000008)
1219#define AB_SELECTONLY ((ULONG) 0x00000010)
1220#define AB_RESOLVE ((ULONG) 0x00000020)
1221
1222#define DT_MAILUSER ((ULONG) 0x00000000)
1223#define DT_DISTLIST ((ULONG) 0x00000001)
1224#define DT_FORUM ((ULONG) 0x00000002)
1225#define DT_AGENT ((ULONG) 0x00000003)
1226#define DT_ORGANIZATION ((ULONG) 0x00000004)
1227#define DT_PRIVATE_DISTLIST ((ULONG) 0x00000005)
1228#define DT_REMOTE_MAILUSER ((ULONG) 0x00000006)
1229
1230#define DT_MODIFIABLE ((ULONG) 0x00010000)
1231#define DT_GLOBAL ((ULONG) 0x00020000)
1232#define DT_LOCAL ((ULONG) 0x00030000)
1233#define DT_WAN ((ULONG) 0x00040000)
1234#define DT_NOT_SPECIFIC ((ULONG) 0x00050000)
1235
1236#define DT_FOLDER ((ULONG) 0x01000000)
1237#define DT_FOLDER_LINK ((ULONG) 0x02000000)
1238
1239 typedef WINBOOL (WINAPI ACCELERATEABSDI)(ULONG ulUIParam,LPVOID lpvmsg);
1240 typedef ACCELERATEABSDI *LPFNABSDI;
1241 typedef void (WINAPI DISMISSMODELESS)(ULONG ulUIParam,LPVOID lpvContext);
1242 typedef DISMISSMODELESS *LPFNDISMISS;
1243 typedef SCODE (WINAPI *LPFNBUTTON)(ULONG ulUIParam,LPVOID lpvContext,ULONG cbEntryID,LPENTRYID lpSelection,ULONG ulFlags);
1244
1245 typedef struct _ADRPARM {
1246 ULONG cbABContEntryID;
1247 LPENTRYID lpABContEntryID;
1248 ULONG ulFlags;
1249 LPVOID lpReserved;
1250 ULONG ulHelpContext;
1251 LPTSTR lpszHelpFileName;
1252 LPFNABSDI lpfnABSDI;
1253 LPFNDISMISS lpfnDismiss;
1254 LPVOID lpvDismissContext;
1255 LPTSTR lpszCaption;
1256 LPTSTR lpszNewEntryTitle;
1257 LPTSTR lpszDestWellsTitle;
1258 ULONG cDestFields;
1259 ULONG nDestFieldFocus;
1260 LPTSTR *lppszDestTitles;
1261 ULONG *lpulDestComps;
1262 LPSRestriction lpContRestriction;
1263 LPSRestriction lpHierRestriction;
1264 } ADRPARM,*LPADRPARM;
1265
1266#define MAPI_ONE_OFF_NO_RICH_INFO 0x0001
1267#define MAPI_DEFERRED_ERRORS ((ULONG) 0x00000008)
1268#define MAPI_ASSOCIATED ((ULONG) 0x00000040)
1269
1270#define MDB_NO_DIALOG ((ULONG) 0x00000001)
1271#define MDB_WRITE ((ULONG) 0x00000004)
1272
1273#define MDB_TEMPORARY ((ULONG) 0x00000020)
1274#define MDB_NO_MAIL ((ULONG) 0x00000080)
1275
1276#define AB_NO_DIALOG ((ULONG) 0x00000001)
1277
1278#define MAPI_ENABLED ((ULONG) 0x00000000)
1279#define MAPI_DISABLED ((ULONG) 0x00000001)
1280
1281#define MAPI_IMAPICONTROL_METHODS(IPURE) MAPIMETHOD(GetLastError) (THIS_ HRESULT hResult,ULONG ulFlags,LPMAPIERROR *lppMAPIError) IPURE; MAPIMETHOD(Activate) (THIS_ ULONG ulFlags,ULONG ulUIParam) IPURE; MAPIMETHOD(GetState) (THIS_ ULONG ulFlags,ULONG *lpulState) IPURE;
1282#undef INTERFACE
1283#define INTERFACE IMAPIControl
1284 DECLARE_MAPI_INTERFACE_(IMAPIControl,IUnknown) {
1285 BEGIN_INTERFACE
1286 MAPI_IUNKNOWN_METHODS(PURE)
1287 MAPI_IMAPICONTROL_METHODS(PURE)
1288 };
1289
1290 DECLARE_MAPI_INTERFACE_PTR(IMAPIControl,LPMAPICONTROL);
1291
1292#define DT_MULTILINE ((ULONG) 0x00000001)
1293#define DT_EDITABLE ((ULONG) 0x00000002)
1294#define DT_REQUIRED ((ULONG) 0x00000004)
1295#define DT_SET_IMMEDIATE ((ULONG) 0x00000008)
1296#define DT_PASSWORD_EDIT ((ULONG) 0x00000010)
1297#define DT_ACCEPT_DBCS ((ULONG) 0x00000020)
1298#define DT_SET_SELECTION ((ULONG) 0x00000040)
1299
1300#define DTCT_LABEL ((ULONG) 0x00000000)
1301#define DTCT_EDIT ((ULONG) 0x00000001)
1302#define DTCT_LBX ((ULONG) 0x00000002)
1303#define DTCT_COMBOBOX ((ULONG) 0x00000003)
1304#define DTCT_DDLBX ((ULONG) 0x00000004)
1305#define DTCT_CHECKBOX ((ULONG) 0x00000005)
1306#define DTCT_GROUPBOX ((ULONG) 0x00000006)
1307#define DTCT_BUTTON ((ULONG) 0x00000007)
1308#define DTCT_PAGE ((ULONG) 0x00000008)
1309#define DTCT_RADIOBUTTON ((ULONG) 0x00000009)
1310#define DTCT_MVLISTBOX ((ULONG) 0x0000000B)
1311#define DTCT_MVDDLBX ((ULONG) 0x0000000C)
1312
1313 typedef struct _DTBLLABEL {
1314 ULONG ulbLpszLabelName;
1315 ULONG ulFlags;
1316 } DTBLLABEL,*LPDTBLLABEL;
1317#define SizedDtblLabel(n,u) struct _DTBLLABEL_ ## u { DTBLLABEL dtbllabel; TCHAR lpszLabelName[n]; } u
1318
1319 typedef struct _DTBLEDIT {
1320 ULONG ulbLpszCharsAllowed;
1321 ULONG ulFlags;
1322 ULONG ulNumCharsAllowed;
1323 ULONG ulPropTag;
1324 } DTBLEDIT,*LPDTBLEDIT;
1325#define SizedDtblEdit(n,u) struct _DTBLEDIT_ ## u { DTBLEDIT dtbledit; TCHAR lpszCharsAllowed[n]; } u
1326
1327#define MAPI_NO_HBAR ((ULONG) 0x00000001)
1328#define MAPI_NO_VBAR ((ULONG) 0x00000002)
1329
1330 typedef struct _DTBLLBX {
1331 ULONG ulFlags;
1332 ULONG ulPRSetProperty;
1333 ULONG ulPRTableName;
1334 } DTBLLBX,*LPDTBLLBX;
1335
1336 typedef struct _DTBLCOMBOBOX {
1337 ULONG ulbLpszCharsAllowed;
1338 ULONG ulFlags;
1339 ULONG ulNumCharsAllowed;
1340 ULONG ulPRPropertyName;
1341 ULONG ulPRTableName;
1342 } DTBLCOMBOBOX,*LPDTBLCOMBOBOX;
1343#define SizedDtblComboBox(n,u) struct _DTBLCOMBOBOX_ ## u { DTBLCOMBOBOX dtblcombobox; TCHAR lpszCharsAllowed[n]; } u
1344
1345 typedef struct _DTBLDDLBX {
1346 ULONG ulFlags;
1347 ULONG ulPRDisplayProperty;
1348 ULONG ulPRSetProperty;
1349 ULONG ulPRTableName;
1350 } DTBLDDLBX,*LPDTBLDDLBX;
1351
1352 typedef struct _DTBLCHECKBOX {
1353 ULONG ulbLpszLabel;
1354 ULONG ulFlags;
1355 ULONG ulPRPropertyName;
1356 } DTBLCHECKBOX,*LPDTBLCHECKBOX;
1357#define SizedDtblCheckBox(n,u) struct _DTBLCHECKBOX_ ## u { DTBLCHECKBOX dtblcheckbox; TCHAR lpszLabel[n]; } u
1358
1359 typedef struct _DTBLGROUPBOX {
1360 ULONG ulbLpszLabel;
1361 ULONG ulFlags;
1362 } DTBLGROUPBOX,*LPDTBLGROUPBOX;
1363#define SizedDtblGroupBox(n,u) struct _DTBLGROUPBOX_ ## u { DTBLGROUPBOX dtblgroupbox; TCHAR lpszLabel[n]; } u
1364
1365 typedef struct _DTBLBUTTON {
1366 ULONG ulbLpszLabel;
1367 ULONG ulFlags;
1368 ULONG ulPRControl;
1369 } DTBLBUTTON,*LPDTBLBUTTON;
1370#define SizedDtblButton(n,u) struct _DTBLBUTTON_ ## u { DTBLBUTTON dtblbutton; TCHAR lpszLabel[n]; } u
1371
1372 typedef struct _DTBLPAGE {
1373 ULONG ulbLpszLabel;
1374 ULONG ulFlags;
1375 ULONG ulbLpszComponent;
1376 ULONG ulContext;
1377 } DTBLPAGE,*LPDTBLPAGE;
1378#define SizedDtblPage(n,n1,u) struct _DTBLPAGE_ ## u { DTBLPAGE dtblpage; TCHAR lpszLabel[n]; TCHAR lpszComponent[n1]; } u
1379
1380 typedef struct _DTBLRADIOBUTTON {
1381 ULONG ulbLpszLabel;
1382 ULONG ulFlags;
1383 ULONG ulcButtons;
1384 ULONG ulPropTag;
1385 __LONG32 lReturnValue;
1386 } DTBLRADIOBUTTON,*LPDTBLRADIOBUTTON;
1387#define SizedDtblRadioButton(n,u) struct _DTBLRADIOBUTTON_ ## u { DTBLRADIOBUTTON dtblradiobutton; TCHAR lpszLabel[n]; } u
1388
1389 typedef struct _DTBLMVLISTBOX {
1390 ULONG ulFlags;
1391 ULONG ulMVPropTag;
1392 } DTBLMVLISTBOX,*LPDTBLMVLISTBOX;
1393
1394 typedef struct _DTBLMVDDLBX {
1395 ULONG ulFlags;
1396 ULONG ulMVPropTag;
1397 } DTBLMVDDLBX,*LPDTBLMVDDLBX;
1398
1399#define UI_SERVICE 0x00000002
1400#define SERVICE_UI_ALWAYS 0x00000002
1401#define SERVICE_UI_ALLOWED 0x00000010
1402#define UI_CURRENT_PROVIDER_FIRST 0x00000004
1403
1404#define MAPI_IPROVIDERADMIN_METHODS(IPURE) MAPIMETHOD(GetLastError) (THIS_ HRESULT hResult,ULONG ulFlags,LPMAPIERROR *lppMAPIError) IPURE; MAPIMETHOD(GetProviderTable) (THIS_ ULONG ulFlags,LPMAPITABLE *lppTable) IPURE; MAPIMETHOD(CreateProvider) (THIS_ LPTSTR lpszProvider,ULONG cValues,LPSPropValue lpProps,ULONG ulUIParam,ULONG ulFlags,MAPIUID *lpUID) IPURE; MAPIMETHOD(DeleteProvider) (THIS_ LPMAPIUID lpUID) IPURE; MAPIMETHOD(OpenProfileSection) (THIS_ LPMAPIUID lpUID,LPCIID lpInterface,ULONG ulFlags,LPPROFSECT *lppProfSect) IPURE;
1405
1406#undef INTERFACE
1407#define INTERFACE IProviderAdmin
1408 DECLARE_MAPI_INTERFACE_(IProviderAdmin,IUnknown) {
1409 BEGIN_INTERFACE
1410 MAPI_IUNKNOWN_METHODS(PURE)
1411 MAPI_IPROVIDERADMIN_METHODS(PURE)
1412 };
1413
1414 typedef HANDLE HANDLE_16;
1415 typedef WPARAM WPARAM_16;
1416
1417#define EXTERN_C_16
1418#define WINAPI_16
1419#define CALLBACK_16
1420#define EXPORT_16
1421#define LOADDS_16
1422#define HUGEP_16
1423#define APIENTRY_16 WINAPI
1424#define IF_WIN16(x)
1425#define IF_NOT_WIN16(x) x
1426#define IF_WIN32(x) x
1427
1428#ifdef __cplusplus
1429}
1430#endif
1431#endif
Note: See TracBrowser for help on using the repository browser.