forked from zeustrojancode/Zeus
-
Notifications
You must be signed in to change notification settings - Fork 0
/
mimeole.h
9272 lines (6806 loc) · 326 KB
/
mimeole.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 08:16:50 2010
*/
/* Compiler settings for mimeole.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 __mimeole_h__
#define __mimeole_h__
#if defined(_MSC_VER) && (_MSC_VER >= 1020)
#pragma once
#endif
/* Forward Declarations */
#ifndef __IMimeInternational_FWD_DEFINED__
#define __IMimeInternational_FWD_DEFINED__
typedef interface IMimeInternational IMimeInternational;
#endif /* __IMimeInternational_FWD_DEFINED__ */
#ifndef __IMimeSecurity_FWD_DEFINED__
#define __IMimeSecurity_FWD_DEFINED__
typedef interface IMimeSecurity IMimeSecurity;
#endif /* __IMimeSecurity_FWD_DEFINED__ */
#ifndef __IMimeHeaderTable_FWD_DEFINED__
#define __IMimeHeaderTable_FWD_DEFINED__
typedef interface IMimeHeaderTable IMimeHeaderTable;
#endif /* __IMimeHeaderTable_FWD_DEFINED__ */
#ifndef __IMimePropertySchema_FWD_DEFINED__
#define __IMimePropertySchema_FWD_DEFINED__
typedef interface IMimePropertySchema IMimePropertySchema;
#endif /* __IMimePropertySchema_FWD_DEFINED__ */
#ifndef __IMimePropertySet_FWD_DEFINED__
#define __IMimePropertySet_FWD_DEFINED__
typedef interface IMimePropertySet IMimePropertySet;
#endif /* __IMimePropertySet_FWD_DEFINED__ */
#ifndef __IMimeAddressTable_FWD_DEFINED__
#define __IMimeAddressTable_FWD_DEFINED__
typedef interface IMimeAddressTable IMimeAddressTable;
#endif /* __IMimeAddressTable_FWD_DEFINED__ */
#ifndef __IMimeAddressTableW_FWD_DEFINED__
#define __IMimeAddressTableW_FWD_DEFINED__
typedef interface IMimeAddressTableW IMimeAddressTableW;
#endif /* __IMimeAddressTableW_FWD_DEFINED__ */
#ifndef __IMimeWebDocument_FWD_DEFINED__
#define __IMimeWebDocument_FWD_DEFINED__
typedef interface IMimeWebDocument IMimeWebDocument;
#endif /* __IMimeWebDocument_FWD_DEFINED__ */
#ifndef __IMimeBody_FWD_DEFINED__
#define __IMimeBody_FWD_DEFINED__
typedef interface IMimeBody IMimeBody;
#endif /* __IMimeBody_FWD_DEFINED__ */
#ifndef __IMimeBodyW_FWD_DEFINED__
#define __IMimeBodyW_FWD_DEFINED__
typedef interface IMimeBodyW IMimeBodyW;
#endif /* __IMimeBodyW_FWD_DEFINED__ */
#ifndef __IMimeMessageTree_FWD_DEFINED__
#define __IMimeMessageTree_FWD_DEFINED__
typedef interface IMimeMessageTree IMimeMessageTree;
#endif /* __IMimeMessageTree_FWD_DEFINED__ */
#ifndef __IMimeMessage_FWD_DEFINED__
#define __IMimeMessage_FWD_DEFINED__
typedef interface IMimeMessage IMimeMessage;
#endif /* __IMimeMessage_FWD_DEFINED__ */
#ifndef __IMimeMessageW_FWD_DEFINED__
#define __IMimeMessageW_FWD_DEFINED__
typedef interface IMimeMessageW IMimeMessageW;
#endif /* __IMimeMessageW_FWD_DEFINED__ */
#ifndef __IMimeMessageCallback_FWD_DEFINED__
#define __IMimeMessageCallback_FWD_DEFINED__
typedef interface IMimeMessageCallback IMimeMessageCallback;
#endif /* __IMimeMessageCallback_FWD_DEFINED__ */
#ifndef __IPersistMime_FWD_DEFINED__
#define __IPersistMime_FWD_DEFINED__
typedef interface IPersistMime IPersistMime;
#endif /* __IPersistMime_FWD_DEFINED__ */
#ifndef __IMimeMessageParts_FWD_DEFINED__
#define __IMimeMessageParts_FWD_DEFINED__
typedef interface IMimeMessageParts IMimeMessageParts;
#endif /* __IMimeMessageParts_FWD_DEFINED__ */
#ifndef __IMimeEnumHeaderRows_FWD_DEFINED__
#define __IMimeEnumHeaderRows_FWD_DEFINED__
typedef interface IMimeEnumHeaderRows IMimeEnumHeaderRows;
#endif /* __IMimeEnumHeaderRows_FWD_DEFINED__ */
#ifndef __IMimeEnumProperties_FWD_DEFINED__
#define __IMimeEnumProperties_FWD_DEFINED__
typedef interface IMimeEnumProperties IMimeEnumProperties;
#endif /* __IMimeEnumProperties_FWD_DEFINED__ */
#ifndef __IMimeEnumAddressTypes_FWD_DEFINED__
#define __IMimeEnumAddressTypes_FWD_DEFINED__
typedef interface IMimeEnumAddressTypes IMimeEnumAddressTypes;
#endif /* __IMimeEnumAddressTypes_FWD_DEFINED__ */
#ifndef __IMimeEnumMessageParts_FWD_DEFINED__
#define __IMimeEnumMessageParts_FWD_DEFINED__
typedef interface IMimeEnumMessageParts IMimeEnumMessageParts;
#endif /* __IMimeEnumMessageParts_FWD_DEFINED__ */
#ifndef __IHashTable_FWD_DEFINED__
#define __IHashTable_FWD_DEFINED__
typedef interface IHashTable IHashTable;
#endif /* __IHashTable_FWD_DEFINED__ */
#ifndef __IMimeAllocator_FWD_DEFINED__
#define __IMimeAllocator_FWD_DEFINED__
typedef interface IMimeAllocator IMimeAllocator;
#endif /* __IMimeAllocator_FWD_DEFINED__ */
#ifndef __IMimeObjResolver_FWD_DEFINED__
#define __IMimeObjResolver_FWD_DEFINED__
typedef interface IMimeObjResolver IMimeObjResolver;
#endif /* __IMimeObjResolver_FWD_DEFINED__ */
#ifndef __IFontCache_FWD_DEFINED__
#define __IFontCache_FWD_DEFINED__
typedef interface IFontCache IFontCache;
#endif /* __IFontCache_FWD_DEFINED__ */
#ifndef __IFontCacheNotify_FWD_DEFINED__
#define __IFontCacheNotify_FWD_DEFINED__
typedef interface IFontCacheNotify IFontCacheNotify;
#endif /* __IFontCacheNotify_FWD_DEFINED__ */
#ifndef __IMimeEditTag_FWD_DEFINED__
#define __IMimeEditTag_FWD_DEFINED__
typedef interface IMimeEditTag IMimeEditTag;
#endif /* __IMimeEditTag_FWD_DEFINED__ */
#ifndef __IMimeEditTagCollection_FWD_DEFINED__
#define __IMimeEditTagCollection_FWD_DEFINED__
typedef interface IMimeEditTagCollection IMimeEditTagCollection;
#endif /* __IMimeEditTagCollection_FWD_DEFINED__ */
#ifndef __IMimeSecurityCallback_FWD_DEFINED__
#define __IMimeSecurityCallback_FWD_DEFINED__
typedef interface IMimeSecurityCallback IMimeSecurityCallback;
#endif /* __IMimeSecurityCallback_FWD_DEFINED__ */
#ifndef __IMimeSecurity2_FWD_DEFINED__
#define __IMimeSecurity2_FWD_DEFINED__
typedef interface IMimeSecurity2 IMimeSecurity2;
#endif /* __IMimeSecurity2_FWD_DEFINED__ */
#ifndef __INewsgroupHelp_FWD_DEFINED__
#define __INewsgroupHelp_FWD_DEFINED__
typedef interface INewsgroupHelp INewsgroupHelp;
#endif /* __INewsgroupHelp_FWD_DEFINED__ */
#ifndef __IHashTableW_FWD_DEFINED__
#define __IHashTableW_FWD_DEFINED__
typedef interface IHashTableW IHashTableW;
#endif /* __IHashTableW_FWD_DEFINED__ */
/* header files for imported files */
#include "ocidl.h"
#include "wincrypt.h"
#include "propidl.h"
#ifdef __cplusplus
extern "C"{
#endif
/* interface __MIDL_itf_mimeole_0000_0000 */
/* [local] */
#ifdef UNICODE
// Saving predefined unicode macros
#pragma push_macro("GetProp")
#pragma push_macro("SetProp")
#undef GetProp
#undef SetProp
#endif // UNICODE
#if (_WIN32_OE >= 0x0500)
#endif //_WIN32_OE
#if (_WIN32_OE >= 0x0700)
#endif //_WIN32_OE
//--------------------------------------------------------------------------------
// MIMEOLE.H
//--------------------------------------------------------------------------------
// (C) Copyright 1995-1998 Microsoft Corporation. All Rights Reserved.
//
// THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF
// ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO
// THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A
// PARTICULAR PURPOSE.
//--------------------------------------------------------------------------------
#pragma comment(lib,"uuid.lib")
// --------------------------------------------------------------------------------
// GUIDS
// --------------------------------------------------------------------------------
// {E4B28371-83B0-11d0-8259-00C04FD85AB4}
DEFINE_GUID(LIBID_MIMEOLE, 0xe4b28371, 0x83b0, 0x11d0, 0x82, 0x59, 0x0, 0xc0, 0x4f, 0xd8, 0x5a, 0xb4);
// {05300401-BCBC-11d0-85E3-00C04FD85AB4}
DEFINE_GUID(CLSID_IMimeHtmlProtocol, 0x5300401, 0xbcbc, 0x11d0, 0x85, 0xe3, 0x0, 0xc0, 0x4f, 0xd8, 0x5a, 0xb4);
// {C5588354-7F86-11d0-8252-00C04FD85AB4}
DEFINE_GUID(IID_IMimeEnumAddressTypes, 0xc5588354, 0x7f86, 0x11d0, 0x82, 0x52, 0x0, 0xc0, 0x4f, 0xd8, 0x5a, 0xb4);
// {EE519F11-851A-11d0-825C-00C04FD85AB4}
DEFINE_GUID(IID_IMimeWebDocument, 0xee519f11, 0x851a, 0x11d0, 0x82, 0x5c, 0x0, 0xc0, 0x4f, 0xd8, 0x5a, 0xb4);
// {FD853CEF-7F86-11d0-8252-00C04FD85AB4}
DEFINE_GUID(IID_IUnicodeStream, 0xfd853cef, 0x7f86, 0x11d0, 0x82, 0x52, 0x0, 0xc0, 0x4f, 0xd8, 0x5a, 0xb4);
// {C558834A-7F86-11d0-8252-00C04FD85AB4}
DEFINE_GUID(IID_IMimeAddressTable, 0xc558834a, 0x7f86, 0x11d0, 0x82, 0x52, 0x0, 0xc0, 0x4f, 0xd8, 0x5a, 0xb4);
// {11C8D742-0FB4-11d3-A01E-00A0C90C9BB6}
DEFINE_GUID(IID_IMimeAddressTableW, 0x11c8d742, 0xfb4, 0x11d3, 0xa0, 0x1e, 0x0, 0xa0, 0xc9, 0xc, 0x9b, 0xb6);
// {C558834B-7F86-11d0-8252-00C04FD85AB4}
DEFINE_GUID(IID_IMimeAddressInfo, 0xc558834b, 0x7f86, 0x11d0, 0x82, 0x52, 0x0, 0xc0, 0x4f, 0xd8, 0x5a, 0xb4);
// {C558834D-7F86-11d0-8252-00C04FD85AB4}
DEFINE_GUID(IID_IMimeEnumHeaderRows, 0xc558834d, 0x7f86, 0x11d0, 0x82, 0x52, 0x0, 0xc0, 0x4f, 0xd8, 0x5a, 0xb4);
// {C558834E-7F86-11d0-8252-00C04FD85AB4}
DEFINE_GUID(IID_IMimeInlineSupport, 0xc558834e, 0x7f86, 0x11d0, 0x82, 0x52, 0x0, 0xc0, 0x4f, 0xd8, 0x5a, 0xb4);
// {C5588350-7F86-11d0-8252-00C04FD85AB4}
DEFINE_GUID(IID_IMimeEnumMessageParts, 0xc5588350, 0x7f86, 0x11d0, 0x82, 0x52, 0x0, 0xc0, 0x4f, 0xd8, 0x5a, 0xb4);
// {FD853CD9-7F86-11d0-8252-00C04FD85AB4}
DEFINE_GUID(CLSID_IMimeInternational, 0xfd853cd9, 0x7f86, 0x11d0, 0x82, 0x52, 0x0, 0xc0, 0x4f, 0xd8, 0x5a, 0xb4);
// {C5588349-7F86-11d0-8252-00C04FD85AB4}
DEFINE_GUID(IID_IMimeInternational, 0xc5588349, 0x7f86, 0x11d0, 0x82, 0x52, 0x0, 0xc0, 0x4f, 0xd8, 0x5a, 0xb4);
// {FD853CDB-7F86-11d0-8252-00C04FD85AB4}
DEFINE_GUID(CLSID_IMimeBody, 0xfd853cdb, 0x7f86, 0x11d0, 0x82, 0x52, 0x0, 0xc0, 0x4f, 0xd8, 0x5a, 0xb4);
// {C558834C-7F86-11d0-8252-00C04FD85AB4}
DEFINE_GUID(IID_IMimeBody, 0xc558834c, 0x7f86, 0x11d0, 0x82, 0x52, 0x0, 0xc0, 0x4f, 0xd8, 0x5a, 0xb4);
// {2F38042A-D02F-11d2-A004-00A0C90C9BB6}
DEFINE_GUID(CLSID_IMimeBodyW, 0x2f38042a, 0xd02f, 0x11d2, 0xa0, 0x4, 0x0, 0xa0, 0xc9, 0xc, 0x9b, 0xb6);
// {2F38042B-D02F-11d2-A004-00A0C90C9BB6}
DEFINE_GUID(IID_IMimeBodyW, 0x2f38042b, 0xd02f, 0x11d2, 0xa0, 0x4, 0x0, 0xa0, 0xc9, 0xc, 0x9b, 0xb6);
// {FD853CDC-7F86-11d0-8252-00C04FD85AB4}
DEFINE_GUID(CLSID_IMimeMessageParts, 0xfd853cdc, 0x7f86, 0x11d0, 0x82, 0x52, 0x0, 0xc0, 0x4f, 0xd8, 0x5a, 0xb4);
// {C558834F-7F86-11d0-8252-00C04FD85AB4}
DEFINE_GUID(IID_IMimeMessageParts, 0xc558834f, 0x7f86, 0x11d0, 0x82, 0x52, 0x0, 0xc0, 0x4f, 0xd8, 0x5a, 0xb4);
// {FD853CDD-7F86-11d0-8252-00C04FD85AB4}
DEFINE_GUID(CLSID_IMimeAllocator, 0xfd853cdd, 0x7f86, 0x11d0, 0x82, 0x52, 0x0, 0xc0, 0x4f, 0xd8, 0x5a, 0xb4);
// {C5588351-7F86-11d0-8252-00C04FD85AB4}
DEFINE_GUID(IID_IMimeAllocator, 0xc5588351, 0x7f86, 0x11d0, 0x82, 0x52, 0x0, 0xc0, 0x4f, 0xd8, 0x5a, 0xb4);
// {FD853CDE-7F86-11d0-8252-00C04FD85AB4}
DEFINE_GUID(CLSID_IMimeSecurity, 0xfd853cde, 0x7f86, 0x11d0, 0x82, 0x52, 0x0, 0xc0, 0x4f, 0xd8, 0x5a, 0xb4);
// {C5588353-7F86-11d0-8252-00C04FD85AB4}
DEFINE_GUID(IID_IMimeSecurity, 0xc5588353, 0x7f86, 0x11d0, 0x82, 0x52, 0x0, 0xc0, 0x4f, 0xd8, 0x5a, 0xb4);
// {FD853CDF-7F86-11d0-8252-00C04FD85AB4}
DEFINE_GUID(CLSID_IVirtualStream, 0xfd853cdf, 0x7f86, 0x11d0, 0x82, 0x52, 0x0, 0xc0, 0x4f, 0xd8, 0x5a, 0xb4);
// {C5588359-7F86-11d0-8252-00C04FD85AB4}
DEFINE_GUID(IID_IVirtualStream, 0xc5588359, 0x7f86, 0x11d0, 0x82, 0x52, 0x0, 0xc0, 0x4f, 0xd8, 0x5a, 0xb4);
// {FD853CE0-7F86-11d0-8252-00C04FD85AB4}
DEFINE_GUID(CLSID_IMimeHeaderTable, 0xfd853ce0, 0x7f86, 0x11d0, 0x82, 0x52, 0x0, 0xc0, 0x4f, 0xd8, 0x5a, 0xb4);
// {FD853CD1-7F86-11d0-8252-00C04FD85AB4}
DEFINE_GUID(IID_IMimeHeaderTable, 0xfd853cd1, 0x7f86, 0x11d0, 0x82, 0x52, 0x0, 0xc0, 0x4f, 0xd8, 0x5a, 0xb4);
// {FD853CE1-7F86-11d0-8252-00C04FD85AB4}
DEFINE_GUID(CLSID_IMimePropertySet, 0xfd853ce1, 0x7f86, 0x11d0, 0x82, 0x52, 0x0, 0xc0, 0x4f, 0xd8, 0x5a, 0xb4);
// {FD853CD3-7F86-11d0-8252-00C04FD85AB4}
DEFINE_GUID(IID_IMimePropertySet, 0xfd853cd3, 0x7f86, 0x11d0, 0x82, 0x52, 0x0, 0xc0, 0x4f, 0xd8, 0x5a, 0xb4);
// {FD853CE2-7F86-11d0-8252-00C04FD85AB4}
DEFINE_GUID(CLSID_IMimeMessageTree, 0xfd853ce2, 0x7f86, 0x11d0, 0x82, 0x52, 0x0, 0xc0, 0x4f, 0xd8, 0x5a, 0xb4);
// {FD853CD4-7F86-11d0-8252-00C04FD85AB4}
DEFINE_GUID(IID_IMimeMessageTree, 0xfd853cd4, 0x7f86, 0x11d0, 0x82, 0x52, 0x0, 0xc0, 0x4f, 0xd8, 0x5a, 0xb4);
// {FD853CE3-7F86-11d0-8252-00C04FD85AB4}
DEFINE_GUID(CLSID_IMimeMessage, 0xfd853ce3, 0x7f86, 0x11d0, 0x82, 0x52, 0x0, 0xc0, 0x4f, 0xd8, 0x5a, 0xb4);
// {FD853CD5-7F86-11d0-8252-00C04FD85AB4}
DEFINE_GUID(IID_IMimeMessage, 0xfd853cd5, 0x7f86, 0x11d0, 0x82, 0x52, 0x0, 0xc0, 0x4f, 0xd8, 0x5a, 0xb4);
// {F90ADFEE-D01F-11d2-A004-00A0C90C9BB6}
DEFINE_GUID(CLSID_IMimeMessageW, 0xf90adfee, 0xd01f, 0x11d2, 0xa0, 0x4, 0x0, 0xa0, 0xc9, 0xc, 0x9b, 0xb6);
// {F90ADFEF-D01F-11d2-A004-00A0C90C9BB6}
DEFINE_GUID(IID_IMimeMessageW, 0xf90adfef, 0xd01f, 0x11d2, 0xa0, 0x4, 0x0, 0xa0, 0xc9, 0xc, 0x9b, 0xb6);
// {FD853CED-7F86-11d0-8252-00C04FD85AB4}
DEFINE_GUID(CLSID_IMimePropertySchema, 0xfd853ced, 0x7f86, 0x11d0, 0x82, 0x52, 0x0, 0xc0, 0x4f, 0xd8, 0x5a, 0xb4);
// {FD853CEC-7F86-11d0-8252-00C04FD85AB4}
DEFINE_GUID(IID_IMimePropertySchema, 0xfd853cec, 0x7f86, 0x11d0, 0x82, 0x52, 0x0, 0xc0, 0x4f, 0xd8, 0x5a, 0xb4);
// {FD853CEE-7F86-11d0-8252-00C04FD85AB4}
DEFINE_GUID(IID_IMimeEnumProperties, 0xfd853cee, 0x7f86, 0x11d0, 0x82, 0x52, 0x0, 0xc0, 0x4f, 0xd8, 0x5a, 0xb4);
// {DE4AD8DA-555F-11d1-8DD0-00C04FB951F9}
DEFINE_GUID(IID_IPersistMime, 0xde4ad8da, 0x555f, 0x11d1, 0x8d, 0xd0, 0x00, 0xc0, 0x4f, 0xb9, 0x51, 0xf9);
// {761AA641-7BDA-11d1-8AA9-00C04FB951F3}
DEFINE_GUID(IID_IMimeMessageCallback, 0x761aa641, 0x7bda, 0x11d1, 0x8a, 0xa9, 0x0, 0xc0, 0x4f, 0xb9, 0x51, 0xf3);
#if (_WIN32_OE >= 0x0500)
// {1C82EAD9-508E-11d1-8DCF-00C04FB951F9}
DEFINE_GUID(CLSID_MimeEdit, 0x1c82ead9, 0x508e, 0x11d1, 0x8d, 0xcf, 0x0, 0xc0, 0x4f, 0xb9, 0x51, 0xf9);
// {1C82EADA-508E-11d1-8DCF-00C04FB951F9}
DEFINE_GUID(CMDSETID_MimeEdit, 0x1c82eada, 0x508e, 0x11d1, 0x8d, 0xcf, 0x0, 0xc0, 0x4f, 0xb9, 0x51, 0xf9);
// {1C82EADB-508E-11d1-8DCF-00C04FB951F9}
DEFINE_GUID(CMDSETID_MimeEditHost, 0x1c82eadb, 0x508e, 0x11d1, 0x8d, 0xcf, 0x0, 0xc0, 0x4f, 0xb9, 0x51, 0xf9);
// {64577981-86D7-11d1-BDFC-00C04FA31009}
DEFINE_GUID(IID_IHashTable, 0x64577981, 0x86d7, 0x11d1, 0xbd, 0xfc, 0x0, 0xc0, 0x4f, 0xa3, 0x10, 0x9);
// {64577982-86D7-11d1-BDFC-00C04FA31009}
DEFINE_GUID(CLSID_IHashTable, 0x64577982, 0x86d7, 0x11d1, 0xbd, 0xfc, 0x0, 0xc0, 0x4f, 0xa3, 0x10, 0x9);
// {B0D17FC2-7BC4-11d1-BDFA-00C04FA31009}
DEFINE_GUID(CLSID_IFontCache, 0xb0d17fc2, 0x7bc4, 0x11d1, 0xbd, 0xfa, 0x0, 0xc0, 0x4f, 0xa3, 0x10, 0x9);
// {B0D17FC4-7BC4-11d1-BDFA-00C04FA31009}
DEFINE_GUID(IID_IFontCache, 0xb0d17fc4, 0x7bc4, 0x11d1, 0xbd, 0xfa, 0x0, 0xc0, 0x4f, 0xa3, 0x10, 0x9);
// {B0D17FC5-7BC4-11d1-BDFA-00C04FA31009}
DEFINE_GUID(IID_IFontCacheNotify, 0xb0d17fc5, 0x7bc4, 0x11d1, 0xbd, 0xfa, 0x0, 0xc0, 0x4f, 0xa3, 0x10, 0x9);
// {35461E30-C488-11d1-960E-00C04FBD7C09}
DEFINE_GUID(CLSID_IMimeObjResolver, 0x35461e30, 0xc488, 0x11d1, 0x96, 0xe, 0x0, 0xc0, 0x4f, 0xbd, 0x7c, 0x9);
// {FECEAFFD-C441-11d1-960E-00C04FBD7C09}
DEFINE_GUID(IID_IMimeObjResolver, 0xfeceaffd, 0xc441, 0x11d1, 0x96, 0xe, 0x0, 0xc0, 0x4f, 0xbd, 0x7c, 0x9);
// {70183210-7b36-11d2-8c12-00c04fa31009}
DEFINE_GUID(IID_IMimeEditTag, 0x70183210, 0x7b36, 0x11d2, 0x8c, 0x12, 0x00, 0xc0, 0x4f, 0xa3, 0x10, 0x09);
// {ba715ae0-a740-11d2-8b22-0080c76b34c6}
DEFINE_GUID(IID_IMimeSecurityCallback, 0xba715ae0, 0xa740, 0x11d2, 0x8b, 0x22, 0x00, 0x80, 0xc7, 0x6b, 0x34, 0xc6);
// {7A0CC021-2939-4379-AA82-12AECC3538F6}
DEFINE_GUID(CLSID_INewsgroupHelp, 0x7a0cc021, 0x2939, 0x4379, 0xaa, 0x82, 0x12, 0xae, 0xcc, 0x35, 0x38, 0xf6);
// {0887C54F-4F42-4937-81DA-BC9C97494627}
DEFINE_GUID(IID_INewsgroupHelp, 0x887c54f, 0x4f42, 0x4937, 0x81, 0xda, 0xbc, 0x9c, 0x97, 0x49, 0x46, 0x27);
// 71d6b38c-7a15-42c6-af84-b2a5dc242ceb
DEFINE_GUID(IID_IHashTableW, 0x71d6b38c, 0x7a15, 0x42c6, 0xaf, 0x84, 0xb2, 0xa5, 0xdc, 0x24, 0x2c, 0xeb);
// 71d6b38d-7a15-42c6-af84-b2a5dc242ceb
DEFINE_GUID(CLSID_IHashTableW, 0x71d6b38d, 0x7a15, 0x42c6, 0xaf, 0x84, 0xb2, 0xa5, 0xdc, 0x24, 0x2c, 0xeb);
// {d09ee528-7b38-11d2-8c12-00c04fa31009}
DEFINE_GUID(IID_IMimeEditTagCollection, 0xd09ee528, 0x7b38, 0x11d2, 0x8c, 0x12, 0x00, 0xc0, 0x4f, 0xa3, 0x10, 0x09);
// {b9815375-5d7f-4ce2-9245-c9d4da436930}
DEFINE_GUID(CLSID_PreviewEmail, 0xb9815375, 0x5d7f, 0x4ce2, 0x92, 0x45, 0xc9, 0xd4, 0xda, 0x43, 0x69, 0x30);
// {f8b8412b-dea3-4130-b36c-5e8be73106ac}
DEFINE_GUID(CLSID_PreviewHtml, 0xf8b8412b, 0xdea3, 0x4130, 0xb3, 0x6c, 0x5e, 0x8b, 0xe7, 0x31, 0x06, 0xac);
// {92dbad9f-5025-49b0-9078-2d78f935e341}
DEFINE_GUID(CLSID_PreviewMime, 0x92dbad9f, 0x5025, 0x49b0, 0x90, 0x78, 0x2d, 0x78, 0xf9, 0x35, 0xe3, 0x41);
#endif //_WIN32_OE
// --------------------------------------------------------------------------------
// Errors
// --------------------------------------------------------------------------------
#ifndef FACILITY_INTERNET
#define FACILITY_INTERNET 12
#endif // FACILITY_INTERNET
#ifndef HR_E
#define HR_E(n) MAKE_SCODE(SEVERITY_ERROR, FACILITY_INTERNET, n)
#endif // HR_E
#ifndef HR_S
#define HR_S(n) MAKE_SCODE(SEVERITY_SUCCESS, FACILITY_INTERNET, n)
#endif // HR_S
#ifndef HR_CODE
#define HR_CODE(hr) (INT)(hr & 0xffff)
#endif // HR_CODE
// --------------------------------------------------------------------------------
// MIMEOLE Failure Return Values
// --------------------------------------------------------------------------------
#define MIME_E_REG_CREATE_KEY HR_E(0xCE01)
#define MIME_E_REG_QUERY_INFO HR_E(0xCE02)
#define MIME_E_INVALID_ENCTYPE HR_E(0xCE03)
#define MIME_E_BOUNDARY_MISMATCH HR_E(0xCE04)
#define MIME_E_NOT_FOUND HR_E(0xCE05)
#define MIME_E_NO_DATA HR_E(0xCE05)
#define MIME_E_BUFFER_TOO_SMALL HR_E(0xCE06)
#define MIME_E_INVALID_ITEM_FLAGS HR_E(0xCE07)
#define MIME_E_ONE_LINE_ITEM HR_E(0xCE08)
#define MIME_E_INVALID_HANDLE HR_E(0xCE09)
#define MIME_E_CHARSET_TRANSLATE HR_E(0xCE0A)
#define MIME_E_NOT_INITIALIZED HR_E(0xCE0B)
#define MIME_E_NO_MORE_ROWS HR_E(0xCE0C)
#define MIME_E_ALREADY_BOUND HR_E(0xCE0D)
#define MIME_E_CANT_RESET_ROOT HR_E(0xCE0E)
#define MIME_E_INSERT_NOT_ALLOWED HR_E(0xCE0F)
#define MIME_E_BAD_BODY_LOCATION HR_E(0xCE10)
#define MIME_E_NOT_MULTIPART HR_E(0xCE11)
#define MIME_E_NO_MULTIPART_BOUNDARY HR_E(0xCE12)
#define MIME_E_CONVERT_NOT_NEEDED HR_E(0xCE13)
#define MIME_E_CANT_MOVE_BODY HR_E(0xCE14)
#define MIME_E_UNKNOWN_BODYTREE_VERSION HR_E(0xCE15)
#define MIME_E_NOTHING_TO_SAVE HR_E(0xCE16)
#define MIME_E_NEED_SAVE_MESSAGE HR_E(0xCE17)
#define MIME_E_NOTHING_TO_REVERT HR_E(0xCE18)
#define MIME_E_MSG_SIZE_DIFF HR_E(0xCE19)
#define MIME_E_CANT_RESET_PARENT HR_E(0xCE1A)
#define MIME_E_CORRUPT_CACHE_TREE HR_E(0xCE1B)
#define MIME_E_BODYTREE_OUT_OF_SYNC HR_E(0xCE1C)
#define MIME_E_INVALID_ENCODINGTYPE HR_E(0xCE1D)
#define MIME_E_MULTIPART_NO_DATA HR_E(0xCE1E)
#define MIME_E_INVALID_OPTION_VALUE HR_E(0xCE1F)
#define MIME_E_INVALID_OPTION_ID HR_E(0xCE20)
#define MIME_E_INVALID_HEADER_NAME HR_E(0xCE21)
#define MIME_E_NOT_BOUND HR_E(0xCE22)
#define MIME_E_MAX_SIZE_TOO_SMALL HR_E(0xCE23)
#define MIME_E_MULTIPART_HAS_CHILDREN HR_E(0xCE25)
#define MIME_E_INVALID_PROP_FLAGS HR_E(0xCE26)
#define MIME_E_INVALID_ADDRESS_TYPE HR_E(0xCE27)
#define MIME_E_INVALID_OBJECT_IID HR_E(0xCE28)
#define MIME_E_MLANG_DLL_NOT_FOUND HR_E(0xCE29)
#define MIME_E_ROOT_NOT_EMPTY HR_E(0xCE2A)
#define MIME_E_MLANG_BAD_DLL HR_E(0xCE2B)
#define MIME_E_REG_OPEN_KEY HR_E(0xCE2C)
#define MIME_E_INVALID_INET_DATE HR_E(0xCE2D)
#define MIME_E_INVALID_BODYTYPE HR_E(0xCE2E)
#define MIME_E_INVALID_DELETE_TYPE HR_E(0xCE2F)
#define MIME_E_OPTION_HAS_NO_VALUE HR_E(0xCE30)
#define MIME_E_INVALID_CHARSET_TYPE HR_E(0xCE31)
#define MIME_E_VARTYPE_NO_CONVERT HR_E(0xCE32)
#define MIME_E_INVALID_VARTYPE HR_E(0xCE33)
#define MIME_E_NO_MORE_ADDRESS_TYPES HR_E(0xCE34)
#define MIME_E_INVALID_ENCODING_TYPE HR_E(0xCE35)
#define MIME_S_ILLEGAL_LINES_FOUND HR_S(0xCE36)
#define MIME_S_MIME_VERSION HR_S(0xCE37)
#define MIME_E_INVALID_TEXT_TYPE HR_E(0xCE38)
#define MIME_E_READ_ONLY HR_E(0xCE39)
#define MIME_S_INVALID_MESSAGE HR_S(0xCE3A)
#define MIME_S_CHARSET_CONFLICT HR_S(0xCE3B)
#define MIME_E_UNSUPPORTED_VARTYPE HR_E(0xCE3C)
#define MIME_S_NO_CHARSET_CONVERT HR_S(0xCE3D)
#define MIME_E_URL_NOTFOUND HR_E(0xCE3E)
#define MIME_E_BAD_TEXT_DATA HR_E(0xCE3F)
#define MIME_E_NO_SIGNER HR_S(0xCE40)
// ---------------------------------------------------------------------------
// MIMEOLE Security Error Return Values
// ---------------------------------------------------------------------------
#define MIME_E_SECURITY_NOTINIT HR_E(0xCEA0)
#define MIME_E_SECURITY_LOADCRYPT32 HR_E(0xCEA1)
#define MIME_E_SECURITY_BADPROCADDR HR_E(0xCEA2)
#define MIME_E_SECURITY_NODEFAULT HR_E(0xCEB0)
#define MIME_E_SECURITY_NOOP HR_E(0xCEB1)
#define MIME_S_SECURITY_NOOP HR_S(0xCEB1)
#define MIME_S_SECURITY_NONE HR_S(0xCEB2)
#define MIME_S_SECURITY_ERROROCCURED HR_S(0xCEB3)
#define MIME_E_SECURITY_USERCHOICE HR_E(0xCEB4)
#define MIME_E_SECURITY_UNKMSGTYPE HR_E(0xCEB5)
#define MIME_E_SECURITY_BADMESSAGE HR_E(0xCEB6)
#define MIME_E_SECURITY_BADCONTENT HR_E(0xCEB7)
#define MIME_E_SECURITY_BADSECURETYPE HR_E(0xCEB8)
#define MIME_E_SECURITY_CLASSNOTSUPPORTED HR_E(0xCEB9)
#define MIME_S_SECURITY_RECURSEONLY HR_S(0xCEBA)
#define MIME_E_SECURITY_BADSTORE HR_E(0xCED0)
#define MIME_S_SECURITY_NOCERT HR_S(0xCED1)
#define MIME_E_SECURITY_NOCERT HR_E(0xCED1)
#define MIME_E_SECURITY_CERTERROR HR_E(0xCED2)
#define MIME_S_SECURITY_CERTERROR HR_S(0xCED2)
#define MIME_S_SECURITY_NODEFCERT HR_S(0xCED3)
#define MIME_E_SECURITY_BADSIGNATURE HR_E(0xCEE0)
#define MIME_E_SECURITY_MULTSIGNERS HR_E(0xCEE1)
#define MIME_E_SECURITY_NOSIGNINGCERT HR_E(0xCEE2)
#define MIME_E_SECURITY_CANTDECRYPT HR_E(0xCEF0)
#define MIME_E_SECURITY_ENCRYPTNOSENDERCERT HR_E(0xCEF1)
#define MIME_S_SECURITY_NOSENDERCERT HR_S(0xCEF2)
#define MIME_E_SECURITY_LABELACCESSDENIED HR_E(0xCEF3)
#define MIME_E_SECURITY_LABELACCESSCANCELLED HR_E(0xCEF4)
#define MIME_E_SECURITY_LABELCORRUPT HR_E(0xCEF5)
#define MIME_E_SECURITY_UIREQUIRED HR_E(0xCEF6)
#define MIME_E_SECURITY_RECEIPT_NOMATCHINGRECEIPTBODY HR_E(0xCEF7)
#define MIME_E_SECURITY_RECEIPT_MSGHASHMISMATCH HR_E(0xCEF8)
#define MIME_E_SECURITY_RECEIPT_CANTDECODE HR_E(0xCEF9)
#define MIME_E_SECURITY_RECEIPT_CANTFINDSENTITEM HR_E(0xCEFA)
#define MIME_E_SECURITY_RECEIPT_CANTFINDORGMSG HR_E(0xCEFB)
#define MIME_E_SECURITY_LABELUIREQUIRED HR_E(0xCEFC)
#define MIME_S_RECEIPT_FROMMYSELF HR_S(0xCEFC)
#define MIME_E_SECURITY_NOTIMPLEMENTED HR_E(0xCEFD)
#if (_WIN32_OE >= 0x0500)
// --------------------------------------------------------------------------------
// MIMEEDIT Failure Return Values
// --------------------------------------------------------------------------------
#define MIMEEDIT_E_UNEXPECTED HR_E(0x1700)
#define MIMEEDIT_E_DODEFAULT HR_E(0x1701)
#define MIMEEDIT_E_LOADLIBRARYFAILURE HR_E(0x1702)
#define MIMEEDIT_E_USERCANCEL HR_E(0x1703)
#define MIMEEDIT_E_CHARSETNOTFOUND HR_E(0x1704)
#define MIMEEDIT_E_ILLEGALBODYFORMAT HR_E(0x1705)
#define MIMEEDIT_E_CANNOTSAVEUNTILPARSECOMPLETE HR_E(0x1706)
#define MIMEEDIT_E_CANNOTSAVEWHILESOURCEEDITING HR_E(0x1707)
// --------------------------------------------------------------------------------
// MIMEEDIT Success Return Values
// --------------------------------------------------------------------------------
#define MIMEEDIT_S_OPENFILE HR_S(0x1750)
#define MIMEEDIT_S_SAVEFILE HR_S(0x1751)
// --------------------------------------------------------------------------------
// MIMEEDIT Warning Return Values
// --------------------------------------------------------------------------------
#define MIMEEDIT_W_DOWNLOADNOTCOMPLETE HR_S(0x1760)
#define MIMEEDIT_W_BADURLSNOTATTACHED HR_S(0x1761)
#endif //_WIN32_OE
// --------------------------------------------------------------------------------
// String Definition Macros
// --------------------------------------------------------------------------------
#ifdef __cplusplus
#define EXTERN_C extern "C"
#else
#define EXTERN_C extern
#endif // __cplusplus
#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 // DEFINE_STRCONST
#endif // STRCONSTA
// --------------------------------------------------------------------------------
// rfc822 Headers
// --------------------------------------------------------------------------------
STRCONSTA(STR_HDR_FROM, "From");
STRCONSTA(STR_HDR_TO, "To");
STRCONSTA(STR_HDR_CC, "Cc");
STRCONSTA(STR_HDR_BCC, "Bcc");
STRCONSTA(STR_HDR_SENDER, "Sender");
STRCONSTA(STR_HDR_REPLYTO, "Reply-To");
STRCONSTA(STR_HDR_RETURNPATH, "Return-Path");
STRCONSTA(STR_HDR_RR, "Rr");
STRCONSTA(STR_HDR_RETRCPTTO, "Return-Receipt-To");
STRCONSTA(STR_HDR_APPARTO, "Apparently-To");
STRCONSTA(STR_HDR_DATE, "Date");
STRCONSTA(STR_HDR_RECEIVED, "Received");
STRCONSTA(STR_HDR_MESSAGEID, "Message-ID");
STRCONSTA(STR_HDR_XMAILER, "X-Mailer");
STRCONSTA(STR_HDR_ENCODING, "Encoding");
STRCONSTA(STR_HDR_ENCRYPTED, "Encrypted");
STRCONSTA(STR_HDR_COMMENT, "Comment");
STRCONSTA(STR_HDR_SUBJECT, "Subject");
STRCONSTA(STR_HDR_MIMEVER, "MIME-Version");
STRCONSTA(STR_HDR_CNTTYPE, "Content-Type");
STRCONSTA(STR_HDR_CNTXFER, "Content-Transfer-Encoding");
STRCONSTA(STR_HDR_CNTID, "Content-ID");
STRCONSTA(STR_HDR_CNTDESC, "Content-Description");
STRCONSTA(STR_HDR_CNTDISP, "Content-Disposition");
STRCONSTA(STR_HDR_CNTBASE, "Content-Base");
STRCONSTA(STR_HDR_CNTLOC, "Content-Location");
STRCONSTA(STR_HDR_NEWSGROUPS, "Newsgroups");
STRCONSTA(STR_HDR_PATH, "Path");
STRCONSTA(STR_HDR_FOLLOWUPTO, "Followup-To");
STRCONSTA(STR_HDR_EXPIRES, "Expires");
STRCONSTA(STR_HDR_REFS, "References");
#if _WIN32_WINNT >= 0x0600
STRCONSTA(STR_HDR_INREPLYTO, "In-Reply-To");
STRCONSTA(STR_HDR_CONTROL, "Control");
#endif // _WIN32_WINNT >= 0x0600
STRCONSTA(STR_HDR_DISTRIB, "Distribution");
STRCONSTA(STR_HDR_KEYWORDS, "Keywords");
STRCONSTA(STR_HDR_SUMMARY, "Summary");
STRCONSTA(STR_HDR_APPROVED, "Approved");
STRCONSTA(STR_HDR_LINES, "Lines");
STRCONSTA(STR_HDR_XREF, "Xref");
STRCONSTA(STR_HDR_ORG, "Organization");
STRCONSTA(STR_HDR_XNEWSRDR, "X-Newsreader");
STRCONSTA(STR_HDR_XPRI, "X-Priority");
STRCONSTA(STR_HDR_XMSPRI, "X-MSMail-Priority");
STRCONSTA(STR_HDR_OFFSETS, "X-Offsets");
STRCONSTA(STR_HDR_XUNSENT, "X-Unsent");
STRCONSTA(STR_HDR_ARTICLEID, "X-ArticleId");
STRCONSTA(STR_HDR_NEWSGROUP, "X-Newsgroup");
STRCONSTA(STR_HDR_XVOICEMAIL, "X-VoiceMail");
STRCONSTA(STR_HDR_XMSOESREC, "X-MSOESRec");
// --------------------------------------------------------------------------------
// rfc2646 Headers
// --------------------------------------------------------------------------------
STRCONSTA(STR_HDR_XRFC2646, "X-RFC2646");
STRCONSTA(STR_HDR_XRFC2646_FLOWED, "Format=Flowed");
STRCONSTA(STR_HDR_XRFC2646_RESPONSE, "Response");
STRCONSTA(STR_HDR_XRFC2646_NEW, "Original");
// --------------------------------------------------------------------------------
// Communities Headers
// --------------------------------------------------------------------------------
STRCONSTA(STR_HDR_POSTID, "X-MS-CommunityGroup-PostID");
STRCONSTA(STR_HDR_MESSAGECATEGORY, "X-MS-CommunityGroup-MessageCategory");
STRCONSTA(STR_HDR_THREADID, "X-MS-CommunityGroup-ThreadID");
STRCONSTA(STR_HDR_PARENTID, "X-MS-CommunityGroup-ParentID");
// --------------------------------------------------------------------------------
// --------------------------------------------------------------------------------
// Parameters Available through IMimePropertySet/IMimeBody
// --------------------------------------------------------------------------------
STRCONSTA(STR_PAR_CHARSET, "par:content-type:charset");
STRCONSTA(STR_PAR_NUMBER, "par:content-type:number");
STRCONSTA(STR_PAR_TOTAL, "par:content-type:total");
STRCONSTA(STR_PAR_ID, "par:content-type:id");
STRCONSTA(STR_PAR_BOUNDARY, "par:content-type:boundary");
STRCONSTA(STR_PAR_NAME, "par:content-type:name");
STRCONSTA(STR_PAR_PROTOCOL, "par:content-type:protocol");
STRCONSTA(STR_PAR_MICALG, "par:content-type:micalg");
STRCONSTA(STR_PAR_FILENAME, "par:content-disposition:filename");
STRCONSTA(STR_PAR_TYPE, "par:content-type:type");
STRCONSTA(STR_PAR_START, "par:content-type:start");
#if (_WIN32_OE >= 0x0500)
STRCONSTA(STR_PAR_ACCESSTYPE, "par:content-type:access-type");
STRCONSTA(STR_PAR_XURL, "par:content-type:X-URL");
STRCONSTA(STR_PAR_SIZE, "par:content-type:size");
STRCONSTA(STR_PAR_SMIMETYPE, "par:content-type:smime-type");
STRCONSTA(STR_PAR_REPORTTYPE, "par:Content-Type:report-type");
STRCONSTA(STR_PAR_FORMAT, "par:Content-Type:format");
STRCONSTA(STR_PAR_REPLYTYPE, "par:Content-Type:reply-type");
#endif // _WIN32_OE
// --------------------------------------------------------------------------------
// Attributes Available through IMimePropertySet/IMimeBody
// --------------------------------------------------------------------------------
STRCONSTA(STR_ATT_FILENAME, "att:filename");
STRCONSTA(STR_ATT_GENFNAME, "att:generated-filename");
STRCONSTA(STR_ATT_PRITYPE, "att:pri-content-type");
STRCONSTA(STR_ATT_SUBTYPE, "att:sub-content-type");
STRCONSTA(STR_ATT_NORMSUBJ, "att:normalized-subject");
STRCONSTA(STR_ATT_ILLEGAL, "att:illegal-lines");
STRCONSTA(STR_ATT_RENDERED, "att:rendered"); // VT_UI4 - TRUE or FALSE
STRCONSTA(STR_ATT_AUTOINLINED, "att:auto-inlined"); // VT_UI4 - TRUE or FALSE
STRCONSTA(STR_ATT_SENTTIME, "att:sent-time");
STRCONSTA(STR_ATT_RECVTIME, "att:received-time");
STRCONSTA(STR_ATT_PRIORITY, "att:priority");
STRCONSTA(STR_ATT_SERVER, "att:athena-server"); // VT_LPSTR
STRCONSTA(STR_ATT_FORMAT, "att:format"); // VT_LPSTR
STRCONSTA(STR_ATT_ACCOUNTNAME, "att:athena-account-name"); // VT_LPSTR
STRCONSTA(STR_ATT_UIDL, "att:athena-pop3-uidl"); // VT_LPSTR
STRCONSTA(STR_ATT_STOREMSGID, "att:athena-store-msgid"); // VT_UI4
STRCONSTA(STR_ATT_USERNAME, "att:athena-user-name"); // VT_LPSTR
STRCONSTA(STR_ATT_FORWARDTO, "att:athena-forward-to"); // VT_LPSTR
STRCONSTA(STR_ATT_STOREFOLDERID, "att:athena-store-fdrid"); // VT_UI4
STRCONSTA(STR_ATT_GHOSTED, "att:athena-ghosted"); // VT_I4
STRCONSTA(STR_ATT_UNCACHEDSIZE, "att:athena-uncachedsize"); // VT_UI4
STRCONSTA(STR_ATT_COMBINED, "att:athena-combined"); // VT_UI4
STRCONSTA(STR_ATT_ACCOUNTID, "att:athena-account-id"); // VT_LPSTR
// --------------------------------------------------------------------------------
// MIME Content Types
// --------------------------------------------------------------------------------
STRCONSTA(STR_MIME_TEXT_PLAIN, "text/plain");
STRCONSTA(STR_MIME_TEXT_HTML, "text/html");
STRCONSTA(STR_MIME_APPL_STREAM, "application/octet-stream");
STRCONSTA(STR_MIME_MPART_MIXED, "multipart/mixed");
STRCONSTA(STR_MIME_MPART_ALT, "multipart/alternative");
STRCONSTA(STR_MIME_MPART_RELATED, "multipart/related");
STRCONSTA(STR_MIME_MSG_PART, "message/partial");
STRCONSTA(STR_MIME_MSG_RFC822, "message/rfc822");
STRCONSTA(STR_MIME_APPLY_MSTNEF, "application/ms-tnef");
STRCONSTA(STR_MIME_APPL_PKCS7SIG, "application/x-pkcs7-signature");
STRCONSTA(STR_MIME_APPL_PKCS7SIG_1, "application/pkcs7-signature");
STRCONSTA(STR_MIME_TEXT_ENRCICHED, "text/enriched");
// --------------------------------------------------------------------------------
// MIME Primary Content Types
// --------------------------------------------------------------------------------
STRCONSTA(STR_CNT_TEXT, "text");
STRCONSTA(STR_CNT_MULTIPART, "multipart");
STRCONSTA(STR_CNT_MESSAGE, "message");
STRCONSTA(STR_CNT_IMAGE, "image");
STRCONSTA(STR_CNT_AUDIO, "audio");
STRCONSTA(STR_CNT_VIDEO, "video");
STRCONSTA(STR_CNT_APPLICATION, "application");
STRCONSTW(STR_CNT_APPLICATIONW, "application");
// --------------------------------------------------------------------------------
// MIME Secondary Content Types
// --------------------------------------------------------------------------------
STRCONSTA(STR_SUB_PLAIN, "plain");
STRCONSTA(STR_SUB_HTML, "html");
STRCONSTA(STR_SUB_ENRICHED, "enriched");
STRCONSTA(STR_SUB_RTF, "ms-rtf");
STRCONSTA(STR_SUB_MIXED, "mixed");
STRCONSTA(STR_SUB_PARALLEL, "parallel");
STRCONSTA(STR_SUB_DIGEST, "digest");
STRCONSTA(STR_SUB_RELATED, "related");
STRCONSTA(STR_SUB_ALTERNATIVE, "alternative");
STRCONSTA(STR_SUB_RFC822, "rfc822");
STRCONSTA(STR_SUB_PARTIAL, "partial");
STRCONSTA(STR_SUB_EXTERNAL, "external-body");
STRCONSTA(STR_SUB_OCTETSTREAM, "octet-stream");
STRCONSTW(STR_SUB_OCTETSTREAMW, "octet-stream");
STRCONSTA(STR_SUB_POSTSCRIPT, "postscript");
STRCONSTA(STR_SUB_GIF, "gif");
STRCONSTA(STR_SUB_JPEG, "jpeg");
STRCONSTA(STR_SUB_BASIC, "basic");
STRCONSTA(STR_SUB_MPEG, "mpeg");
STRCONSTA(STR_SUB_MSTNEF, "ms-tnef");
STRCONSTA(STR_SUB_MSWORD, "msword");
STRCONSTA(STR_SUB_WAV, "wav");
STRCONSTA(STR_SUB_PKCS7MIME, "pkcs7-mime"); // non-standard
STRCONSTA(STR_SUB_PKCS7SIG, "pkcs7-signature"); // non-standard
STRCONSTA(STR_SUB_XPKCS7MIME, "x-pkcs7-mime");
STRCONSTA(STR_SUB_XPKCS7SIG, "x-pkcs7-signature");
STRCONSTA(STR_SUB_SIGNED, "signed");
STRCONSTA(STR_SUB_BINHEX, "mac-binhex40");
STRCONSTA(STR_SUB_VCARD, "x-vcard");
// --------------------------------------------------------------------------------
// MIME Content-Transfer-Encoding Types
// --------------------------------------------------------------------------------
STRCONSTA(STR_ENC_7BIT, "7bit");
STRCONSTA(STR_ENC_QP, "quoted-printable");
STRCONSTA(STR_ENC_BASE64, "base64");
STRCONSTA(STR_ENC_8BIT, "8bit");
STRCONSTA(STR_ENC_BINARY, "binary");
STRCONSTA(STR_ENC_UUENCODE, "uuencode");
STRCONSTA(STR_ENC_XUUENCODE, "x-uuencode");
STRCONSTA(STR_ENC_XUUE, "x-uue");
STRCONSTA(STR_ENC_BINHEX40, "mac-binhex40");
// --------------------------------------------------------------------------------
// MIME Content-Type Format and ReplyType Values
// --------------------------------------------------------------------------------
STRCONSTA(STR_FORMAT_FLOWED, "flowed");
STRCONSTA(STR_REPLYTYPE_ORIGINAL, "original");
STRCONSTA(STR_REPLYTYPE_RESPONSE, "response");
// --------------------------------------------------------------------------------
// MIME Content-Disposition Types
// --------------------------------------------------------------------------------
STRCONSTA(STR_DIS_INLINE, "inline");
STRCONSTA(STR_DIS_ATTACHMENT, "attachment");
STRCONSTW(STR_DIS_ATTACHMENTW, "attachment");
// --------------------------------------------------------------------------------
// MIME Protocol Types
// --------------------------------------------------------------------------------
STRCONSTA(STR_PRO_SHA1, "sha1");
STRCONSTA(STR_PRO_MD5, "rsa-md5");
// --------------------------------------------------------------------------------
// Known Priority Strings
// --------------------------------------------------------------------------------
STRCONSTA(STR_PRI_MS_HIGH, "High");
STRCONSTA(STR_PRI_MS_NORMAL, "Normal");
STRCONSTA(STR_PRI_MS_LOW, "Low");
STRCONSTA(STR_PRI_HIGH, "1");
STRCONSTA(STR_PRI_NORMAL, "3");
STRCONSTA(STR_PRI_LOW, "5");
STRCONSTA(STR_HDR_ORIG_RECIPIENT, "Original-Recipient");
STRCONSTA(STR_HDR_DISP_NOTIFICATION_TO, "Disposition-Notification-To");
// --------------------------------------------------------------------------------
// IMimeMessage IDataObject clipboard formats (also include CF_TEXT)
// --------------------------------------------------------------------------------
STRCONSTA(STR_CF_HTML, "HTML Format");
STRCONSTA(STR_CF_INETMSG, "Internet Message (rfc822/rfc1522)");
STRCONSTA(STR_CF_RFC822, "message/rfc822");
// --------------------------------------------------------------------------------
// SMime-Type strings
// --------------------------------------------------------------------------------
STRCONSTA(STR_SMT_SIGNEDDATA, "signed-data");
STRCONSTA(STR_SMT_ENVELOPEDDATA, "enveloped-data");
STRCONSTA(STR_SMT_SIGNEDRECEIPT, "signed-receipt");
// --------------------------------------------------------------------------------
// PIDSTRING - Use in GetProp, SetProp, QueryProp, DeleteProp
// --------------------------------------------------------------------------------
#define PID_BASE 2
#define PIDTOSTR(_dwPropId) ((LPCSTR)((DWORD_PTR)(_dwPropId)))
#define STRTOPID(_pszName) ((DWORD)((DWORD_PTR)((LPCSTR)(_pszName))))
#define ISPIDSTR(_pszName) ((HIWORD((DWORD_PTR)(_pszName)) == 0))
#define ISKNOWNPID(_dwPropId) (_dwPropId >= PID_BASE && _dwPropId < PID_LAST)
// --------------------------------------------------------------------------------
// Mime Property Ids
// --------------------------------------------------------------------------------
typedef enum tagMIMEPROPID {
PID_HDR_NEWSGROUP = 2,
PID_HDR_NEWSGROUPS = 3,
PID_HDR_REFS = 4,
PID_HDR_SUBJECT = 5,
PID_HDR_FROM = 6,
PID_HDR_MESSAGEID = 7,
PID_HDR_RETURNPATH = 8,
PID_HDR_RR = 9,
PID_HDR_RETRCPTTO = 10,
PID_HDR_APPARTO = 11,
PID_HDR_DATE = 12,
PID_HDR_RECEIVED = 13,
PID_HDR_REPLYTO = 14,
PID_HDR_XMAILER = 15,
PID_HDR_BCC = 16,
PID_HDR_MIMEVER = 17,
PID_HDR_CNTTYPE = 18,
PID_HDR_CNTXFER = 19,
PID_HDR_CNTID = 20,
PID_HDR_CNTDESC = 21,
PID_HDR_CNTDISP = 22,
PID_HDR_CNTBASE = 23,
PID_HDR_CNTLOC = 24,
PID_HDR_TO = 25,
PID_HDR_PATH = 26,
PID_HDR_FOLLOWUPTO = 27,
PID_HDR_EXPIRES = 28,
PID_HDR_CC = 29,
PID_HDR_CONTROL = 30,
PID_HDR_DISTRIB = 31,
PID_HDR_KEYWORDS = 32,
PID_HDR_SUMMARY = 33,
PID_HDR_APPROVED = 34,
PID_HDR_LINES = 35,
PID_HDR_XREF = 36,
PID_HDR_ORG = 37,
PID_HDR_XNEWSRDR = 38,
PID_HDR_XPRI = 39,
PID_HDR_XMSPRI = 40,
PID_PAR_FILENAME = 41,
PID_PAR_BOUNDARY = 42,
PID_PAR_CHARSET = 43,
PID_PAR_NAME = 44,
PID_ATT_FILENAME = 45,
PID_ATT_GENFNAME = 46,
PID_ATT_PRITYPE = 47,
PID_ATT_SUBTYPE = 48,
PID_ATT_NORMSUBJ = 49,
PID_ATT_ILLEGAL = 50,
PID_ATT_RENDERED = 51,
PID_ATT_SENTTIME = 52,
PID_ATT_RECVTIME = 53,
PID_ATT_PRIORITY = 54,
PID_HDR_COMMENT = 55,
PID_HDR_ENCODING = 56,
PID_HDR_ENCRYPTED = 57,
PID_HDR_OFFSETS = 58,
PID_HDR_XUNSENT = 59,
PID_HDR_ARTICLEID = 60,
PID_HDR_SENDER = 61,
PID_ATT_SERVER = 62,
PID_ATT_ACCOUNTID = 63,
PID_ATT_UIDL = 64,
PID_ATT_STOREMSGID = 65,
PID_ATT_USERNAME = 66,
PID_ATT_FORWARDTO = 67,
PID_ATT_STOREFOLDERID = 68,
PID_ATT_GHOSTED = 69,
PID_ATT_UNCACHEDSIZE = 70,
PID_ATT_COMBINED = 71,
PID_ATT_AUTOINLINED = 72,
PID_HDR_DISP_NOTIFICATION_TO = 73,
PID_PAR_REPLYTYPE = 74,
PID_PAR_FORMAT = 75,
PID_ATT_FORMAT = 76,
#if _WIN32_WINNT >= 0x0600
PID_HDR_INREPLYTO = 77,
PID_ATT_ACCOUNTNAME = 78,
PID_LAST = 79
#else
PID_LAST = 77
#endif // _WIN32_WINNT >= 0x0600
} MIMEPROPID;
// --------------------------------------------------------------------------------
// Variant Typed Identifiers
// --------------------------------------------------------------------------------
#define TYPEDID_MASK ((ULONG)0x0000FFFF)
#define TYPEDID_TYPE(_typedid) (VARTYPE)(((ULONG)(_typedid)) & TYPEDID_MASK)
#define TYPEDID_ID(_typedid) (((ULONG)(_typedid))>>16)
#define TYPEDID(_vartype,_id) ((((TYPEDID)(_id))<<16)|((ULONG)(_vartype)))
// --------------------------------------------------------------------------------
// Options Ids
// --------------------------------------------------------------------------------
#define OID_ALLOW_8BIT_HEADER TYPEDID(VT_BOOL, 0x0001) // TRUE or FALSE
#define OID_CBMAX_HEADER_LINE TYPEDID(VT_UI4, 0x0002) // Bytes
#define OID_SAVE_FORMAT TYPEDID(VT_UI4, 0x0003) // SAVE_RFC822 or SAVE_RFC1521 (mime)
#define OID_WRAP_BODY_TEXT TYPEDID(VT_BOOL, 0x0004) // TRUE or FALSE
#define OID_CBMAX_BODY_LINE TYPEDID(VT_UI4, 0x0005) // Bytes
#define OID_TRANSMIT_BODY_ENCODING TYPEDID(VT_UI4, 0x0006) // ENCODINGTYPE
#define OID_TRANSMIT_TEXT_ENCODING TYPEDID(VT_UI4, 0x0007) // ENCODINGTYPE, IMimeMessageTree
#define OID_GENERATE_MESSAGE_ID TYPEDID(VT_BOOL, 0x0008) // TRUE or FALSE
#define OID_HIDE_TNEF_ATTACHMENTS TYPEDID(VT_BOOL, 0X000E) // TRUE or FALSE
#define OID_CLEANUP_TREE_ON_SAVE TYPEDID(VT_BOOL, 0X000F) // TRUE or FALSE
#define OID_BODY_REMOVE_NBSP TYPEDID(VT_BOOL, 0x0014) // TRUE or FALSE
#define OID_DEFAULT_BODY_CHARSET TYPEDID(VT_UI4, 0x0015) // HCHARSET
#define OID_DEFAULT_HEADER_CHARSET TYPEDID(VT_UI4, 0x0016) // HCHARSET
#define OID_DBCS_ESCAPE_IS_8BIT TYPEDID(VT_BOOL, 0x0017) // TRUE or FALSE
#define OID_SECURITY_TYPE TYPEDID(VT_UI4, 0x0018)
#define OID_SECURITY_ALG_HASH TYPEDID(VT_BLOB, 0x0019)