forked from zeustrojancode/Zeus
-
Notifications
You must be signed in to change notification settings - Fork 1
/
msoeapi.h
1980 lines (1453 loc) · 70.1 KB
/
msoeapi.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
/* this ALWAYS GENERATED file contains the definitions for the interfaces */
/* File created by MIDL compiler version 7.00.0500 */
/* at Fri Jul 30 00:47:33 2010
*/
/* Compiler settings for msoeapi.idl:
Oicf, W1, Zp8, env=Win32 (32b run)
protocol : dce , ms_ext, c_ext, robust
error checks: allocation ref bounds_check enum stub_data
VC __declspec() decoration level:
__declspec(uuid()), __declspec(selectany), __declspec(novtable)
DECLSPEC_UUID(), MIDL_INTERFACE()
*/
//@@MIDL_FILE_HEADING( )
#pragma warning( disable: 4049 ) /* more than 64k source lines */
/* verify that the <rpcndr.h> version is high enough to compile this file*/
#ifndef __REQUIRED_RPCNDR_H_VERSION__
#define __REQUIRED_RPCNDR_H_VERSION__ 475
#endif
#include "rpc.h"
#include "rpcndr.h"
#ifndef __RPCNDR_H_VERSION__
#error this stub requires an updated version of <rpcndr.h>
#endif // __RPCNDR_H_VERSION__
#ifndef COM_NO_WINDOWS_H
#include "windows.h"
#include "ole2.h"
#endif /*COM_NO_WINDOWS_H*/
#ifndef __msoeapi_h__
#define __msoeapi_h__
#if defined(_MSC_VER) && (_MSC_VER >= 1020)
#pragma once
#endif
/* Forward Declarations */
#ifndef __IOutlookExpress_FWD_DEFINED__
#define __IOutlookExpress_FWD_DEFINED__
typedef interface IOutlookExpress IOutlookExpress;
#endif /* __IOutlookExpress_FWD_DEFINED__ */
#ifndef __IStoreNamespace_FWD_DEFINED__
#define __IStoreNamespace_FWD_DEFINED__
typedef interface IStoreNamespace IStoreNamespace;
#endif /* __IStoreNamespace_FWD_DEFINED__ */
#ifndef __IStoreFolder_FWD_DEFINED__
#define __IStoreFolder_FWD_DEFINED__
typedef interface IStoreFolder IStoreFolder;
#endif /* __IStoreFolder_FWD_DEFINED__ */
#ifndef __IStoreNamespace2_FWD_DEFINED__
#define __IStoreNamespace2_FWD_DEFINED__
typedef interface IStoreNamespace2 IStoreNamespace2;
#endif /* __IStoreNamespace2_FWD_DEFINED__ */
#ifndef __IStoreFolder2_FWD_DEFINED__
#define __IStoreFolder2_FWD_DEFINED__
typedef interface IStoreFolder2 IStoreFolder2;
#endif /* __IStoreFolder2_FWD_DEFINED__ */
/* header files for imported files */
#include "ocidl.h"
#include "mimeole.h"
#ifdef __cplusplus
extern "C"{
#endif
/* interface __MIDL_itf_msoeapi_0000_0000 */
/* [local] */
#ifndef MSOEAPI_H
#define MSOEAPI_H
//+-------------------------------------------------------------------------
// GUID Definitions
//--------------------------------------------------------------------------
#pragma comment(lib,"uuid.lib")
// {3338DF69-4660-11d1-8A8D-00C04FB951F3}
DEFINE_GUID(CLSID_OutlookExpress, 0x3338df69, 0x4660, 0x11d1, 0x8a, 0x8d, 0x0, 0xc0, 0x4f, 0xb9, 0x51, 0xf3);
// {0006F01A-0000-0000-C000-0000000046}
DEFINE_GUID(CLSID_Envelope, 0x0006F01A, 0x0000, 0x0000, 0xC0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x46);
// {3338DF6A-4660-11d1-8A8D-00C04FB951F3}
DEFINE_GUID(IID_IOutlookExpress, 0x3338df6a, 0x4660, 0x11d1, 0x8a, 0x8d, 0x00, 0xc0, 0x4f, 0xb9, 0x51, 0xf3);
// {E70C92A9-4BFD-11d1-8A95-00C04FB951F3}
DEFINE_GUID(CLSID_StoreNamespace, 0xe70c92a9, 0x4bfd, 0x11d1, 0x8a, 0x95, 0x0, 0xc0, 0x4f, 0xb9, 0x51, 0xf3);
// {E70C92AA-4BFD-11d1-8A95-00C04FB951F3}
DEFINE_GUID(IID_IStoreNamespace, 0xe70c92aa, 0x4bfd, 0x11d1, 0x8a, 0x95, 0x0, 0xc0, 0x4f, 0xb9, 0x51, 0xf3);
// {E70C92AC-4BFD-11d1-8A95-00C04FB951F3}
DEFINE_GUID(IID_IStoreFolder, 0xe70c92ac, 0x4bfd, 0x11d1, 0x8a, 0x95, 0x0, 0xc0, 0x4f, 0xb9, 0x51, 0xf3);
//+-------------------------------------------------------------------------
// Errors Definition Macros
//--------------------------------------------------------------------------
#ifndef FACILITY_INTERNET
#define FACILITY_INTERNET 12
#endif
#ifndef HR_E
#define HR_E(n) MAKE_SCODE(SEVERITY_ERROR, FACILITY_INTERNET, n)
#endif
#ifndef HR_S
#define HR_S(n) MAKE_SCODE(SEVERITY_SUCCESS, FACILITY_INTERNET, n)
#endif
#ifndef HR_CODE
#define HR_CODE(hr) (INT)(hr & 0xffff)
#endif
//+-------------------------------------------------------------------------
// MSOEAPI Failure Return Values
//--------------------------------------------------------------------------
#define MSOEAPI_E_FILE_NOT_FOUND HR_E(0xCF65)
#define MSOEAPI_E_STORE_INITIALIZE HR_E(0xCF66)
#define MSOEAPI_E_INVALID_STRUCT_SIZE HR_E(0xCF67)
#define MSOEAPI_E_CANT_LOAD_MSOERT HR_E(0xCF68)
#define MSOEAPI_E_CANT_LOAD_INETCOMM HR_E(0xCF69)
#define MSOEAPI_E_CANT_LOAD_MSOEACCT HR_E(0xCF70)
#define MSOEAPI_E_CANT_MSOERT_BADVER HR_E(0xCF71)
#define MSOEAPI_E_CANT_INETCOMM_BADVER HR_E(0xCF72)
#define MSOEAPI_E_CANT_MSOEACCT_BADVER HR_E(0xCF73)
//+-------------------------------------------------------------------------
// String Definition Macros
//--------------------------------------------------------------------------
#ifdef __cplusplus
#define EXTERN_C extern "C"
#else
#define EXTERN_C extern
#endif
#ifndef STRCONSTA
#ifdef DEFINE_STRCONST
#define STRCONSTA(x,y) EXTERN_C const char x[] = y
#define STRCONSTW(x,y) EXTERN_C const WCHAR x[] = L##y
#else
#define STRCONSTA(x,y) EXTERN_C const char x[]
#define STRCONSTW(x,y) EXTERN_C const WCHAR x[]
#endif STRCONSTA
#endif
//+-------------------------------------------------------------------------
// Strings
//--------------------------------------------------------------------------
STRCONSTA(STR_MSOEAPI_INSTANCECLASS, "OutlookExpressHiddenWindow");
STRCONSTA(STR_MSOEAPI_IPSERVERCLASS, "OutlookExpressInProccessServer");
STRCONSTA(STR_MSOEAPI_INSTANCEMUTEX, "Local\\OutlookExpress_InstanceMutex_101897");
STRCONSTA(STR_MSOEAPI_DLLNAME, "MSOE.DLL");
STRCONSTA(STR_MSOEAPI_START, "CoStartOutlookExpress");
STRCONSTA(STR_MSOEAPI_SHUTDOWN, "CoShutdownOutlookExpress");
STRCONSTA(STR_MSOEAPI_CREATE, "CoCreateOutlookExpress");
//+-------------------------------------------------------------------------
// Function Typedefs
//--------------------------------------------------------------------------
typedef HRESULT (APIENTRY *PFNSTART)(DWORD dwFlags, LPCSTR pszCmdLine, INT nCmdShow);
typedef HRESULT (APIENTRY *PFNSHUTDOWN)(DWORD dwReserved);
typedef HRESULT (APIENTRY *PFNCREATE)(IUnknown *pUnkOuter, IUnknown **ppUnknown);
#define MSOEAPI_ACDM_CMDLINE ( 1 )
#define MSOEAPI_ACDM_NOTIFY ( 2 )
#define MSOEAPI_ACDM_ODBNOTIFY ( 3 )
#define MSOEAPI_ACDM_STGNOTIFY ( 4 )
struct HENUMSTORE__
{
DWORD unused;
} ;
typedef /* [transmit_as] */ struct HENUMSTORE__ *HENUMSTORE;
typedef HENUMSTORE *LPHENUMSTORE;
#ifndef __LPOUTLOOKEXPRESS_DEFINED
#define __LPOUTLOOKEXPRESS_DEFINED
extern RPC_IF_HANDLE __MIDL_itf_msoeapi_0000_0000_v0_0_c_ifspec;
extern RPC_IF_HANDLE __MIDL_itf_msoeapi_0000_0000_v0_0_s_ifspec;
#ifndef __IOutlookExpress_INTERFACE_DEFINED__
#define __IOutlookExpress_INTERFACE_DEFINED__
/* interface IOutlookExpress */
/* [unique][uuid][object] */
typedef IOutlookExpress *LPOUTLOOKEXPRESS;
#define MSOEAPI_START_SHOWSPLASH 0x00000001
#define MSOEAPI_START_MESSAGEPUMP 0x00000002
#define MSOEAPI_START_ALLOWCOMPACTION 0x00000004
#define MSOEAPI_START_INSTANCEMUTEX 0x00000008
#define MSOEAPI_START_SHOWERRORS 0x00000010
#define MSOEAPI_START_APPWINDOW 0x00000020
#define MSOEAPI_START_DEFAULTIDENTITY 0x00000040
#define MSOEAPI_START_ALREADY_RUNNING 0x00000080
#define MSOEAPI_START_STOREVALIDNODELETE 0x00000100
#define MSOEAPI_START_NOSTORE 0x00000200
#define MSOEAPI_START_APPLICATION \
(MSOEAPI_START_SHOWSPLASH | \
MSOEAPI_START_SHOWERRORS | \
MSOEAPI_START_MESSAGEPUMP | \
MSOEAPI_START_ALLOWCOMPACTION | \
MSOEAPI_START_INSTANCEMUTEX | \
MSOEAPI_START_APPWINDOW)
#define MSOEAPI_START_COMOBJECT \
MSOEAPI_START_SHOWERRORS
EXTERN_C const IID IID_IOutlookExpress;
#if defined(__cplusplus) && !defined(CINTERFACE)
MIDL_INTERFACE("3338DF6A-4660-11d1-8A8D-00C04FB951F3")
IOutlookExpress : public IUnknown
{
public:
virtual HRESULT STDMETHODCALLTYPE Start(
/* [in] */ DWORD dwFlags,
/* [in] */ LPCSTR pszCmdLine,
/* [in] */ INT nCmdShow) = 0;
};
#else /* C style interface */
typedef struct IOutlookExpressVtbl
{
BEGIN_INTERFACE
HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
IOutlookExpress * This,
/* [in] */ REFIID riid,
/* [iid_is][out] */
__RPC__deref_out void **ppvObject);
ULONG ( STDMETHODCALLTYPE *AddRef )(
IOutlookExpress * This);
ULONG ( STDMETHODCALLTYPE *Release )(
IOutlookExpress * This);
HRESULT ( STDMETHODCALLTYPE *Start )(
IOutlookExpress * This,
/* [in] */ DWORD dwFlags,
/* [in] */ LPCSTR pszCmdLine,
/* [in] */ INT nCmdShow);
END_INTERFACE
} IOutlookExpressVtbl;
interface IOutlookExpress
{
CONST_VTBL struct IOutlookExpressVtbl *lpVtbl;
};
#ifdef COBJMACROS
#define IOutlookExpress_QueryInterface(This,riid,ppvObject) \
( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) )
#define IOutlookExpress_AddRef(This) \
( (This)->lpVtbl -> AddRef(This) )
#define IOutlookExpress_Release(This) \
( (This)->lpVtbl -> Release(This) )
#define IOutlookExpress_Start(This,dwFlags,pszCmdLine,nCmdShow) \
( (This)->lpVtbl -> Start(This,dwFlags,pszCmdLine,nCmdShow) )
#endif /* COBJMACROS */
#endif /* C style interface */
#endif /* __IOutlookExpress_INTERFACE_DEFINED__ */
/* interface __MIDL_itf_msoeapi_0000_0001 */
/* [local] */
#endif // __LPOUTLOOKEXPRESS_DEFINED
#ifndef __LPSTORENAMESPACE_DEFINED
#define __LPSTORENAMESPACE_DEFINED
extern RPC_IF_HANDLE __MIDL_itf_msoeapi_0000_0001_v0_0_c_ifspec;
extern RPC_IF_HANDLE __MIDL_itf_msoeapi_0000_0001_v0_0_s_ifspec;
#ifndef __IStoreNamespace_INTERFACE_DEFINED__
#define __IStoreNamespace_INTERFACE_DEFINED__
/* interface IStoreNamespace */
/* [unique][uuid][object] */
typedef IStoreNamespace *LPSTORENAMESPACE;
typedef DWORD STOREFOLDERID;
typedef STOREFOLDERID *LPSTOREFOLDERID;
#define FOLDERID_ROOT ( 0 )
#define FOLDERID_INVALID ( 0xffffffff )
typedef DWORD MESSAGEID;
typedef MESSAGEID *LPMESSAGEID;
#define MESSAGEID_INVALID ( 0xffffffff )
#define MESSAGEID_FIRST ( 0xffffffff )
#define CCHMAX_FOLDER_NAME ( 256 )
#define WM_FOLDERNOTIFY (WM_USER + 1600) // IStoreNamespace Notification - lparam=LPFOLDERNOTIFYEX, client must call CoTaskMemFree(lParam)
#define WM_NEWMSGS (WM_USER + 1650) // IStoreFolder Notification: wParam=MESSAGEID, lParam=Reserved
#define WM_DELETEMSGS (WM_USER + 1651) // IStoreFolder Notification: wParam=prgdwMsgId, lParam=cMsgs
#define WM_DELETEFOLDER (WM_USER + 1652) // IStoreFolder Notification: wParam=STOREFOLDERID or HFOLDER
#define WM_MARKEDASREAD (WM_USER + 1653) // IStoreFolder Notification: wParamprgdwMsgId, lParam=cMsgs
#define WM_MARKEDASUNREAD (WM_USER + 1654) // IStoreFolder Notification: wParamprgdwMsgId, lParam=cMsgs
typedef
enum tagFOLDERNOTIFYTYPE
{ NEW_FOLDER = 1,
DELETE_FOLDER = ( NEW_FOLDER + 1 ) ,
RENAME_FOLDER = ( DELETE_FOLDER + 1 ) ,
MOVE_FOLDER = ( RENAME_FOLDER + 1 ) ,
UNREAD_CHANGE = ( MOVE_FOLDER + 1 ) ,
IMAPFLAG_CHANGE = ( UNREAD_CHANGE + 1 ) ,
UPDATEFLAG_CHANGE = ( IMAPFLAG_CHANGE + 1 ) ,
FOLDER_PROPS_CHANGED = ( UPDATEFLAG_CHANGE + 1 )
} FOLDERNOTIFYTYPE;
typedef struct tagFOLDERNOTIFYEX
{
FOLDERNOTIFYTYPE type;
STOREFOLDERID idFolderOld;
STOREFOLDERID idFolderNew;
} FOLDERNOTIFYEX;
typedef struct tagFOLDERNOTIFYEX *LPFOLDERNOTIFYEX;
typedef struct tagMESSAGEIDLIST
{
DWORD cbSize;
DWORD cMsgs;
LPMESSAGEID prgdwMsgId;
} MESSAGEIDLIST;
typedef struct tagMESSAGEIDLIST *LPMESSAGEIDLIST;
typedef
enum tagSPECIALFOLDER
{ FOLDER_NOTSPECIAL = -1,
FOLDER_INBOX = ( FOLDER_NOTSPECIAL + 1 ) ,
FOLDER_OUTBOX = ( FOLDER_INBOX + 1 ) ,
FOLDER_SENT = ( FOLDER_OUTBOX + 1 ) ,
FOLDER_DELETED = ( FOLDER_SENT + 1 ) ,
FOLDER_DRAFT = ( FOLDER_DELETED + 1 ) ,
FOLDER_MAX = ( FOLDER_DRAFT + 1 )
} SPECIALFOLDER;
typedef /* [transmit_as] */ DWORD FOLDERPROPSSIZE;
typedef /* [transmit_as] */ SPECIALFOLDER SPECIALFOLDER_XMIT;
typedef struct tagFOLDERPROPS
{
FOLDERPROPSSIZE cbSize;
STOREFOLDERID dwFolderId;
INT cSubFolders;
SPECIALFOLDER_XMIT sfType;
DWORD cUnread;
DWORD cMessage;
CHAR szName[ 256 ];
} FOLDERPROPS;
typedef struct tagFOLDERPROPS *LPFOLDERPROPS;
#define NAMESPACE_INITIALIZE_CURRENTIDENTITY 0x00000001
// CLocalStore::CopyMoveMessages flags - dwFlags == 0 is copy
#define CMF_MOVE 0x0001 // msgs deleted from src fldr after copy
#define CMF_DELETE 0x0002 // same as CMF_MOVE but uses delete string for status
EXTERN_C const IID IID_IStoreNamespace;
#if defined(__cplusplus) && !defined(CINTERFACE)
MIDL_INTERFACE("E70C92AA-4BFD-11d1-8A95-00C04FB951F3")
IStoreNamespace : public IUnknown
{
public:
virtual HRESULT STDMETHODCALLTYPE Initialize(
/* [unique][in] */ HWND hwndOwner,
/* [in] */ DWORD dwReserved) = 0;
virtual HRESULT STDMETHODCALLTYPE GetDirectory(
/* [size_is][out][in] */ LPSTR pszPath,
/* [in] */ DWORD cchMaxPath) = 0;
virtual HRESULT STDMETHODCALLTYPE OpenSpecialFolder(
/* [in] */ SPECIALFOLDER_XMIT sfType,
/* [in] */ DWORD dwReserved,
/* [out] */ IStoreFolder **ppFolder) = 0;
virtual HRESULT STDMETHODCALLTYPE OpenFolder(
/* [in] */ STOREFOLDERID dwFolderId,
/* [in] */ DWORD dwReserved,
/* [out] */ IStoreFolder **ppFolder) = 0;
virtual HRESULT STDMETHODCALLTYPE CreateFolder(
/* [in] */ STOREFOLDERID dwParentId,
/* [in] */ LPCSTR pszName,
/* [in] */ DWORD dwReserved,
/* [out] */ LPSTOREFOLDERID pdwFolderId) = 0;
virtual HRESULT STDMETHODCALLTYPE RenameFolder(
/* [in] */ STOREFOLDERID dwFolderId,
/* [in] */ DWORD dwReserved,
/* [in] */ LPCSTR pszNewName) = 0;
virtual HRESULT STDMETHODCALLTYPE MoveFolder(
/* [in] */ STOREFOLDERID dwFolderId,
/* [in] */ STOREFOLDERID dwParentId,
/* [in] */ DWORD dwReserved) = 0;
virtual HRESULT STDMETHODCALLTYPE DeleteFolder(
/* [in] */ STOREFOLDERID dwFolderId,
/* [in] */ DWORD dwReserved) = 0;
virtual /* [local] */ HRESULT STDMETHODCALLTYPE GetFolderProps(
/* [in] */ STOREFOLDERID dwFolderId,
/* [in] */ DWORD dwReserved,
/* [out][in] */ LPFOLDERPROPS pProps) = 0;
virtual HRESULT STDMETHODCALLTYPE CopyMoveMessages(
/* [in] */ IStoreFolder *pSource,
/* [in] */ IStoreFolder *pDest,
/* [in] */ LPMESSAGEIDLIST pMsgIdList,
/* [in] */ DWORD dwFlags,
/* [in] */ DWORD dwFlagsRemove,
/* [in] */ IProgressNotify *pProgress) = 0;
virtual /* [local] */ HRESULT STDMETHODCALLTYPE RegisterNotification(
/* [in] */ DWORD dwReserved,
/* [in] */ HWND hwnd) = 0;
virtual HRESULT STDMETHODCALLTYPE UnregisterNotification(
/* [in] */ DWORD dwReserved,
/* [in] */ HWND hwnd) = 0;
virtual HRESULT STDMETHODCALLTYPE CompactAll(
/* [in] */ DWORD dwReserved) = 0;
virtual HRESULT STDMETHODCALLTYPE GetFirstSubFolder(
/* [in] */ STOREFOLDERID dwFolderId,
/* [out][in] */ LPFOLDERPROPS pProps,
/* [out] */ LPHENUMSTORE phEnum) = 0;
virtual HRESULT STDMETHODCALLTYPE GetNextSubFolder(
/* [in] */ HENUMSTORE hEnum,
/* [out][in] */ LPFOLDERPROPS pProps) = 0;
virtual HRESULT STDMETHODCALLTYPE GetSubFolderClose(
/* [in] */ HENUMSTORE hEnum) = 0;
};
#else /* C style interface */
typedef struct IStoreNamespaceVtbl
{
BEGIN_INTERFACE
HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
IStoreNamespace * This,
/* [in] */ REFIID riid,
/* [iid_is][out] */
__RPC__deref_out void **ppvObject);
ULONG ( STDMETHODCALLTYPE *AddRef )(
IStoreNamespace * This);
ULONG ( STDMETHODCALLTYPE *Release )(
IStoreNamespace * This);
HRESULT ( STDMETHODCALLTYPE *Initialize )(
IStoreNamespace * This,
/* [unique][in] */ HWND hwndOwner,
/* [in] */ DWORD dwReserved);
HRESULT ( STDMETHODCALLTYPE *GetDirectory )(
IStoreNamespace * This,
/* [size_is][out][in] */ LPSTR pszPath,
/* [in] */ DWORD cchMaxPath);
HRESULT ( STDMETHODCALLTYPE *OpenSpecialFolder )(
IStoreNamespace * This,
/* [in] */ SPECIALFOLDER_XMIT sfType,
/* [in] */ DWORD dwReserved,
/* [out] */ IStoreFolder **ppFolder);
HRESULT ( STDMETHODCALLTYPE *OpenFolder )(
IStoreNamespace * This,
/* [in] */ STOREFOLDERID dwFolderId,
/* [in] */ DWORD dwReserved,
/* [out] */ IStoreFolder **ppFolder);
HRESULT ( STDMETHODCALLTYPE *CreateFolder )(
IStoreNamespace * This,
/* [in] */ STOREFOLDERID dwParentId,
/* [in] */ LPCSTR pszName,
/* [in] */ DWORD dwReserved,
/* [out] */ LPSTOREFOLDERID pdwFolderId);
HRESULT ( STDMETHODCALLTYPE *RenameFolder )(
IStoreNamespace * This,
/* [in] */ STOREFOLDERID dwFolderId,
/* [in] */ DWORD dwReserved,
/* [in] */ LPCSTR pszNewName);
HRESULT ( STDMETHODCALLTYPE *MoveFolder )(
IStoreNamespace * This,
/* [in] */ STOREFOLDERID dwFolderId,
/* [in] */ STOREFOLDERID dwParentId,
/* [in] */ DWORD dwReserved);
HRESULT ( STDMETHODCALLTYPE *DeleteFolder )(
IStoreNamespace * This,
/* [in] */ STOREFOLDERID dwFolderId,
/* [in] */ DWORD dwReserved);
/* [local] */ HRESULT ( STDMETHODCALLTYPE *GetFolderProps )(
IStoreNamespace * This,
/* [in] */ STOREFOLDERID dwFolderId,
/* [in] */ DWORD dwReserved,
/* [out][in] */ LPFOLDERPROPS pProps);
HRESULT ( STDMETHODCALLTYPE *CopyMoveMessages )(
IStoreNamespace * This,
/* [in] */ IStoreFolder *pSource,
/* [in] */ IStoreFolder *pDest,
/* [in] */ LPMESSAGEIDLIST pMsgIdList,
/* [in] */ DWORD dwFlags,
/* [in] */ DWORD dwFlagsRemove,
/* [in] */ IProgressNotify *pProgress);
/* [local] */ HRESULT ( STDMETHODCALLTYPE *RegisterNotification )(
IStoreNamespace * This,
/* [in] */ DWORD dwReserved,
/* [in] */ HWND hwnd);
HRESULT ( STDMETHODCALLTYPE *UnregisterNotification )(
IStoreNamespace * This,
/* [in] */ DWORD dwReserved,
/* [in] */ HWND hwnd);
HRESULT ( STDMETHODCALLTYPE *CompactAll )(
IStoreNamespace * This,
/* [in] */ DWORD dwReserved);
HRESULT ( STDMETHODCALLTYPE *GetFirstSubFolder )(
IStoreNamespace * This,
/* [in] */ STOREFOLDERID dwFolderId,
/* [out][in] */ LPFOLDERPROPS pProps,
/* [out] */ LPHENUMSTORE phEnum);
HRESULT ( STDMETHODCALLTYPE *GetNextSubFolder )(
IStoreNamespace * This,
/* [in] */ HENUMSTORE hEnum,
/* [out][in] */ LPFOLDERPROPS pProps);
HRESULT ( STDMETHODCALLTYPE *GetSubFolderClose )(
IStoreNamespace * This,
/* [in] */ HENUMSTORE hEnum);
END_INTERFACE
} IStoreNamespaceVtbl;
interface IStoreNamespace
{
CONST_VTBL struct IStoreNamespaceVtbl *lpVtbl;
};
#ifdef COBJMACROS
#define IStoreNamespace_QueryInterface(This,riid,ppvObject) \
( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) )
#define IStoreNamespace_AddRef(This) \
( (This)->lpVtbl -> AddRef(This) )
#define IStoreNamespace_Release(This) \
( (This)->lpVtbl -> Release(This) )
#define IStoreNamespace_Initialize(This,hwndOwner,dwReserved) \
( (This)->lpVtbl -> Initialize(This,hwndOwner,dwReserved) )
#define IStoreNamespace_GetDirectory(This,pszPath,cchMaxPath) \
( (This)->lpVtbl -> GetDirectory(This,pszPath,cchMaxPath) )
#define IStoreNamespace_OpenSpecialFolder(This,sfType,dwReserved,ppFolder) \
( (This)->lpVtbl -> OpenSpecialFolder(This,sfType,dwReserved,ppFolder) )
#define IStoreNamespace_OpenFolder(This,dwFolderId,dwReserved,ppFolder) \
( (This)->lpVtbl -> OpenFolder(This,dwFolderId,dwReserved,ppFolder) )
#define IStoreNamespace_CreateFolder(This,dwParentId,pszName,dwReserved,pdwFolderId) \
( (This)->lpVtbl -> CreateFolder(This,dwParentId,pszName,dwReserved,pdwFolderId) )
#define IStoreNamespace_RenameFolder(This,dwFolderId,dwReserved,pszNewName) \
( (This)->lpVtbl -> RenameFolder(This,dwFolderId,dwReserved,pszNewName) )
#define IStoreNamespace_MoveFolder(This,dwFolderId,dwParentId,dwReserved) \
( (This)->lpVtbl -> MoveFolder(This,dwFolderId,dwParentId,dwReserved) )
#define IStoreNamespace_DeleteFolder(This,dwFolderId,dwReserved) \
( (This)->lpVtbl -> DeleteFolder(This,dwFolderId,dwReserved) )
#define IStoreNamespace_GetFolderProps(This,dwFolderId,dwReserved,pProps) \
( (This)->lpVtbl -> GetFolderProps(This,dwFolderId,dwReserved,pProps) )
#define IStoreNamespace_CopyMoveMessages(This,pSource,pDest,pMsgIdList,dwFlags,dwFlagsRemove,pProgress) \
( (This)->lpVtbl -> CopyMoveMessages(This,pSource,pDest,pMsgIdList,dwFlags,dwFlagsRemove,pProgress) )
#define IStoreNamespace_RegisterNotification(This,dwReserved,hwnd) \
( (This)->lpVtbl -> RegisterNotification(This,dwReserved,hwnd) )
#define IStoreNamespace_UnregisterNotification(This,dwReserved,hwnd) \
( (This)->lpVtbl -> UnregisterNotification(This,dwReserved,hwnd) )
#define IStoreNamespace_CompactAll(This,dwReserved) \
( (This)->lpVtbl -> CompactAll(This,dwReserved) )
#define IStoreNamespace_GetFirstSubFolder(This,dwFolderId,pProps,phEnum) \
( (This)->lpVtbl -> GetFirstSubFolder(This,dwFolderId,pProps,phEnum) )
#define IStoreNamespace_GetNextSubFolder(This,hEnum,pProps) \
( (This)->lpVtbl -> GetNextSubFolder(This,hEnum,pProps) )
#define IStoreNamespace_GetSubFolderClose(This,hEnum) \
( (This)->lpVtbl -> GetSubFolderClose(This,hEnum) )
#endif /* COBJMACROS */
#endif /* C style interface */
/* [call_as] */ HRESULT STDMETHODCALLTYPE IStoreNamespace_GetFolderPropsRemote_Proxy(
IStoreNamespace * This,
/* [in] */ STOREFOLDERID dwFolderId,
/* [in] */ DWORD dwReserved,
/* [out][in] */ LPFOLDERPROPS pProps);
void __RPC_STUB IStoreNamespace_GetFolderPropsRemote_Stub(
IRpcStubBuffer *This,
IRpcChannelBuffer *_pRpcChannelBuffer,
PRPC_MESSAGE _pRpcMessage,
DWORD *_pdwStubPhase);
/* [call_as] */ HRESULT STDMETHODCALLTYPE IStoreNamespace_RegisterNotificationRemote_Proxy(
IStoreNamespace * This,
/* [in] */ DWORD dwReserved,
/* [in] */ IUnknown *pUnkObj);
void __RPC_STUB IStoreNamespace_RegisterNotificationRemote_Stub(
IRpcStubBuffer *This,
IRpcChannelBuffer *_pRpcChannelBuffer,
PRPC_MESSAGE _pRpcMessage,
DWORD *_pdwStubPhase);
#endif /* __IStoreNamespace_INTERFACE_DEFINED__ */
/* interface __MIDL_itf_msoeapi_0000_0002 */
/* [local] */
#endif // __LPSTORENAMESPACE_DEFINED
#ifndef __LPSTOREFOLDER_DEFINED
#define __LPSTOREFOLDER_DEFINED
extern RPC_IF_HANDLE __MIDL_itf_msoeapi_0000_0002_v0_0_c_ifspec;
extern RPC_IF_HANDLE __MIDL_itf_msoeapi_0000_0002_v0_0_s_ifspec;
#ifndef __IStoreFolder_INTERFACE_DEFINED__
#define __IStoreFolder_INTERFACE_DEFINED__
/* interface IStoreFolder */
/* [unique][uuid][object] */
typedef IStoreFolder *LPSTOREFOLDER;
#define MSG_DELETED 0x0001 // The message has been deleted, compaction will remove it
#define MSG_UNREAD 0x0002 // The message is marked as un-read
#define MSG_SUBMITTED 0x0004 // For messages waiting to be sent: OUTBOX ONLY
#define MSG_UNSENT 0x0008 // For msgs-in-progress saved to a folder
#define MSG_RECEIVED 0x0010 // For messages that came from a server
#define MSG_NEWSMSG 0x0020 // For news messages
#define MSG_NOSECUI 0x0040 // For messages where the user wants to die
#define MSG_VOICEMAIL 0x0080 // The message has the X-Voicemail header set...
#define MSG_REPLIED 0x0100 // The message has been replied to
#define MSG_FORWARDED 0x0200 // The message has been forwarded to
#define MSG_RCPTSENT 0x0400 // S/MIME Receipt has been sent
#define MSG_FLAGGED 0x0800 // The message is currently flaged
#define MSG_LAST 0x0200 // ** Keep this updated!! **
#define MSG_EXTERNAL_FLAGS 0x00fe
#define MSG_FLAGS 0x000f
typedef /* [transmit_as] */ DWORD MESSAGEPROPSSIZE;
typedef struct tagMESSAGEPROPS
{
MESSAGEPROPSSIZE cbSize;
DWORD dwReserved;
MESSAGEID dwMessageId;
DWORD dwLanguage;
DWORD dwState;
DWORD cbMessage;
IMSGPRIORITY priority;
FILETIME ftReceived;
FILETIME ftSent;
LPSTR pszSubject;
LPSTR pszDisplayTo;
LPSTR pszDisplayFrom;
LPSTR pszNormalSubject;
DWORD dwFlags;
IStream *pStmOffsetTable;
} MESSAGEPROPS;
typedef struct tagMESSAGEPROPS *LPMESSAGEPROPS;
struct HBATCHLOCK__
{
DWORD unused;
} ;
typedef /* [transmit_as] */ struct HBATCHLOCK__ *HBATCHLOCK;
typedef HBATCHLOCK *LPHBATCHLOCK;
#define MSGPROPS_FAST 0x00000001 // See MESSAGEPROPS structure, improved performance
#define COMMITSTREAM_REVERT 0x00000001 // Don't add this stream/message to the folder
EXTERN_C const IID IID_IStoreFolder;
#if defined(__cplusplus) && !defined(CINTERFACE)
MIDL_INTERFACE("E70C92AC-4BFD-11d1-8A95-00C04FB951F3")
IStoreFolder : public IUnknown
{
public:
virtual HRESULT STDMETHODCALLTYPE GetFolderProps(
/* [in] */ DWORD dwReserved,
/* [out][in] */ LPFOLDERPROPS pProps) = 0;
virtual /* [local] */ HRESULT STDMETHODCALLTYPE GetMessageProps(
/* [in] */ MESSAGEID dwMessageId,
/* [in] */ DWORD dwFlags,
/* [out][in] */ LPMESSAGEPROPS pProps) = 0;
virtual HRESULT STDMETHODCALLTYPE FreeMessageProps(
/* [out][in] */ LPMESSAGEPROPS pProps) = 0;
virtual HRESULT STDMETHODCALLTYPE DeleteMessages(
/* [in] */ LPMESSAGEIDLIST pMsgIdList,
/* [in] */ DWORD dwReserved,
/* [in] */ IProgressNotify *pProgress) = 0;
virtual HRESULT STDMETHODCALLTYPE SetLanguage(
/* [in] */ DWORD dwLanguage,
/* [in] */ DWORD dwReserved,
/* [in] */ LPMESSAGEIDLIST pMsgIdList) = 0;
virtual HRESULT STDMETHODCALLTYPE MarkMessagesAsRead(
/* [in] */ BOOL fRead,
/* [in] */ DWORD dwReserved,
/* [in] */ LPMESSAGEIDLIST pMsgIdList) = 0;
virtual /* [local] */ HRESULT STDMETHODCALLTYPE SetFlags(
/* [in] */ LPMESSAGEIDLIST pMsgIdList,
/* [in] */ DWORD dwState,
/* [in] */ DWORD dwStatemask,
/* [unique][out][in] */ LPDWORD prgdwNewFlags) = 0;
virtual /* [local] */ HRESULT STDMETHODCALLTYPE OpenMessage(
/* [in] */ MESSAGEID dwMessageId,
/* [in] */ REFIID riid,
/* [iid_is][out] */ LPVOID *ppvObject) = 0;
virtual /* [local] */ HRESULT STDMETHODCALLTYPE SaveMessage(
/* [in] */ REFIID riid,
/* [iid_is][in] */ LPVOID pvObject,
/* [in] */ DWORD dwMsgFlags,
/* [out] */ LPMESSAGEID pdwMessageId) = 0;
virtual HRESULT STDMETHODCALLTYPE BatchLock(
/* [in] */ DWORD dwReserved,
/* [out] */ LPHBATCHLOCK phBatchLock) = 0;
virtual HRESULT STDMETHODCALLTYPE BatchFlush(
/* [in] */ DWORD dwReserved,
/* [in] */ HBATCHLOCK hBatchLock) = 0;
virtual HRESULT STDMETHODCALLTYPE BatchUnlock(
/* [in] */ DWORD dwReserved,
/* [in] */ HBATCHLOCK hBatchLock) = 0;
virtual HRESULT STDMETHODCALLTYPE CreateStream(
/* [in] */ HBATCHLOCK hBatchLock,
/* [in] */ DWORD dwReserved,
/* [out] */ IStream **ppStream,
/* [out] */ LPMESSAGEID pdwMessageId) = 0;
virtual HRESULT STDMETHODCALLTYPE CommitStream(
/* [in] */ HBATCHLOCK hBatchLock,
/* [in] */ DWORD dwFlags,
/* [in] */ DWORD dwMsgFlags,
/* [in] */ IStream *pStream,
/* [in] */ MESSAGEID dwMessageId,
/* [in] */ IMimeMessage *pMessage) = 0;
virtual /* [local] */ HRESULT STDMETHODCALLTYPE RegisterNotification(
/* [in] */ DWORD dwReserved,
/* [in] */ HWND hwnd) = 0;
virtual HRESULT STDMETHODCALLTYPE UnregisterNotification(
/* [in] */ DWORD dwReserved,
/* [in] */ HWND hwnd) = 0;
virtual HRESULT STDMETHODCALLTYPE Compact(
/* [in] */ DWORD dwReserved) = 0;
virtual /* [local] */ HRESULT STDMETHODCALLTYPE GetFirstMessage(
/* [in] */ DWORD dwFlags,
/* [in] */ DWORD dwMsgFlags,
/* [in] */ MESSAGEID dwMsgIdFirst,
/* [out][in] */ LPMESSAGEPROPS pProps,
/* [out] */ LPHENUMSTORE phEnum) = 0;
virtual /* [local] */ HRESULT STDMETHODCALLTYPE GetNextMessage(
/* [in] */ HENUMSTORE hEnum,
/* [in] */ DWORD dwFlags,
/* [out][in] */ LPMESSAGEPROPS pProps) = 0;
virtual HRESULT STDMETHODCALLTYPE GetMessageClose(
/* [in] */ HENUMSTORE hEnum) = 0;
};
#else /* C style interface */
typedef struct IStoreFolderVtbl
{
BEGIN_INTERFACE
HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
IStoreFolder * This,
/* [in] */ REFIID riid,
/* [iid_is][out] */
__RPC__deref_out void **ppvObject);
ULONG ( STDMETHODCALLTYPE *AddRef )(
IStoreFolder * This);
ULONG ( STDMETHODCALLTYPE *Release )(
IStoreFolder * This);
HRESULT ( STDMETHODCALLTYPE *GetFolderProps )(
IStoreFolder * This,
/* [in] */ DWORD dwReserved,
/* [out][in] */ LPFOLDERPROPS pProps);
/* [local] */ HRESULT ( STDMETHODCALLTYPE *GetMessageProps )(
IStoreFolder * This,
/* [in] */ MESSAGEID dwMessageId,
/* [in] */ DWORD dwFlags,
/* [out][in] */ LPMESSAGEPROPS pProps);
HRESULT ( STDMETHODCALLTYPE *FreeMessageProps )(
IStoreFolder * This,
/* [out][in] */ LPMESSAGEPROPS pProps);
HRESULT ( STDMETHODCALLTYPE *DeleteMessages )(
IStoreFolder * This,
/* [in] */ LPMESSAGEIDLIST pMsgIdList,
/* [in] */ DWORD dwReserved,
/* [in] */ IProgressNotify *pProgress);
HRESULT ( STDMETHODCALLTYPE *SetLanguage )(
IStoreFolder * This,
/* [in] */ DWORD dwLanguage,
/* [in] */ DWORD dwReserved,
/* [in] */ LPMESSAGEIDLIST pMsgIdList);
HRESULT ( STDMETHODCALLTYPE *MarkMessagesAsRead )(
IStoreFolder * This,
/* [in] */ BOOL fRead,
/* [in] */ DWORD dwReserved,
/* [in] */ LPMESSAGEIDLIST pMsgIdList);
/* [local] */ HRESULT ( STDMETHODCALLTYPE *SetFlags )(
IStoreFolder * This,
/* [in] */ LPMESSAGEIDLIST pMsgIdList,
/* [in] */ DWORD dwState,
/* [in] */ DWORD dwStatemask,
/* [unique][out][in] */ LPDWORD prgdwNewFlags);
/* [local] */ HRESULT ( STDMETHODCALLTYPE *OpenMessage )(
IStoreFolder * This,
/* [in] */ MESSAGEID dwMessageId,
/* [in] */ REFIID riid,
/* [iid_is][out] */ LPVOID *ppvObject);
/* [local] */ HRESULT ( STDMETHODCALLTYPE *SaveMessage )(
IStoreFolder * This,
/* [in] */ REFIID riid,
/* [iid_is][in] */ LPVOID pvObject,
/* [in] */ DWORD dwMsgFlags,
/* [out] */ LPMESSAGEID pdwMessageId);
HRESULT ( STDMETHODCALLTYPE *BatchLock )(
IStoreFolder * This,
/* [in] */ DWORD dwReserved,
/* [out] */ LPHBATCHLOCK phBatchLock);
HRESULT ( STDMETHODCALLTYPE *BatchFlush )(
IStoreFolder * This,
/* [in] */ DWORD dwReserved,
/* [in] */ HBATCHLOCK hBatchLock);
HRESULT ( STDMETHODCALLTYPE *BatchUnlock )(
IStoreFolder * This,
/* [in] */ DWORD dwReserved,
/* [in] */ HBATCHLOCK hBatchLock);
HRESULT ( STDMETHODCALLTYPE *CreateStream )(
IStoreFolder * This,
/* [in] */ HBATCHLOCK hBatchLock,
/* [in] */ DWORD dwReserved,
/* [out] */ IStream **ppStream,
/* [out] */ LPMESSAGEID pdwMessageId);
HRESULT ( STDMETHODCALLTYPE *CommitStream )(
IStoreFolder * This,
/* [in] */ HBATCHLOCK hBatchLock,
/* [in] */ DWORD dwFlags,
/* [in] */ DWORD dwMsgFlags,
/* [in] */ IStream *pStream,
/* [in] */ MESSAGEID dwMessageId,
/* [in] */ IMimeMessage *pMessage);
/* [local] */ HRESULT ( STDMETHODCALLTYPE *RegisterNotification )(
IStoreFolder * This,
/* [in] */ DWORD dwReserved,
/* [in] */ HWND hwnd);
HRESULT ( STDMETHODCALLTYPE *UnregisterNotification )(
IStoreFolder * This,