This file is indexed.

/usr/include/wine/windows/mimeole.h is in wine1.4-dev 1.4-0ubuntu4.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

   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
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
2123
2124
2125
2126
2127
2128
2129
2130
2131
2132
2133
2134
2135
2136
2137
2138
2139
2140
2141
2142
2143
2144
2145
2146
2147
2148
2149
2150
2151
2152
2153
2154
2155
2156
2157
2158
2159
2160
2161
2162
2163
2164
2165
2166
2167
2168
2169
2170
2171
2172
2173
2174
2175
2176
2177
2178
2179
2180
2181
2182
2183
2184
2185
2186
2187
2188
2189
2190
2191
2192
2193
2194
2195
2196
2197
2198
2199
2200
2201
2202
2203
2204
2205
2206
2207
2208
2209
2210
2211
2212
2213
2214
2215
2216
2217
2218
2219
2220
2221
2222
2223
2224
2225
2226
2227
2228
2229
2230
2231
2232
2233
2234
2235
2236
2237
2238
2239
2240
2241
2242
2243
2244
2245
2246
2247
2248
2249
2250
2251
2252
2253
2254
2255
2256
2257
2258
2259
2260
2261
2262
2263
2264
2265
2266
2267
2268
2269
2270
2271
2272
2273
2274
2275
2276
2277
2278
2279
2280
2281
2282
2283
2284
2285
2286
2287
2288
2289
2290
2291
2292
2293
2294
2295
2296
2297
2298
2299
2300
2301
2302
2303
2304
2305
2306
2307
2308
2309
2310
2311
2312
2313
2314
2315
2316
2317
2318
2319
2320
2321
2322
2323
2324
2325
2326
2327
2328
2329
2330
2331
2332
2333
2334
2335
2336
2337
2338
2339
2340
2341
2342
2343
2344
2345
2346
2347
2348
2349
2350
2351
2352
2353
2354
2355
2356
2357
2358
2359
2360
2361
2362
2363
2364
2365
2366
2367
2368
2369
2370
2371
2372
2373
2374
2375
2376
2377
2378
2379
2380
2381
2382
2383
2384
2385
2386
2387
2388
2389
2390
2391
2392
2393
2394
2395
2396
2397
2398
2399
2400
2401
2402
2403
2404
2405
2406
2407
2408
2409
2410
2411
2412
2413
2414
2415
2416
2417
2418
2419
2420
2421
2422
2423
2424
2425
2426
2427
2428
2429
2430
2431
2432
2433
2434
2435
2436
2437
2438
2439
2440
2441
2442
2443
2444
2445
2446
2447
2448
2449
2450
2451
2452
2453
2454
2455
2456
2457
2458
2459
2460
2461
2462
2463
2464
2465
2466
2467
2468
2469
2470
2471
2472
2473
2474
2475
2476
2477
2478
2479
2480
2481
2482
2483
2484
2485
2486
2487
2488
2489
2490
2491
2492
2493
2494
2495
2496
2497
2498
2499
2500
2501
2502
2503
2504
2505
2506
2507
2508
2509
2510
2511
2512
2513
2514
2515
2516
2517
2518
2519
2520
2521
2522
2523
2524
2525
2526
2527
2528
2529
2530
2531
2532
2533
2534
2535
2536
2537
2538
2539
2540
2541
2542
2543
2544
2545
2546
2547
2548
2549
2550
2551
2552
2553
2554
2555
2556
2557
2558
2559
2560
2561
2562
2563
2564
2565
2566
2567
2568
2569
2570
2571
2572
2573
2574
2575
2576
2577
2578
2579
2580
2581
2582
2583
2584
2585
2586
2587
2588
2589
2590
2591
2592
2593
2594
2595
2596
2597
2598
2599
2600
2601
2602
2603
2604
2605
2606
2607
2608
2609
2610
2611
2612
2613
2614
2615
2616
2617
2618
2619
2620
2621
2622
2623
2624
2625
2626
2627
2628
2629
2630
2631
2632
2633
2634
2635
2636
2637
2638
2639
2640
2641
2642
2643
2644
2645
2646
2647
2648
2649
2650
2651
2652
2653
2654
2655
2656
2657
2658
2659
2660
2661
2662
2663
2664
2665
2666
2667
2668
2669
2670
2671
2672
2673
2674
2675
2676
2677
2678
2679
2680
2681
2682
2683
2684
2685
2686
2687
2688
2689
2690
2691
2692
2693
2694
2695
2696
2697
2698
2699
2700
2701
2702
2703
2704
2705
2706
2707
2708
2709
2710
2711
2712
2713
2714
2715
2716
2717
2718
2719
2720
2721
2722
2723
2724
2725
2726
2727
2728
2729
2730
2731
2732
2733
2734
2735
2736
2737
2738
2739
2740
2741
2742
2743
2744
2745
2746
2747
2748
2749
2750
2751
2752
2753
2754
2755
2756
2757
2758
2759
2760
2761
2762
2763
2764
2765
2766
2767
2768
2769
2770
2771
2772
2773
2774
2775
2776
2777
2778
2779
2780
2781
2782
2783
2784
2785
2786
2787
2788
2789
2790
2791
2792
2793
2794
2795
2796
2797
2798
2799
2800
2801
2802
2803
2804
2805
2806
2807
2808
2809
2810
2811
2812
2813
2814
2815
2816
2817
2818
2819
2820
2821
2822
2823
2824
2825
2826
2827
2828
2829
2830
2831
2832
2833
2834
2835
2836
2837
2838
2839
2840
2841
2842
2843
2844
2845
2846
2847
2848
2849
2850
2851
2852
2853
2854
2855
2856
2857
2858
2859
2860
2861
2862
2863
2864
2865
2866
2867
2868
2869
2870
2871
2872
2873
2874
2875
2876
2877
2878
2879
2880
2881
2882
2883
2884
2885
2886
2887
2888
2889
2890
2891
2892
2893
2894
2895
2896
2897
2898
2899
2900
2901
2902
2903
2904
2905
2906
2907
2908
2909
2910
2911
2912
2913
2914
2915
2916
2917
2918
2919
2920
2921
2922
2923
2924
2925
2926
2927
2928
2929
2930
2931
2932
2933
2934
2935
2936
2937
2938
2939
2940
2941
2942
2943
2944
2945
2946
2947
2948
2949
2950
2951
2952
2953
2954
2955
2956
2957
2958
2959
2960
2961
2962
2963
2964
2965
2966
2967
2968
2969
2970
2971
2972
2973
2974
2975
2976
2977
2978
2979
2980
2981
2982
2983
2984
2985
2986
2987
2988
2989
2990
2991
2992
2993
2994
2995
2996
2997
2998
2999
3000
3001
3002
3003
3004
3005
3006
3007
3008
3009
3010
3011
3012
3013
3014
3015
3016
3017
3018
3019
3020
3021
3022
3023
3024
3025
3026
3027
3028
3029
3030
3031
3032
3033
3034
3035
3036
3037
3038
3039
3040
3041
3042
3043
3044
3045
3046
3047
3048
3049
3050
3051
3052
3053
3054
3055
3056
3057
3058
3059
3060
3061
3062
3063
3064
3065
3066
3067
3068
3069
3070
3071
3072
3073
3074
3075
3076
3077
3078
3079
3080
3081
3082
3083
3084
3085
3086
3087
3088
3089
3090
3091
3092
3093
3094
3095
3096
3097
3098
3099
3100
3101
3102
3103
3104
3105
3106
3107
3108
3109
3110
3111
3112
3113
3114
3115
3116
3117
3118
3119
3120
3121
3122
3123
3124
3125
3126
3127
3128
3129
3130
3131
3132
3133
3134
3135
3136
3137
3138
3139
3140
3141
3142
3143
3144
3145
3146
3147
3148
3149
3150
3151
3152
3153
3154
3155
3156
3157
3158
3159
3160
3161
3162
3163
3164
3165
3166
3167
3168
3169
3170
3171
3172
3173
3174
3175
3176
3177
3178
3179
3180
3181
3182
3183
3184
3185
3186
3187
3188
3189
3190
3191
3192
3193
3194
3195
3196
3197
3198
3199
3200
3201
3202
3203
3204
3205
3206
3207
3208
3209
3210
3211
3212
3213
3214
3215
3216
3217
3218
3219
3220
3221
3222
3223
3224
3225
3226
3227
3228
3229
3230
3231
3232
3233
3234
3235
3236
3237
3238
3239
3240
3241
3242
3243
3244
3245
3246
3247
3248
3249
3250
3251
3252
3253
3254
3255
3256
3257
3258
3259
3260
3261
3262
3263
3264
3265
3266
3267
3268
3269
3270
3271
3272
3273
3274
3275
3276
3277
3278
3279
3280
3281
3282
3283
3284
3285
3286
3287
3288
3289
3290
3291
3292
3293
3294
3295
3296
3297
3298
3299
3300
3301
3302
3303
3304
3305
3306
3307
3308
3309
3310
3311
3312
3313
3314
3315
3316
3317
3318
3319
3320
3321
3322
3323
3324
3325
3326
3327
3328
3329
3330
3331
3332
3333
3334
3335
3336
3337
3338
3339
3340
3341
3342
3343
3344
3345
3346
3347
3348
3349
3350
3351
3352
3353
3354
3355
3356
3357
3358
3359
3360
3361
3362
3363
3364
3365
3366
3367
3368
3369
3370
3371
3372
3373
3374
3375
3376
3377
3378
3379
3380
3381
3382
3383
3384
3385
3386
3387
3388
3389
3390
3391
3392
3393
3394
3395
3396
3397
3398
3399
3400
3401
3402
3403
3404
3405
3406
3407
3408
3409
3410
3411
3412
3413
3414
3415
3416
3417
3418
3419
3420
3421
3422
3423
3424
3425
3426
3427
3428
3429
3430
3431
3432
3433
3434
3435
3436
3437
3438
3439
3440
3441
3442
3443
3444
3445
3446
3447
3448
3449
3450
3451
3452
3453
3454
3455
3456
3457
3458
3459
3460
3461
3462
3463
3464
3465
3466
3467
3468
3469
3470
3471
3472
3473
3474
3475
3476
3477
3478
3479
3480
3481
3482
3483
3484
3485
3486
3487
3488
3489
3490
3491
3492
3493
3494
3495
3496
3497
3498
3499
3500
3501
3502
3503
3504
3505
3506
3507
3508
3509
3510
3511
3512
3513
3514
3515
3516
3517
3518
3519
3520
3521
3522
3523
3524
3525
3526
3527
3528
3529
3530
3531
3532
3533
3534
3535
3536
3537
3538
3539
3540
3541
3542
3543
3544
3545
3546
3547
3548
3549
3550
3551
3552
3553
3554
3555
3556
3557
3558
3559
3560
3561
3562
3563
3564
3565
3566
3567
3568
3569
3570
3571
3572
3573
3574
3575
3576
3577
3578
3579
3580
3581
3582
3583
3584
3585
3586
3587
3588
3589
3590
3591
3592
3593
3594
3595
3596
3597
3598
3599
3600
3601
3602
3603
3604
3605
3606
3607
3608
3609
3610
3611
3612
3613
3614
3615
3616
3617
3618
3619
3620
3621
3622
3623
3624
3625
3626
3627
3628
3629
3630
3631
3632
3633
3634
3635
3636
3637
3638
3639
3640
3641
3642
3643
3644
3645
3646
3647
3648
3649
3650
3651
3652
3653
3654
3655
3656
3657
3658
3659
3660
3661
3662
3663
3664
3665
3666
3667
3668
3669
3670
3671
3672
3673
3674
3675
3676
3677
3678
3679
3680
3681
3682
3683
3684
3685
3686
3687
3688
3689
3690
3691
3692
3693
3694
3695
3696
3697
3698
3699
3700
3701
3702
3703
3704
3705
3706
3707
3708
3709
3710
3711
3712
3713
3714
3715
3716
3717
3718
3719
3720
3721
3722
3723
3724
3725
3726
3727
3728
3729
3730
3731
3732
3733
3734
3735
3736
3737
3738
3739
3740
3741
3742
3743
3744
3745
3746
3747
3748
3749
3750
3751
3752
3753
3754
3755
3756
3757
3758
3759
3760
3761
3762
3763
3764
3765
3766
3767
3768
3769
3770
3771
3772
3773
3774
3775
3776
3777
3778
3779
3780
3781
3782
3783
3784
3785
3786
3787
3788
3789
3790
3791
3792
3793
3794
3795
3796
3797
3798
3799
3800
3801
3802
3803
3804
3805
3806
3807
3808
3809
3810
3811
3812
3813
3814
3815
3816
3817
3818
3819
3820
3821
3822
3823
3824
3825
3826
3827
3828
3829
3830
3831
3832
3833
3834
3835
3836
3837
3838
3839
3840
3841
3842
3843
3844
3845
3846
3847
3848
3849
3850
3851
3852
3853
3854
3855
3856
3857
3858
3859
3860
3861
3862
3863
3864
3865
3866
3867
3868
3869
3870
3871
3872
3873
3874
3875
3876
3877
3878
3879
3880
3881
3882
3883
3884
3885
3886
3887
3888
3889
3890
3891
3892
3893
3894
3895
3896
3897
3898
3899
3900
3901
3902
3903
3904
3905
3906
3907
3908
3909
3910
3911
3912
3913
3914
3915
3916
3917
3918
3919
3920
3921
3922
3923
3924
3925
3926
3927
3928
3929
3930
3931
3932
3933
3934
3935
3936
3937
3938
3939
3940
3941
3942
3943
3944
3945
3946
3947
3948
3949
3950
3951
3952
3953
3954
3955
3956
3957
3958
3959
3960
3961
3962
3963
3964
3965
3966
3967
3968
3969
3970
3971
3972
3973
3974
3975
3976
3977
3978
3979
3980
3981
3982
3983
3984
3985
3986
3987
3988
3989
3990
3991
3992
3993
3994
3995
3996
3997
3998
3999
4000
4001
4002
4003
4004
4005
4006
4007
4008
4009
4010
4011
4012
4013
4014
4015
4016
4017
4018
4019
4020
4021
4022
4023
4024
4025
4026
4027
4028
4029
4030
4031
4032
4033
4034
4035
4036
4037
4038
4039
4040
4041
4042
4043
4044
4045
4046
4047
4048
4049
4050
4051
4052
4053
4054
4055
4056
4057
4058
4059
4060
4061
4062
4063
4064
4065
4066
4067
4068
4069
4070
4071
4072
4073
4074
4075
4076
4077
4078
4079
4080
4081
4082
4083
4084
4085
4086
4087
4088
4089
4090
4091
4092
4093
4094
4095
4096
4097
4098
4099
4100
4101
4102
4103
4104
4105
4106
4107
4108
4109
4110
4111
4112
4113
4114
4115
4116
4117
4118
4119
4120
4121
4122
4123
4124
4125
4126
4127
4128
4129
4130
4131
4132
4133
4134
4135
4136
4137
4138
4139
4140
4141
4142
4143
4144
4145
4146
4147
4148
4149
4150
4151
4152
4153
4154
4155
4156
4157
4158
4159
4160
4161
4162
4163
4164
4165
4166
4167
4168
4169
4170
4171
4172
4173
4174
4175
4176
4177
4178
4179
4180
4181
4182
4183
4184
4185
4186
4187
4188
4189
4190
4191
4192
4193
4194
4195
4196
4197
4198
4199
4200
4201
4202
4203
4204
4205
4206
4207
4208
4209
4210
4211
4212
4213
4214
4215
4216
4217
4218
4219
4220
4221
4222
4223
4224
4225
4226
4227
4228
4229
4230
4231
4232
4233
4234
4235
4236
4237
4238
4239
4240
4241
4242
4243
4244
4245
4246
4247
4248
4249
4250
4251
4252
4253
4254
4255
4256
4257
4258
4259
4260
4261
4262
4263
4264
4265
4266
4267
4268
4269
4270
4271
4272
4273
4274
4275
4276
4277
4278
4279
4280
4281
4282
4283
4284
4285
4286
4287
4288
4289
4290
4291
4292
4293
4294
4295
4296
4297
4298
4299
4300
4301
4302
4303
4304
4305
4306
4307
4308
4309
4310
4311
4312
4313
4314
4315
4316
4317
4318
4319
4320
4321
4322
4323
4324
4325
4326
4327
4328
4329
4330
4331
4332
4333
4334
4335
4336
4337
4338
4339
4340
4341
4342
4343
4344
4345
4346
4347
4348
4349
4350
4351
4352
4353
4354
4355
4356
4357
4358
4359
4360
4361
4362
4363
4364
4365
4366
4367
4368
4369
4370
4371
4372
4373
4374
4375
4376
4377
4378
4379
4380
4381
4382
4383
4384
4385
4386
4387
4388
4389
4390
4391
4392
4393
4394
4395
4396
4397
4398
4399
4400
4401
4402
4403
4404
4405
4406
4407
4408
4409
4410
4411
4412
4413
4414
4415
4416
4417
4418
4419
4420
4421
4422
4423
4424
4425
4426
4427
4428
4429
4430
4431
4432
4433
4434
4435
4436
4437
4438
4439
4440
4441
4442
4443
4444
4445
4446
4447
4448
4449
4450
4451
4452
4453
4454
4455
4456
4457
4458
4459
4460
4461
4462
4463
4464
4465
4466
4467
4468
4469
4470
4471
4472
4473
4474
4475
4476
4477
4478
4479
4480
4481
4482
4483
4484
4485
4486
4487
4488
4489
4490
4491
4492
4493
4494
4495
4496
4497
4498
4499
4500
4501
4502
4503
4504
4505
4506
4507
4508
4509
4510
4511
4512
4513
4514
4515
4516
4517
4518
4519
4520
4521
4522
4523
4524
4525
4526
4527
4528
4529
4530
4531
4532
4533
4534
4535
4536
4537
4538
4539
4540
4541
4542
4543
4544
4545
4546
4547
4548
4549
4550
4551
4552
4553
4554
4555
4556
4557
4558
4559
4560
4561
4562
4563
4564
4565
4566
4567
4568
4569
4570
4571
4572
4573
4574
4575
4576
4577
4578
4579
4580
4581
4582
4583
4584
4585
4586
4587
4588
4589
4590
4591
4592
4593
4594
4595
4596
4597
4598
4599
4600
4601
4602
4603
4604
4605
4606
4607
4608
4609
4610
4611
4612
4613
4614
4615
4616
4617
4618
4619
4620
4621
4622
4623
4624
4625
4626
4627
4628
4629
4630
4631
4632
4633
4634
4635
4636
4637
4638
4639
4640
4641
4642
4643
4644
4645
4646
4647
4648
4649
4650
4651
4652
4653
4654
4655
4656
4657
4658
4659
4660
4661
4662
4663
4664
4665
4666
4667
4668
4669
4670
4671
4672
4673
4674
4675
4676
4677
4678
4679
4680
4681
4682
4683
4684
4685
4686
4687
4688
4689
4690
4691
4692
4693
4694
4695
4696
4697
4698
4699
4700
4701
4702
4703
4704
4705
4706
4707
4708
4709
4710
4711
4712
4713
4714
4715
4716
4717
4718
4719
4720
4721
4722
4723
4724
4725
4726
4727
4728
4729
4730
4731
4732
4733
4734
4735
4736
4737
4738
4739
4740
4741
4742
4743
4744
4745
4746
4747
4748
4749
4750
4751
4752
4753
4754
4755
4756
4757
4758
4759
4760
4761
4762
4763
4764
4765
4766
4767
4768
4769
4770
4771
4772
4773
4774
4775
4776
4777
4778
4779
4780
4781
4782
4783
4784
4785
4786
4787
4788
4789
4790
4791
4792
4793
4794
4795
4796
4797
4798
4799
4800
4801
4802
4803
4804
4805
4806
4807
4808
4809
4810
4811
4812
4813
4814
4815
4816
4817
4818
4819
4820
4821
4822
4823
4824
4825
4826
4827
4828
4829
4830
4831
4832
4833
4834
4835
4836
4837
4838
4839
4840
4841
4842
4843
4844
4845
4846
4847
4848
4849
4850
4851
4852
4853
4854
4855
4856
4857
4858
4859
4860
/*** Autogenerated by WIDL 1.4 from mimeole.idl - Do not edit ***/

#ifndef __REQUIRED_RPCNDR_H_VERSION__
#define __REQUIRED_RPCNDR_H_VERSION__ 475
#endif

#include <rpc.h>
#include <rpcndr.h>

#ifndef COM_NO_WINDOWS_H
#include <windows.h>
#include <ole2.h>
#endif

#ifndef __WIDL_MIMEOLE_H
#define __WIDL_MIMEOLE_H

/* Forward declarations */

#ifndef __IMimeInternational_FWD_DEFINED__
#define __IMimeInternational_FWD_DEFINED__
typedef interface IMimeInternational IMimeInternational;
#endif

#ifndef __IMimeSecurity_FWD_DEFINED__
#define __IMimeSecurity_FWD_DEFINED__
typedef interface IMimeSecurity IMimeSecurity;
#endif

#ifndef __IMimeHeaderTable_FWD_DEFINED__
#define __IMimeHeaderTable_FWD_DEFINED__
typedef interface IMimeHeaderTable IMimeHeaderTable;
#endif

#ifndef __IMimePropertySchema_FWD_DEFINED__
#define __IMimePropertySchema_FWD_DEFINED__
typedef interface IMimePropertySchema IMimePropertySchema;
#endif

#ifndef __IMimePropertySet_FWD_DEFINED__
#define __IMimePropertySet_FWD_DEFINED__
typedef interface IMimePropertySet IMimePropertySet;
#endif

#ifndef __IMimeAddressTable_FWD_DEFINED__
#define __IMimeAddressTable_FWD_DEFINED__
typedef interface IMimeAddressTable IMimeAddressTable;
#endif

#ifndef __IMimeWebDocument_FWD_DEFINED__
#define __IMimeWebDocument_FWD_DEFINED__
typedef interface IMimeWebDocument IMimeWebDocument;
#endif

#ifndef __IMimeBody_FWD_DEFINED__
#define __IMimeBody_FWD_DEFINED__
typedef interface IMimeBody IMimeBody;
#endif

#ifndef __IMimeMessageTree_FWD_DEFINED__
#define __IMimeMessageTree_FWD_DEFINED__
typedef interface IMimeMessageTree IMimeMessageTree;
#endif

#ifndef __IMimeMessage_FWD_DEFINED__
#define __IMimeMessage_FWD_DEFINED__
typedef interface IMimeMessage IMimeMessage;
#endif

#ifndef __IMimeMessageCallback_FWD_DEFINED__
#define __IMimeMessageCallback_FWD_DEFINED__
typedef interface IMimeMessageCallback IMimeMessageCallback;
#endif

#ifndef __IPersistMime_FWD_DEFINED__
#define __IPersistMime_FWD_DEFINED__
typedef interface IPersistMime IPersistMime;
#endif

#ifndef __IMimeMessageParts_FWD_DEFINED__
#define __IMimeMessageParts_FWD_DEFINED__
typedef interface IMimeMessageParts IMimeMessageParts;
#endif

#ifndef __IMimeEnumHeaderRows_FWD_DEFINED__
#define __IMimeEnumHeaderRows_FWD_DEFINED__
typedef interface IMimeEnumHeaderRows IMimeEnumHeaderRows;
#endif

#ifndef __IMimeEnumProperties_FWD_DEFINED__
#define __IMimeEnumProperties_FWD_DEFINED__
typedef interface IMimeEnumProperties IMimeEnumProperties;
#endif

#ifndef __IMimeEnumAddressTypes_FWD_DEFINED__
#define __IMimeEnumAddressTypes_FWD_DEFINED__
typedef interface IMimeEnumAddressTypes IMimeEnumAddressTypes;
#endif

#ifndef __IMimeEnumMessageParts_FWD_DEFINED__
#define __IMimeEnumMessageParts_FWD_DEFINED__
typedef interface IMimeEnumMessageParts IMimeEnumMessageParts;
#endif

#ifndef __IHashTable_FWD_DEFINED__
#define __IHashTable_FWD_DEFINED__
typedef interface IHashTable IHashTable;
#endif

#ifndef __IMimeAllocator_FWD_DEFINED__
#define __IMimeAllocator_FWD_DEFINED__
typedef interface IMimeAllocator IMimeAllocator;
#endif

#ifndef __IMimeObjResolver_FWD_DEFINED__
#define __IMimeObjResolver_FWD_DEFINED__
typedef interface IMimeObjResolver IMimeObjResolver;
#endif

#ifndef __IFontCache_FWD_DEFINED__
#define __IFontCache_FWD_DEFINED__
typedef interface IFontCache IFontCache;
#endif

#ifndef __IFontCacheNotify_FWD_DEFINED__
#define __IFontCacheNotify_FWD_DEFINED__
typedef interface IFontCacheNotify IFontCacheNotify;
#endif

#ifndef __IMimeEditTag_FWD_DEFINED__
#define __IMimeEditTag_FWD_DEFINED__
typedef interface IMimeEditTag IMimeEditTag;
#endif

#ifndef __IMimeEditTagCollection_FWD_DEFINED__
#define __IMimeEditTagCollection_FWD_DEFINED__
typedef interface IMimeEditTagCollection IMimeEditTagCollection;
#endif

#ifndef __IMimeSecurityCallback_FWD_DEFINED__
#define __IMimeSecurityCallback_FWD_DEFINED__
typedef interface IMimeSecurityCallback IMimeSecurityCallback;
#endif

/* Headers for imported files */

#include <ocidl.h>
#include <objidl.h>
#include <propidl.h>

#ifdef __cplusplus
extern "C" {
#endif

#ifndef __IMimeMessageCallback_FWD_DEFINED__
#define __IMimeMessageCallback_FWD_DEFINED__
typedef interface IMimeMessageCallback IMimeMessageCallback;
#endif

#ifndef __IMimeEnumAddressTypes_FWD_DEFINED__
#define __IMimeEnumAddressTypes_FWD_DEFINED__
typedef interface IMimeEnumAddressTypes IMimeEnumAddressTypes;
#endif

#ifndef __IMimeMessageParts_FWD_DEFINED__
#define __IMimeMessageParts_FWD_DEFINED__
typedef interface IMimeMessageParts IMimeMessageParts;
#endif

#ifndef __IMimeMessageTree_FWD_DEFINED__
#define __IMimeMessageTree_FWD_DEFINED__
typedef interface IMimeMessageTree IMimeMessageTree;
#endif

#ifndef __IMimeBody_FWD_DEFINED__
#define __IMimeBody_FWD_DEFINED__
typedef interface IMimeBody IMimeBody;
#endif

#ifndef __IMimeEnumProperties_FWD_DEFINED__
#define __IMimeEnumProperties_FWD_DEFINED__
typedef interface IMimeEnumProperties IMimeEnumProperties;
#endif

DEFINE_GUID(CLSID_IMimeBody,      0xfd853cdb, 0x7f86, 0x11d0, 0x82, 0x52, 0x0, 0xc0, 0x4f, 0xd8, 0x5a, 0xb4);
DEFINE_GUID(CLSID_IMimeAllocator, 0xfd853cdd, 0x7f86, 0x11d0, 0x82, 0x52, 0x0, 0xc0, 0x4f, 0xd8, 0x5a, 0xb4);
DEFINE_GUID(CLSID_IMimeMessage,   0xfd853ce3, 0x7f86, 0x11d0, 0x82, 0x52, 0x0, 0xc0, 0x4f, 0xd8, 0x5a, 0xb4);
DEFINE_GUID(CLSID_IMimeSecurity,  0xfd853cde, 0x7f86, 0x11d0, 0x82, 0x52, 0x0, 0xc0, 0x4f, 0xd8, 0x5a, 0xb4);
DEFINE_GUID(CLSID_IVirtualStream, 0xfd853cdf, 0x7f86, 0x11d0, 0x82, 0x52, 0x0, 0xc0, 0x4f, 0xd8, 0x5a, 0xb4);
#define MIME_E_REG_CREATE_KEY         0x800cce01
#define MIME_E_REG_QUERY_INFO         0x800cce02
#define MIME_E_INVALID_ENCTYPE        0x800cce03
#define MIME_E_BOUNDARY_MISMATCH      0x800cce04
#define MIME_E_NOT_FOUND              0x800cce05
#define MIME_E_NO_DATA                0x800cce05
#define MIME_E_BUFFER_TOO_SMALL       0x800cce06
#define MIME_E_INVALID_ITEM_FLAGS     0x800cce07
#define MIME_E_ONE_LINE_ITEME         0x800cce08
#define MIME_E_INVALID_HANDLE         0x800cce09
#define MIME_E_CHARSET_TRANSLATE      0x800cce0a
#define MIME_E_NOT_INITIALIZED        0x800cce0b
#define MIME_E_INVALID_CHARSET_TYPE   0x800cce31
#define MIME_E_INVALID_TEXT_TYPE      0x800cce38
#define MIME_E_SECURITY_NOOP          0x800cceb1
#define MIME_S_SECURITY_NOOP          0x000cceb1
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_RETRCPTO   = 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_SENDER     = 61,
    PID_HDR_INREPLYTO  = 77,
} MIMEPROPID;
#define TYPEDID_MASK                  ((ULONG)0xffff)
#define TYPEDID_TYPE(t)               ((VARTYPE)((t) & TYPEDID_MASK))
#define OID_HIDE_TNEF_ATTACHMENTS     (0x000e0000 | VT_BOOL)
#define OID_SECURITY_TYPE             (0x00180000 | VT_UI4)
#define OID_SECURITY_HWND_OWNER       (0x00320000 | VT_UI4)
#define OID_HEADER_RELOAD_TYPE        (0x00370000 | VT_UI4)
#define OID_SHOW_MACBINARY            (0x00390000 | VT_BOOL)

DEFINE_GUID(LIBID_MIMEOLE, 0xe4b28371, 0x83b0, 0x11d0, 0x82,0x59, 0x00,0xc0,0x4f,0xd8,0x5a,0xb4);

typedef void *HCHARSET;
typedef void *HBODY;
typedef void *HHEADERROW;
typedef HCHARSET *LPHCHARSET;
typedef HBODY *LPHBODY;
typedef HHEADERROW *LPHHEADERROW;
typedef DWORD TYPEDID;
typedef const PROPVARIANT *LPCPROPVARIANT;
typedef const BLOB *LPCBLOB;
typedef enum tagRELOADTYPE {
    RELOAD_HEADER_NONE = 0,
    RELOAD_HEADER_RESET = 1,
    RELOAD_HEADER_APPEND = 2,
    RELOAD_HEADER_REPLACE = 3
} RELOADTYPE;
typedef enum tagMIMESAVETYPE {
    SAVE_RFC822 = 0,
    SAVE_RFC1521 = 1
} MIMESAVETYPE;
typedef enum tagCSETAPPLYTYPE {
    CSET_APPLY_UNTAGGED = 0,
    CSET_APPLY_ALL = 1,
    CSET_APPLY_TAG_ALL = 2
} CSETAPPLYTYPE;
typedef enum tagENCODINGTYPE {
    IET_BINARY = 0,
    IET_BASE64 = 1,
    IET_UUENCODE = 2,
    IET_QP = 3,
    IET_7BIT = 4,
    IET_8BIT = 5,
    IET_INETCSET = 6,
    IET_UNICODE = 7,
    IET_RFC1522 = 8,
    IET_ENCODED = 9,
    IET_CURRENT = 10,
    IET_UNKNOWN = 11,
    IET_BINHEX40 = 12,
    IET_LAST = 13
} ENCODINGTYPE;
#define IET_DECODED (IET_BINARY)

#define CCHMAX_HEADER_LINE (1000)

/*****************************************************************************
 * IMimeInternational interface
 */
#ifndef __IMimeInternational_INTERFACE_DEFINED__
#define __IMimeInternational_INTERFACE_DEFINED__

typedef IMimeInternational *LPMIMEINTERNATIONAL;
typedef DWORD CODEPAGEID;
#define CP_USASCII (1252)

#define CP_UNICODE (1200)

#define CP_JAUTODETECT (50932)

#define CP_KAUTODETECT (50949)

#define CP_ISO2022JPESC (50221)

#define CP_ISO2022JPSIO (50222)

#define CCHMAX_CSET_NAME (128)

#define CCHMAX_LANG_NAME (128)

#define CCHMAX_FACE_NAME (128)

typedef struct tagINETCSETINFO {
    CHAR szName[128];
    HCHARSET hCharset;
    CODEPAGEID cpiWindows;
    CODEPAGEID cpiInternet;
    DWORD dwReserved1;
} INETCSETINFO;
typedef struct tagINETCSETINFO *LPINETCSETINFO;
typedef enum tagINETLANGMASK {
    ILM_FAMILY = 0x1,
    ILM_NAME = 0x2,
    ILM_BODYCSET = 0x4,
    ILM_HEADERCSET = 0x8,
    ILM_WEBCSET = 0x10,
    ILM_FIXEDFONT = 0x20,
    ILM_VARIABLEFONT = 0x40
} INETLANGMASK;
typedef struct tagCODEPAGEINFO {
    DWORD dwMask;
    CODEPAGEID cpiCodePage;
    BOOL fIsValidCodePage;
    ULONG ulMaxCharSize;
    BOOL fInternetCP;
    CODEPAGEID cpiFamily;
    CHAR szName[128];
    CHAR szBodyCset[128];
    CHAR szHeaderCset[128];
    CHAR szWebCset[128];
    CHAR szFixedFont[128];
    CHAR szVariableFont[128];
    ENCODINGTYPE ietNewsDefault;
    ENCODINGTYPE ietMailDefault;
    DWORD dwReserved1;
} CODEPAGEINFO;
typedef struct tagCODEPAGEINFO *LPCODEPAGEINFO;
typedef struct tagRFC1522INFO {
    BOOL fRfc1522Allowed;
    BOOL fRfc1522Used;
    BOOL fAllow8bit;
    HCHARSET hRfc1522Cset;
} RFC1522INFO;
typedef struct tagRFC1522INFO *LPRFC1522INFO;
typedef enum tagCHARSETTYPE {
    CHARSET_BODY = 0,
    CHARSET_HEADER = 1,
    CHARSET_WEB = 2
} CHARSETTYPE;
DEFINE_GUID(IID_IMimeInternational, 0xc5588349, 0x7f86, 0x11d0, 0x82,0x52, 0x00,0xc0,0x4f,0xd8,0x5a,0xb4);
#if defined(__cplusplus) && !defined(CINTERFACE)
MIDL_INTERFACE("c5588349-7f86-11d0-8252-00c04fd85ab4")
IMimeInternational : public IUnknown
{
    virtual HRESULT STDMETHODCALLTYPE SetDefaultCharset(
        HCHARSET hCharset) = 0;

    virtual HRESULT STDMETHODCALLTYPE GetDefaultCharset(
        LPHCHARSET phCharset) = 0;

    virtual HRESULT STDMETHODCALLTYPE GetCodePageCharset(
        CODEPAGEID cpiCodePage,
        CHARSETTYPE ctCsetType,
        LPHCHARSET phCharset) = 0;

    virtual HRESULT STDMETHODCALLTYPE FindCharset(
        LPCSTR pszCharset,
        LPHCHARSET phCharset) = 0;

    virtual HRESULT STDMETHODCALLTYPE GetCharsetInfo(
        HCHARSET hCharset,
        LPINETCSETINFO pCsetInfo) = 0;

    virtual HRESULT STDMETHODCALLTYPE GetCodePageInfo(
        CODEPAGEID cpiCodePage,
        LPCODEPAGEINFO pCodePageInfo) = 0;

    virtual HRESULT STDMETHODCALLTYPE CanConvertCodePages(
        CODEPAGEID cpiSource,
        CODEPAGEID cpiDest) = 0;

    virtual HRESULT STDMETHODCALLTYPE DecodeHeader(
        HCHARSET hCharset,
        LPCSTR pszData,
        LPPROPVARIANT pDecoded,
        LPRFC1522INFO pRfc1522Info) = 0;

    virtual HRESULT STDMETHODCALLTYPE EncodeHeader(
        HCHARSET hCharset,
        LPPROPVARIANT pData,
        LPSTR *ppszEncoded,
        LPRFC1522INFO pRfc1522Info) = 0;

    virtual HRESULT STDMETHODCALLTYPE ConvertBuffer(
        CODEPAGEID cpiSource,
        CODEPAGEID cpiDest,
        LPBLOB pIn,
        LPBLOB pOut,
        ULONG *pcbRead) = 0;

    virtual HRESULT STDMETHODCALLTYPE ConvertString(
        CODEPAGEID cpiSource,
        CODEPAGEID cpiDest,
        LPPROPVARIANT pIn,
        LPPROPVARIANT pOut) = 0;

    virtual HRESULT STDMETHODCALLTYPE MLANG_ConvertInetReset(
        ) = 0;

    virtual HRESULT STDMETHODCALLTYPE MLANG_ConvertInetString(
        CODEPAGEID cpiSource,
        CODEPAGEID cpiDest,
        LPCSTR pSource,
        int *pnSizeOfSource,
        LPSTR pDestination,
        int *pnDstSize) = 0;

    virtual HRESULT STDMETHODCALLTYPE Rfc1522Decode(
        LPCSTR pszValue,
        LPSTR pszCharset,
        ULONG cchmax,
        LPSTR *ppszDecoded) = 0;

    virtual HRESULT STDMETHODCALLTYPE Rfc1522Encode(
        LPCSTR pszValue,
        HCHARSET hCharset,
        LPSTR *ppszEncoded) = 0;

};
#ifdef __CRT_UUID_DECL
__CRT_UUID_DECL(IMimeInternational, 0xc5588349, 0x7f86, 0x11d0, 0x82,0x52, 0x00,0xc0,0x4f,0xd8,0x5a,0xb4)
#endif
#else
typedef struct IMimeInternationalVtbl {
    BEGIN_INTERFACE

    /*** IUnknown methods ***/
    HRESULT (STDMETHODCALLTYPE *QueryInterface)(
        IMimeInternational* This,
        REFIID riid,
        void **ppvObject);

    ULONG (STDMETHODCALLTYPE *AddRef)(
        IMimeInternational* This);

    ULONG (STDMETHODCALLTYPE *Release)(
        IMimeInternational* This);

    /*** IMimeInternational methods ***/
    HRESULT (STDMETHODCALLTYPE *SetDefaultCharset)(
        IMimeInternational* This,
        HCHARSET hCharset);

    HRESULT (STDMETHODCALLTYPE *GetDefaultCharset)(
        IMimeInternational* This,
        LPHCHARSET phCharset);

    HRESULT (STDMETHODCALLTYPE *GetCodePageCharset)(
        IMimeInternational* This,
        CODEPAGEID cpiCodePage,
        CHARSETTYPE ctCsetType,
        LPHCHARSET phCharset);

    HRESULT (STDMETHODCALLTYPE *FindCharset)(
        IMimeInternational* This,
        LPCSTR pszCharset,
        LPHCHARSET phCharset);

    HRESULT (STDMETHODCALLTYPE *GetCharsetInfo)(
        IMimeInternational* This,
        HCHARSET hCharset,
        LPINETCSETINFO pCsetInfo);

    HRESULT (STDMETHODCALLTYPE *GetCodePageInfo)(
        IMimeInternational* This,
        CODEPAGEID cpiCodePage,
        LPCODEPAGEINFO pCodePageInfo);

    HRESULT (STDMETHODCALLTYPE *CanConvertCodePages)(
        IMimeInternational* This,
        CODEPAGEID cpiSource,
        CODEPAGEID cpiDest);

    HRESULT (STDMETHODCALLTYPE *DecodeHeader)(
        IMimeInternational* This,
        HCHARSET hCharset,
        LPCSTR pszData,
        LPPROPVARIANT pDecoded,
        LPRFC1522INFO pRfc1522Info);

    HRESULT (STDMETHODCALLTYPE *EncodeHeader)(
        IMimeInternational* This,
        HCHARSET hCharset,
        LPPROPVARIANT pData,
        LPSTR *ppszEncoded,
        LPRFC1522INFO pRfc1522Info);

    HRESULT (STDMETHODCALLTYPE *ConvertBuffer)(
        IMimeInternational* This,
        CODEPAGEID cpiSource,
        CODEPAGEID cpiDest,
        LPBLOB pIn,
        LPBLOB pOut,
        ULONG *pcbRead);

    HRESULT (STDMETHODCALLTYPE *ConvertString)(
        IMimeInternational* This,
        CODEPAGEID cpiSource,
        CODEPAGEID cpiDest,
        LPPROPVARIANT pIn,
        LPPROPVARIANT pOut);

    HRESULT (STDMETHODCALLTYPE *MLANG_ConvertInetReset)(
        IMimeInternational* This);

    HRESULT (STDMETHODCALLTYPE *MLANG_ConvertInetString)(
        IMimeInternational* This,
        CODEPAGEID cpiSource,
        CODEPAGEID cpiDest,
        LPCSTR pSource,
        int *pnSizeOfSource,
        LPSTR pDestination,
        int *pnDstSize);

    HRESULT (STDMETHODCALLTYPE *Rfc1522Decode)(
        IMimeInternational* This,
        LPCSTR pszValue,
        LPSTR pszCharset,
        ULONG cchmax,
        LPSTR *ppszDecoded);

    HRESULT (STDMETHODCALLTYPE *Rfc1522Encode)(
        IMimeInternational* This,
        LPCSTR pszValue,
        HCHARSET hCharset,
        LPSTR *ppszEncoded);

    END_INTERFACE
} IMimeInternationalVtbl;
interface IMimeInternational {
    CONST_VTBL IMimeInternationalVtbl* lpVtbl;
};

#ifdef COBJMACROS
/*** IUnknown methods ***/
#define IMimeInternational_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
#define IMimeInternational_AddRef(This) (This)->lpVtbl->AddRef(This)
#define IMimeInternational_Release(This) (This)->lpVtbl->Release(This)
/*** IMimeInternational methods ***/
#define IMimeInternational_SetDefaultCharset(This,hCharset) (This)->lpVtbl->SetDefaultCharset(This,hCharset)
#define IMimeInternational_GetDefaultCharset(This,phCharset) (This)->lpVtbl->GetDefaultCharset(This,phCharset)
#define IMimeInternational_GetCodePageCharset(This,cpiCodePage,ctCsetType,phCharset) (This)->lpVtbl->GetCodePageCharset(This,cpiCodePage,ctCsetType,phCharset)
#define IMimeInternational_FindCharset(This,pszCharset,phCharset) (This)->lpVtbl->FindCharset(This,pszCharset,phCharset)
#define IMimeInternational_GetCharsetInfo(This,hCharset,pCsetInfo) (This)->lpVtbl->GetCharsetInfo(This,hCharset,pCsetInfo)
#define IMimeInternational_GetCodePageInfo(This,cpiCodePage,pCodePageInfo) (This)->lpVtbl->GetCodePageInfo(This,cpiCodePage,pCodePageInfo)
#define IMimeInternational_CanConvertCodePages(This,cpiSource,cpiDest) (This)->lpVtbl->CanConvertCodePages(This,cpiSource,cpiDest)
#define IMimeInternational_DecodeHeader(This,hCharset,pszData,pDecoded,pRfc1522Info) (This)->lpVtbl->DecodeHeader(This,hCharset,pszData,pDecoded,pRfc1522Info)
#define IMimeInternational_EncodeHeader(This,hCharset,pData,ppszEncoded,pRfc1522Info) (This)->lpVtbl->EncodeHeader(This,hCharset,pData,ppszEncoded,pRfc1522Info)
#define IMimeInternational_ConvertBuffer(This,cpiSource,cpiDest,pIn,pOut,pcbRead) (This)->lpVtbl->ConvertBuffer(This,cpiSource,cpiDest,pIn,pOut,pcbRead)
#define IMimeInternational_ConvertString(This,cpiSource,cpiDest,pIn,pOut) (This)->lpVtbl->ConvertString(This,cpiSource,cpiDest,pIn,pOut)
#define IMimeInternational_MLANG_ConvertInetReset(This) (This)->lpVtbl->MLANG_ConvertInetReset(This)
#define IMimeInternational_MLANG_ConvertInetString(This,cpiSource,cpiDest,pSource,pnSizeOfSource,pDestination,pnDstSize) (This)->lpVtbl->MLANG_ConvertInetString(This,cpiSource,cpiDest,pSource,pnSizeOfSource,pDestination,pnDstSize)
#define IMimeInternational_Rfc1522Decode(This,pszValue,pszCharset,cchmax,ppszDecoded) (This)->lpVtbl->Rfc1522Decode(This,pszValue,pszCharset,cchmax,ppszDecoded)
#define IMimeInternational_Rfc1522Encode(This,pszValue,hCharset,ppszEncoded) (This)->lpVtbl->Rfc1522Encode(This,pszValue,hCharset,ppszEncoded)
#endif

#endif

HRESULT STDMETHODCALLTYPE IMimeInternational_SetDefaultCharset_Proxy(
    IMimeInternational* This,
    HCHARSET hCharset);
void __RPC_STUB IMimeInternational_SetDefaultCharset_Stub(
    IRpcStubBuffer* This,
    IRpcChannelBuffer* pRpcChannelBuffer,
    PRPC_MESSAGE pRpcMessage,
    DWORD* pdwStubPhase);
HRESULT STDMETHODCALLTYPE IMimeInternational_GetDefaultCharset_Proxy(
    IMimeInternational* This,
    LPHCHARSET phCharset);
void __RPC_STUB IMimeInternational_GetDefaultCharset_Stub(
    IRpcStubBuffer* This,
    IRpcChannelBuffer* pRpcChannelBuffer,
    PRPC_MESSAGE pRpcMessage,
    DWORD* pdwStubPhase);
HRESULT STDMETHODCALLTYPE IMimeInternational_GetCodePageCharset_Proxy(
    IMimeInternational* This,
    CODEPAGEID cpiCodePage,
    CHARSETTYPE ctCsetType,
    LPHCHARSET phCharset);
void __RPC_STUB IMimeInternational_GetCodePageCharset_Stub(
    IRpcStubBuffer* This,
    IRpcChannelBuffer* pRpcChannelBuffer,
    PRPC_MESSAGE pRpcMessage,
    DWORD* pdwStubPhase);
HRESULT STDMETHODCALLTYPE IMimeInternational_FindCharset_Proxy(
    IMimeInternational* This,
    LPCSTR pszCharset,
    LPHCHARSET phCharset);
void __RPC_STUB IMimeInternational_FindCharset_Stub(
    IRpcStubBuffer* This,
    IRpcChannelBuffer* pRpcChannelBuffer,
    PRPC_MESSAGE pRpcMessage,
    DWORD* pdwStubPhase);
HRESULT STDMETHODCALLTYPE IMimeInternational_GetCharsetInfo_Proxy(
    IMimeInternational* This,
    HCHARSET hCharset,
    LPINETCSETINFO pCsetInfo);
void __RPC_STUB IMimeInternational_GetCharsetInfo_Stub(
    IRpcStubBuffer* This,
    IRpcChannelBuffer* pRpcChannelBuffer,
    PRPC_MESSAGE pRpcMessage,
    DWORD* pdwStubPhase);
HRESULT STDMETHODCALLTYPE IMimeInternational_GetCodePageInfo_Proxy(
    IMimeInternational* This,
    CODEPAGEID cpiCodePage,
    LPCODEPAGEINFO pCodePageInfo);
void __RPC_STUB IMimeInternational_GetCodePageInfo_Stub(
    IRpcStubBuffer* This,
    IRpcChannelBuffer* pRpcChannelBuffer,
    PRPC_MESSAGE pRpcMessage,
    DWORD* pdwStubPhase);
HRESULT STDMETHODCALLTYPE IMimeInternational_CanConvertCodePages_Proxy(
    IMimeInternational* This,
    CODEPAGEID cpiSource,
    CODEPAGEID cpiDest);
void __RPC_STUB IMimeInternational_CanConvertCodePages_Stub(
    IRpcStubBuffer* This,
    IRpcChannelBuffer* pRpcChannelBuffer,
    PRPC_MESSAGE pRpcMessage,
    DWORD* pdwStubPhase);
HRESULT STDMETHODCALLTYPE IMimeInternational_DecodeHeader_Proxy(
    IMimeInternational* This,
    HCHARSET hCharset,
    LPCSTR pszData,
    LPPROPVARIANT pDecoded,
    LPRFC1522INFO pRfc1522Info);
void __RPC_STUB IMimeInternational_DecodeHeader_Stub(
    IRpcStubBuffer* This,
    IRpcChannelBuffer* pRpcChannelBuffer,
    PRPC_MESSAGE pRpcMessage,
    DWORD* pdwStubPhase);
HRESULT STDMETHODCALLTYPE IMimeInternational_EncodeHeader_Proxy(
    IMimeInternational* This,
    HCHARSET hCharset,
    LPPROPVARIANT pData,
    LPSTR *ppszEncoded,
    LPRFC1522INFO pRfc1522Info);
void __RPC_STUB IMimeInternational_EncodeHeader_Stub(
    IRpcStubBuffer* This,
    IRpcChannelBuffer* pRpcChannelBuffer,
    PRPC_MESSAGE pRpcMessage,
    DWORD* pdwStubPhase);
HRESULT STDMETHODCALLTYPE IMimeInternational_ConvertBuffer_Proxy(
    IMimeInternational* This,
    CODEPAGEID cpiSource,
    CODEPAGEID cpiDest,
    LPBLOB pIn,
    LPBLOB pOut,
    ULONG *pcbRead);
void __RPC_STUB IMimeInternational_ConvertBuffer_Stub(
    IRpcStubBuffer* This,
    IRpcChannelBuffer* pRpcChannelBuffer,
    PRPC_MESSAGE pRpcMessage,
    DWORD* pdwStubPhase);
HRESULT STDMETHODCALLTYPE IMimeInternational_ConvertString_Proxy(
    IMimeInternational* This,
    CODEPAGEID cpiSource,
    CODEPAGEID cpiDest,
    LPPROPVARIANT pIn,
    LPPROPVARIANT pOut);
void __RPC_STUB IMimeInternational_ConvertString_Stub(
    IRpcStubBuffer* This,
    IRpcChannelBuffer* pRpcChannelBuffer,
    PRPC_MESSAGE pRpcMessage,
    DWORD* pdwStubPhase);
HRESULT STDMETHODCALLTYPE IMimeInternational_MLANG_ConvertInetReset_Proxy(
    IMimeInternational* This);
void __RPC_STUB IMimeInternational_MLANG_ConvertInetReset_Stub(
    IRpcStubBuffer* This,
    IRpcChannelBuffer* pRpcChannelBuffer,
    PRPC_MESSAGE pRpcMessage,
    DWORD* pdwStubPhase);
HRESULT STDMETHODCALLTYPE IMimeInternational_MLANG_ConvertInetString_Proxy(
    IMimeInternational* This,
    CODEPAGEID cpiSource,
    CODEPAGEID cpiDest,
    LPCSTR pSource,
    int *pnSizeOfSource,
    LPSTR pDestination,
    int *pnDstSize);
void __RPC_STUB IMimeInternational_MLANG_ConvertInetString_Stub(
    IRpcStubBuffer* This,
    IRpcChannelBuffer* pRpcChannelBuffer,
    PRPC_MESSAGE pRpcMessage,
    DWORD* pdwStubPhase);
HRESULT STDMETHODCALLTYPE IMimeInternational_Rfc1522Decode_Proxy(
    IMimeInternational* This,
    LPCSTR pszValue,
    LPSTR pszCharset,
    ULONG cchmax,
    LPSTR *ppszDecoded);
void __RPC_STUB IMimeInternational_Rfc1522Decode_Stub(
    IRpcStubBuffer* This,
    IRpcChannelBuffer* pRpcChannelBuffer,
    PRPC_MESSAGE pRpcMessage,
    DWORD* pdwStubPhase);
HRESULT STDMETHODCALLTYPE IMimeInternational_Rfc1522Encode_Proxy(
    IMimeInternational* This,
    LPCSTR pszValue,
    HCHARSET hCharset,
    LPSTR *ppszEncoded);
void __RPC_STUB IMimeInternational_Rfc1522Encode_Stub(
    IRpcStubBuffer* This,
    IRpcChannelBuffer* pRpcChannelBuffer,
    PRPC_MESSAGE pRpcMessage,
    DWORD* pdwStubPhase);

#endif  /* __IMimeInternational_INTERFACE_DEFINED__ */

/*****************************************************************************
 * IMimeSecurity interface
 */
#ifndef __IMimeSecurity_INTERFACE_DEFINED__
#define __IMimeSecurity_INTERFACE_DEFINED__

typedef IMimeSecurity *LPMIMESECURITY;
#ifdef __WINE_WINCRYPT_H
typedef PCCERT_CONTEXT PCX509CERT;
#else
typedef const void *PCX509CERT;
typedef void *HCERTSTORE;
#endif
typedef BLOB THUMBBLOB;
typedef void *HCAPICERTSTORE;
#define MST_NONE             0x00000000
#define MST_THIS_SIGN        0x00000001
#define MST_THIS_ENCRYPT     0x00000002
#define MST_BLOB_FLAG        0x00000004
#define MST_THIS_BLOBSIGN    (MST_BLOB_FLAG | MST_THIS_SIGN)
#define MST_CHILD_SIGN       0x00000100
#define MST_CHILD_ENCRYPT    0x00000200
#define MST_SUBMSG_SIGN      0x00001000
#define MST_SUBMSG_ENCRYPT   0x00002000
#define MST_RECEIPT_REQUEST  0x00010000
#define MST_CLASS_SMIME_V1   0x00000000
#define MST_CLASS_PGP        0x01000000
typedef enum tagCERTSTATE {
    CERTIFICATE_OK = 0,
    CERTIFICATE_NOT_PRESENT = 1,
    CERTIFICATE_EXPIRED = 2,
    CERTIFICATE_CHAIN_TOO_LONG = 3,
    CERTIFICATE_MISSING_ISSUER = 4,
    CERTIFICATE_CRL_LISTED = 5,
    CERTIFICATE_NOT_TRUSTED = 6,
    CERTIFICATE_INVALID = 7,
    CERTIFICATE_ERROR = 8,
    CERTIFICATE_NOPRINT = 9,
    CERTIFICATE_UNKNOWN = 10
} CERTSTATE;
typedef enum tagCERTNAMETYPE {
    SIMPLE = 0,
    OID = 1,
    X500 = 2
} CERTNAMETYPE;
typedef enum tagCERTDATAID {
    CDID_EMAIL = 0,
    CDID_MAX = 1
} CERTDATAID;
typedef struct tagX509CERTRESULT {
    DWORD cEntries;
    CERTSTATE *rgcs;
    PCX509CERT *rgpCert;
} X509CERTRESULT;
typedef struct tagX509CERTRESULT *PX509CERTRESULT;
typedef const X509CERTRESULT *PCX509CERTRESULT;
DEFINE_GUID(IID_IMimeSecurity, 0xc5588353, 0x7f86, 0x11d0, 0x82,0x52, 0x00,0xc0,0x4f,0xd8,0x5a,0xb4);
#if defined(__cplusplus) && !defined(CINTERFACE)
MIDL_INTERFACE("c5588353-7f86-11d0-8252-00c04fd85ab4")
IMimeSecurity : public IUnknown
{
    virtual HRESULT STDMETHODCALLTYPE InitNew(
        ) = 0;

    virtual HRESULT STDMETHODCALLTYPE CheckInit(
        ) = 0;

    virtual HRESULT STDMETHODCALLTYPE EncodeMessage(
        IMimeMessageTree *pTree,
        DWORD dwFlags) = 0;

    virtual HRESULT STDMETHODCALLTYPE EncodeBody(
        IMimeMessageTree *pTree,
        HBODY hEncodeRoot,
        DWORD dwFlags) = 0;

    virtual HRESULT STDMETHODCALLTYPE DecodeMessage(
        IMimeMessageTree *pTree,
        DWORD dwFlags) = 0;

    virtual HRESULT STDMETHODCALLTYPE DecodeBody(
        IMimeMessageTree *pTree,
        HBODY hDecodeRoot,
        DWORD dwFlags) = 0;

    virtual HRESULT STDMETHODCALLTYPE EnumCertificates(
        HCAPICERTSTORE hc,
        DWORD dwUsage,
        PCX509CERT pPrev,
        PCX509CERT *ppCert) = 0;

    virtual HRESULT STDMETHODCALLTYPE GetCertificateName(
        const PCX509CERT pX509Cert,
        const CERTNAMETYPE cn,
        LPSTR *ppszName) = 0;

    virtual HRESULT STDMETHODCALLTYPE GetMessageType(
        const HWND hwndParent,
        IMimeBody *pBody,
        DWORD *pdwSecType) = 0;

    virtual HRESULT STDMETHODCALLTYPE GetCertData(
        const PCX509CERT pX509Cert,
        const CERTDATAID dataid,
        LPPROPVARIANT pValue) = 0;

};
#ifdef __CRT_UUID_DECL
__CRT_UUID_DECL(IMimeSecurity, 0xc5588353, 0x7f86, 0x11d0, 0x82,0x52, 0x00,0xc0,0x4f,0xd8,0x5a,0xb4)
#endif
#else
typedef struct IMimeSecurityVtbl {
    BEGIN_INTERFACE

    /*** IUnknown methods ***/
    HRESULT (STDMETHODCALLTYPE *QueryInterface)(
        IMimeSecurity* This,
        REFIID riid,
        void **ppvObject);

    ULONG (STDMETHODCALLTYPE *AddRef)(
        IMimeSecurity* This);

    ULONG (STDMETHODCALLTYPE *Release)(
        IMimeSecurity* This);

    /*** IMimeSecurity methods ***/
    HRESULT (STDMETHODCALLTYPE *InitNew)(
        IMimeSecurity* This);

    HRESULT (STDMETHODCALLTYPE *CheckInit)(
        IMimeSecurity* This);

    HRESULT (STDMETHODCALLTYPE *EncodeMessage)(
        IMimeSecurity* This,
        IMimeMessageTree *pTree,
        DWORD dwFlags);

    HRESULT (STDMETHODCALLTYPE *EncodeBody)(
        IMimeSecurity* This,
        IMimeMessageTree *pTree,
        HBODY hEncodeRoot,
        DWORD dwFlags);

    HRESULT (STDMETHODCALLTYPE *DecodeMessage)(
        IMimeSecurity* This,
        IMimeMessageTree *pTree,
        DWORD dwFlags);

    HRESULT (STDMETHODCALLTYPE *DecodeBody)(
        IMimeSecurity* This,
        IMimeMessageTree *pTree,
        HBODY hDecodeRoot,
        DWORD dwFlags);

    HRESULT (STDMETHODCALLTYPE *EnumCertificates)(
        IMimeSecurity* This,
        HCAPICERTSTORE hc,
        DWORD dwUsage,
        PCX509CERT pPrev,
        PCX509CERT *ppCert);

    HRESULT (STDMETHODCALLTYPE *GetCertificateName)(
        IMimeSecurity* This,
        const PCX509CERT pX509Cert,
        const CERTNAMETYPE cn,
        LPSTR *ppszName);

    HRESULT (STDMETHODCALLTYPE *GetMessageType)(
        IMimeSecurity* This,
        const HWND hwndParent,
        IMimeBody *pBody,
        DWORD *pdwSecType);

    HRESULT (STDMETHODCALLTYPE *GetCertData)(
        IMimeSecurity* This,
        const PCX509CERT pX509Cert,
        const CERTDATAID dataid,
        LPPROPVARIANT pValue);

    END_INTERFACE
} IMimeSecurityVtbl;
interface IMimeSecurity {
    CONST_VTBL IMimeSecurityVtbl* lpVtbl;
};

#ifdef COBJMACROS
/*** IUnknown methods ***/
#define IMimeSecurity_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
#define IMimeSecurity_AddRef(This) (This)->lpVtbl->AddRef(This)
#define IMimeSecurity_Release(This) (This)->lpVtbl->Release(This)
/*** IMimeSecurity methods ***/
#define IMimeSecurity_InitNew(This) (This)->lpVtbl->InitNew(This)
#define IMimeSecurity_CheckInit(This) (This)->lpVtbl->CheckInit(This)
#define IMimeSecurity_EncodeMessage(This,pTree,dwFlags) (This)->lpVtbl->EncodeMessage(This,pTree,dwFlags)
#define IMimeSecurity_EncodeBody(This,pTree,hEncodeRoot,dwFlags) (This)->lpVtbl->EncodeBody(This,pTree,hEncodeRoot,dwFlags)
#define IMimeSecurity_DecodeMessage(This,pTree,dwFlags) (This)->lpVtbl->DecodeMessage(This,pTree,dwFlags)
#define IMimeSecurity_DecodeBody(This,pTree,hDecodeRoot,dwFlags) (This)->lpVtbl->DecodeBody(This,pTree,hDecodeRoot,dwFlags)
#define IMimeSecurity_EnumCertificates(This,hc,dwUsage,pPrev,ppCert) (This)->lpVtbl->EnumCertificates(This,hc,dwUsage,pPrev,ppCert)
#define IMimeSecurity_GetCertificateName(This,pX509Cert,cn,ppszName) (This)->lpVtbl->GetCertificateName(This,pX509Cert,cn,ppszName)
#define IMimeSecurity_GetMessageType(This,hwndParent,pBody,pdwSecType) (This)->lpVtbl->GetMessageType(This,hwndParent,pBody,pdwSecType)
#define IMimeSecurity_GetCertData(This,pX509Cert,dataid,pValue) (This)->lpVtbl->GetCertData(This,pX509Cert,dataid,pValue)
#endif

#endif

HRESULT STDMETHODCALLTYPE IMimeSecurity_InitNew_Proxy(
    IMimeSecurity* This);
void __RPC_STUB IMimeSecurity_InitNew_Stub(
    IRpcStubBuffer* This,
    IRpcChannelBuffer* pRpcChannelBuffer,
    PRPC_MESSAGE pRpcMessage,
    DWORD* pdwStubPhase);
HRESULT STDMETHODCALLTYPE IMimeSecurity_CheckInit_Proxy(
    IMimeSecurity* This);
void __RPC_STUB IMimeSecurity_CheckInit_Stub(
    IRpcStubBuffer* This,
    IRpcChannelBuffer* pRpcChannelBuffer,
    PRPC_MESSAGE pRpcMessage,
    DWORD* pdwStubPhase);
HRESULT STDMETHODCALLTYPE IMimeSecurity_EncodeMessage_Proxy(
    IMimeSecurity* This,
    IMimeMessageTree *pTree,
    DWORD dwFlags);
void __RPC_STUB IMimeSecurity_EncodeMessage_Stub(
    IRpcStubBuffer* This,
    IRpcChannelBuffer* pRpcChannelBuffer,
    PRPC_MESSAGE pRpcMessage,
    DWORD* pdwStubPhase);
HRESULT STDMETHODCALLTYPE IMimeSecurity_EncodeBody_Proxy(
    IMimeSecurity* This,
    IMimeMessageTree *pTree,
    HBODY hEncodeRoot,
    DWORD dwFlags);
void __RPC_STUB IMimeSecurity_EncodeBody_Stub(
    IRpcStubBuffer* This,
    IRpcChannelBuffer* pRpcChannelBuffer,
    PRPC_MESSAGE pRpcMessage,
    DWORD* pdwStubPhase);
HRESULT STDMETHODCALLTYPE IMimeSecurity_DecodeMessage_Proxy(
    IMimeSecurity* This,
    IMimeMessageTree *pTree,
    DWORD dwFlags);
void __RPC_STUB IMimeSecurity_DecodeMessage_Stub(
    IRpcStubBuffer* This,
    IRpcChannelBuffer* pRpcChannelBuffer,
    PRPC_MESSAGE pRpcMessage,
    DWORD* pdwStubPhase);
HRESULT STDMETHODCALLTYPE IMimeSecurity_DecodeBody_Proxy(
    IMimeSecurity* This,
    IMimeMessageTree *pTree,
    HBODY hDecodeRoot,
    DWORD dwFlags);
void __RPC_STUB IMimeSecurity_DecodeBody_Stub(
    IRpcStubBuffer* This,
    IRpcChannelBuffer* pRpcChannelBuffer,
    PRPC_MESSAGE pRpcMessage,
    DWORD* pdwStubPhase);
HRESULT STDMETHODCALLTYPE IMimeSecurity_EnumCertificates_Proxy(
    IMimeSecurity* This,
    HCAPICERTSTORE hc,
    DWORD dwUsage,
    PCX509CERT pPrev,
    PCX509CERT *ppCert);
void __RPC_STUB IMimeSecurity_EnumCertificates_Stub(
    IRpcStubBuffer* This,
    IRpcChannelBuffer* pRpcChannelBuffer,
    PRPC_MESSAGE pRpcMessage,
    DWORD* pdwStubPhase);
HRESULT STDMETHODCALLTYPE IMimeSecurity_GetCertificateName_Proxy(
    IMimeSecurity* This,
    const PCX509CERT pX509Cert,
    const CERTNAMETYPE cn,
    LPSTR *ppszName);
void __RPC_STUB IMimeSecurity_GetCertificateName_Stub(
    IRpcStubBuffer* This,
    IRpcChannelBuffer* pRpcChannelBuffer,
    PRPC_MESSAGE pRpcMessage,
    DWORD* pdwStubPhase);
HRESULT STDMETHODCALLTYPE IMimeSecurity_GetMessageType_Proxy(
    IMimeSecurity* This,
    const HWND hwndParent,
    IMimeBody *pBody,
    DWORD *pdwSecType);
void __RPC_STUB IMimeSecurity_GetMessageType_Stub(
    IRpcStubBuffer* This,
    IRpcChannelBuffer* pRpcChannelBuffer,
    PRPC_MESSAGE pRpcMessage,
    DWORD* pdwStubPhase);
HRESULT STDMETHODCALLTYPE IMimeSecurity_GetCertData_Proxy(
    IMimeSecurity* This,
    const PCX509CERT pX509Cert,
    const CERTDATAID dataid,
    LPPROPVARIANT pValue);
void __RPC_STUB IMimeSecurity_GetCertData_Stub(
    IRpcStubBuffer* This,
    IRpcChannelBuffer* pRpcChannelBuffer,
    PRPC_MESSAGE pRpcMessage,
    DWORD* pdwStubPhase);

#endif  /* __IMimeSecurity_INTERFACE_DEFINED__ */

/*****************************************************************************
 * IMimeHeaderTable interface
 */
#ifndef __IMimeHeaderTable_INTERFACE_DEFINED__
#define __IMimeHeaderTable_INTERFACE_DEFINED__

DEFINE_GUID(IID_IMimeHeaderTable, 0xfd853cd1, 0x7f86, 0x11d0, 0x82,0x52, 0x00,0xc0,0x4f,0xd8,0x5a,0xb4);
#if defined(__cplusplus) && !defined(CINTERFACE)
MIDL_INTERFACE("fd853cd1-7f86-11d0-8252-00c04fd85ab4")
IMimeHeaderTable : public IPersistStream
{
};
#ifdef __CRT_UUID_DECL
__CRT_UUID_DECL(IMimeHeaderTable, 0xfd853cd1, 0x7f86, 0x11d0, 0x82,0x52, 0x00,0xc0,0x4f,0xd8,0x5a,0xb4)
#endif
#else
typedef struct IMimeHeaderTableVtbl {
    BEGIN_INTERFACE

    /*** IUnknown methods ***/
    HRESULT (STDMETHODCALLTYPE *QueryInterface)(
        IMimeHeaderTable* This,
        REFIID riid,
        void **ppvObject);

    ULONG (STDMETHODCALLTYPE *AddRef)(
        IMimeHeaderTable* This);

    ULONG (STDMETHODCALLTYPE *Release)(
        IMimeHeaderTable* This);

    /*** IPersist methods ***/
    HRESULT (STDMETHODCALLTYPE *GetClassID)(
        IMimeHeaderTable* This,
        CLSID *pClassID);

    /*** IPersistStream methods ***/
    HRESULT (STDMETHODCALLTYPE *IsDirty)(
        IMimeHeaderTable* This);

    HRESULT (STDMETHODCALLTYPE *Load)(
        IMimeHeaderTable* This,
        IStream *pStm);

    HRESULT (STDMETHODCALLTYPE *Save)(
        IMimeHeaderTable* This,
        IStream *pStm,
        BOOL fClearDirty);

    HRESULT (STDMETHODCALLTYPE *GetSizeMax)(
        IMimeHeaderTable* This,
        ULARGE_INTEGER *pcbSize);

    END_INTERFACE
} IMimeHeaderTableVtbl;
interface IMimeHeaderTable {
    CONST_VTBL IMimeHeaderTableVtbl* lpVtbl;
};

#ifdef COBJMACROS
/*** IUnknown methods ***/
#define IMimeHeaderTable_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
#define IMimeHeaderTable_AddRef(This) (This)->lpVtbl->AddRef(This)
#define IMimeHeaderTable_Release(This) (This)->lpVtbl->Release(This)
/*** IPersist methods ***/
#define IMimeHeaderTable_GetClassID(This,pClassID) (This)->lpVtbl->GetClassID(This,pClassID)
/*** IPersistStream methods ***/
#define IMimeHeaderTable_IsDirty(This) (This)->lpVtbl->IsDirty(This)
#define IMimeHeaderTable_Load(This,pStm) (This)->lpVtbl->Load(This,pStm)
#define IMimeHeaderTable_Save(This,pStm,fClearDirty) (This)->lpVtbl->Save(This,pStm,fClearDirty)
#define IMimeHeaderTable_GetSizeMax(This,pcbSize) (This)->lpVtbl->GetSizeMax(This,pcbSize)
#endif

#endif


#endif  /* __IMimeHeaderTable_INTERFACE_DEFINED__ */

/*****************************************************************************
 * IMimePropertySchema interface
 */
#ifndef __IMimePropertySchema_INTERFACE_DEFINED__
#define __IMimePropertySchema_INTERFACE_DEFINED__

typedef enum tagMIMEPROPFLAGS {
    MPF_INETCSET = 0x1,
    MPF_RFC1522 = 0x2,
    MPF_ADDRESS = 0x4,
    MPF_HASPARAMS = 0x8,
    MPF_MIME = 0x10,
    MPF_READONLY = 0x20
} MIMEPROPFLAGS;
DEFINE_GUID(IID_IMimePropertySchema, 0xfd853cec, 0x7f86, 0x11d0, 0x82,0x52, 0x00,0xc0,0x4f,0xd8,0x5a,0xb4);
#if defined(__cplusplus) && !defined(CINTERFACE)
MIDL_INTERFACE("fd853cec-7f86-11d0-8252-00c04fd85ab4")
IMimePropertySchema : public IUnknown
{
};
#ifdef __CRT_UUID_DECL
__CRT_UUID_DECL(IMimePropertySchema, 0xfd853cec, 0x7f86, 0x11d0, 0x82,0x52, 0x00,0xc0,0x4f,0xd8,0x5a,0xb4)
#endif
#else
typedef struct IMimePropertySchemaVtbl {
    BEGIN_INTERFACE

    /*** IUnknown methods ***/
    HRESULT (STDMETHODCALLTYPE *QueryInterface)(
        IMimePropertySchema* This,
        REFIID riid,
        void **ppvObject);

    ULONG (STDMETHODCALLTYPE *AddRef)(
        IMimePropertySchema* This);

    ULONG (STDMETHODCALLTYPE *Release)(
        IMimePropertySchema* This);

    END_INTERFACE
} IMimePropertySchemaVtbl;
interface IMimePropertySchema {
    CONST_VTBL IMimePropertySchemaVtbl* lpVtbl;
};

#ifdef COBJMACROS
/*** IUnknown methods ***/
#define IMimePropertySchema_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
#define IMimePropertySchema_AddRef(This) (This)->lpVtbl->AddRef(This)
#define IMimePropertySchema_Release(This) (This)->lpVtbl->Release(This)
#endif

#endif


#endif  /* __IMimePropertySchema_INTERFACE_DEFINED__ */

/*****************************************************************************
 * IMimePropertySet interface
 */
#ifndef __IMimePropertySet_INTERFACE_DEFINED__
#define __IMimePropertySet_INTERFACE_DEFINED__

typedef IMimePropertySet *LPMIMEPROPERTYSET;
#define PDF_ENCODED              0x00000001
#define PDF_NAMEINDATA           0x00000002
#define PDF_HEADERFORMAT        (0x00000004 | PDF_ENCODED)
#define PDF_NOCOMMENTS           0x00000008
#define PDF_SAVENOENCODE         0x00000010
#define PDF_VECTOR               0x00000020
typedef struct tagMIMEPARAMINFO {
    LPSTR pszName;
    LPSTR pszData;
} MIMEPARAMINFO;
typedef struct tagMIMEPARAMINFO *LPMIMEPARAMINFO;
typedef enum tagPROPINFOMASK {
    PIM_CHARSET = 0x1,
    PIM_ENCODINGTYPE = 0x2,
    PIM_ROWNUMBER = 0x4,
    PIM_FLAGS = 0x8,
    PIM_PROPID = 0x10,
    PIM_VALUES = 0x20,
    PIM_VTDEFAULT = 0x40,
    PIM_VTCURRENT = 0x80
} PROPINFOMASK;
typedef struct tagMIMEPROPINFO {
    DWORD dwMask;
    HCHARSET hCharset;
    ENCODINGTYPE ietEncoding;
    DWORD dwRowNumber;
    DWORD dwFlags;
    DWORD dwPropId;
    DWORD cValues;
    VARTYPE vtDefault;
    VARTYPE vtCurrent;
} MIMEPROPINFO;
typedef struct tagMIMEPROPINFO *LPMIMEPROPINFO;
typedef const MIMEPROPINFO *LPCMIMEPROPINFO;
#ifdef WINE_NO_UNICODE_MACROS
#undef GetProp
#undef SetProp
#undef EnumProps
#endif
#define EPF_NONAME 0x00000001
DEFINE_GUID(IID_IMimePropertySet, 0xfd853cd3, 0x7f86, 0x11d0, 0x82,0x52, 0x00,0xc0,0x4f,0xd8,0x5a,0xb4);
#if defined(__cplusplus) && !defined(CINTERFACE)
MIDL_INTERFACE("fd853cd3-7f86-11d0-8252-00c04fd85ab4")
IMimePropertySet : public IPersistStreamInit
{
    virtual HRESULT STDMETHODCALLTYPE GetPropInfo(
        LPCSTR pszName,
        LPMIMEPROPINFO pInfo) = 0;

    virtual HRESULT STDMETHODCALLTYPE SetPropInfo(
        LPCSTR pszName,
        LPCMIMEPROPINFO pInfo) = 0;

    virtual HRESULT STDMETHODCALLTYPE GetProp(
        LPCSTR pszName,
        DWORD dwFlags,
        LPPROPVARIANT pValue) = 0;

    virtual HRESULT STDMETHODCALLTYPE SetProp(
        LPCSTR pszName,
        DWORD dwFlags,
        LPCPROPVARIANT pValue) = 0;

    virtual HRESULT STDMETHODCALLTYPE AppendProp(
        LPCSTR pszName,
        DWORD dwFlags,
        LPPROPVARIANT pValue) = 0;

    virtual HRESULT STDMETHODCALLTYPE DeleteProp(
        LPCSTR pszName) = 0;

    virtual HRESULT STDMETHODCALLTYPE CopyProps(
        ULONG cNames,
        LPCSTR *prgszName,
        IMimePropertySet *pPropertySet) = 0;

    virtual HRESULT STDMETHODCALLTYPE MoveProps(
        ULONG cNames,
        LPCSTR *prgszName,
        IMimePropertySet *pPropertySet) = 0;

    virtual HRESULT STDMETHODCALLTYPE DeleteExcept(
        ULONG cNames,
        LPCSTR *prgszName) = 0;

    virtual HRESULT STDMETHODCALLTYPE QueryProp(
        LPCSTR pszName,
        LPCSTR pszCriteria,
        boolean fSubString,
        boolean fCaseSensitive) = 0;

    virtual HRESULT STDMETHODCALLTYPE GetCharset(
        LPHCHARSET phCharset) = 0;

    virtual HRESULT STDMETHODCALLTYPE SetCharset(
        HCHARSET hCharset,
        CSETAPPLYTYPE applytype) = 0;

    virtual HRESULT STDMETHODCALLTYPE GetParameters(
        LPCSTR pszName,
        ULONG *pcParams,
        LPMIMEPARAMINFO *pprgParam) = 0;

    virtual HRESULT STDMETHODCALLTYPE IsContentType(
        LPCSTR pszPriType,
        LPCSTR pszSubType) = 0;

    virtual HRESULT STDMETHODCALLTYPE BindToObject(
        REFIID riid,
        void **ppvObject) = 0;

    virtual HRESULT STDMETHODCALLTYPE Clone(
        IMimePropertySet **ppPropertySet) = 0;

    virtual HRESULT STDMETHODCALLTYPE SetOption(
        const TYPEDID oid,
        LPCPROPVARIANT pValue) = 0;

    virtual HRESULT STDMETHODCALLTYPE GetOption(
        const TYPEDID oid,
        LPPROPVARIANT pValue) = 0;

    virtual HRESULT STDMETHODCALLTYPE EnumProps(
        DWORD dwFlags,
        IMimeEnumProperties **ppEnum) = 0;

};
#ifdef __CRT_UUID_DECL
__CRT_UUID_DECL(IMimePropertySet, 0xfd853cd3, 0x7f86, 0x11d0, 0x82,0x52, 0x00,0xc0,0x4f,0xd8,0x5a,0xb4)
#endif
#else
typedef struct IMimePropertySetVtbl {
    BEGIN_INTERFACE

    /*** IUnknown methods ***/
    HRESULT (STDMETHODCALLTYPE *QueryInterface)(
        IMimePropertySet* This,
        REFIID riid,
        void **ppvObject);

    ULONG (STDMETHODCALLTYPE *AddRef)(
        IMimePropertySet* This);

    ULONG (STDMETHODCALLTYPE *Release)(
        IMimePropertySet* This);

    /*** IPersist methods ***/
    HRESULT (STDMETHODCALLTYPE *GetClassID)(
        IMimePropertySet* This,
        CLSID *pClassID);

    /*** IPersistStreamInit methods ***/
    HRESULT (STDMETHODCALLTYPE *IsDirty)(
        IMimePropertySet* This);

    HRESULT (STDMETHODCALLTYPE *Load)(
        IMimePropertySet* This,
        LPSTREAM pStm);

    HRESULT (STDMETHODCALLTYPE *Save)(
        IMimePropertySet* This,
        LPSTREAM pStm,
        BOOL fClearDirty);

    HRESULT (STDMETHODCALLTYPE *GetSizeMax)(
        IMimePropertySet* This,
        ULARGE_INTEGER *pcbSize);

    HRESULT (STDMETHODCALLTYPE *InitNew)(
        IMimePropertySet* This);

    /*** IMimePropertySet methods ***/
    HRESULT (STDMETHODCALLTYPE *GetPropInfo)(
        IMimePropertySet* This,
        LPCSTR pszName,
        LPMIMEPROPINFO pInfo);

    HRESULT (STDMETHODCALLTYPE *SetPropInfo)(
        IMimePropertySet* This,
        LPCSTR pszName,
        LPCMIMEPROPINFO pInfo);

    HRESULT (STDMETHODCALLTYPE *GetProp)(
        IMimePropertySet* This,
        LPCSTR pszName,
        DWORD dwFlags,
        LPPROPVARIANT pValue);

    HRESULT (STDMETHODCALLTYPE *SetProp)(
        IMimePropertySet* This,
        LPCSTR pszName,
        DWORD dwFlags,
        LPCPROPVARIANT pValue);

    HRESULT (STDMETHODCALLTYPE *AppendProp)(
        IMimePropertySet* This,
        LPCSTR pszName,
        DWORD dwFlags,
        LPPROPVARIANT pValue);

    HRESULT (STDMETHODCALLTYPE *DeleteProp)(
        IMimePropertySet* This,
        LPCSTR pszName);

    HRESULT (STDMETHODCALLTYPE *CopyProps)(
        IMimePropertySet* This,
        ULONG cNames,
        LPCSTR *prgszName,
        IMimePropertySet *pPropertySet);

    HRESULT (STDMETHODCALLTYPE *MoveProps)(
        IMimePropertySet* This,
        ULONG cNames,
        LPCSTR *prgszName,
        IMimePropertySet *pPropertySet);

    HRESULT (STDMETHODCALLTYPE *DeleteExcept)(
        IMimePropertySet* This,
        ULONG cNames,
        LPCSTR *prgszName);

    HRESULT (STDMETHODCALLTYPE *QueryProp)(
        IMimePropertySet* This,
        LPCSTR pszName,
        LPCSTR pszCriteria,
        boolean fSubString,
        boolean fCaseSensitive);

    HRESULT (STDMETHODCALLTYPE *GetCharset)(
        IMimePropertySet* This,
        LPHCHARSET phCharset);

    HRESULT (STDMETHODCALLTYPE *SetCharset)(
        IMimePropertySet* This,
        HCHARSET hCharset,
        CSETAPPLYTYPE applytype);

    HRESULT (STDMETHODCALLTYPE *GetParameters)(
        IMimePropertySet* This,
        LPCSTR pszName,
        ULONG *pcParams,
        LPMIMEPARAMINFO *pprgParam);

    HRESULT (STDMETHODCALLTYPE *IsContentType)(
        IMimePropertySet* This,
        LPCSTR pszPriType,
        LPCSTR pszSubType);

    HRESULT (STDMETHODCALLTYPE *BindToObject)(
        IMimePropertySet* This,
        REFIID riid,
        void **ppvObject);

    HRESULT (STDMETHODCALLTYPE *Clone)(
        IMimePropertySet* This,
        IMimePropertySet **ppPropertySet);

    HRESULT (STDMETHODCALLTYPE *SetOption)(
        IMimePropertySet* This,
        const TYPEDID oid,
        LPCPROPVARIANT pValue);

    HRESULT (STDMETHODCALLTYPE *GetOption)(
        IMimePropertySet* This,
        const TYPEDID oid,
        LPPROPVARIANT pValue);

    HRESULT (STDMETHODCALLTYPE *EnumProps)(
        IMimePropertySet* This,
        DWORD dwFlags,
        IMimeEnumProperties **ppEnum);

    END_INTERFACE
} IMimePropertySetVtbl;
interface IMimePropertySet {
    CONST_VTBL IMimePropertySetVtbl* lpVtbl;
};

#ifdef COBJMACROS
/*** IUnknown methods ***/
#define IMimePropertySet_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
#define IMimePropertySet_AddRef(This) (This)->lpVtbl->AddRef(This)
#define IMimePropertySet_Release(This) (This)->lpVtbl->Release(This)
/*** IPersist methods ***/
#define IMimePropertySet_GetClassID(This,pClassID) (This)->lpVtbl->GetClassID(This,pClassID)
/*** IPersistStreamInit methods ***/
#define IMimePropertySet_IsDirty(This) (This)->lpVtbl->IsDirty(This)
#define IMimePropertySet_Load(This,pStm) (This)->lpVtbl->Load(This,pStm)
#define IMimePropertySet_Save(This,pStm,fClearDirty) (This)->lpVtbl->Save(This,pStm,fClearDirty)
#define IMimePropertySet_GetSizeMax(This,pcbSize) (This)->lpVtbl->GetSizeMax(This,pcbSize)
#define IMimePropertySet_InitNew(This) (This)->lpVtbl->InitNew(This)
/*** IMimePropertySet methods ***/
#define IMimePropertySet_GetPropInfo(This,pszName,pInfo) (This)->lpVtbl->GetPropInfo(This,pszName,pInfo)
#define IMimePropertySet_SetPropInfo(This,pszName,pInfo) (This)->lpVtbl->SetPropInfo(This,pszName,pInfo)
#define IMimePropertySet_GetProp(This,pszName,dwFlags,pValue) (This)->lpVtbl->GetProp(This,pszName,dwFlags,pValue)
#define IMimePropertySet_SetProp(This,pszName,dwFlags,pValue) (This)->lpVtbl->SetProp(This,pszName,dwFlags,pValue)
#define IMimePropertySet_AppendProp(This,pszName,dwFlags,pValue) (This)->lpVtbl->AppendProp(This,pszName,dwFlags,pValue)
#define IMimePropertySet_DeleteProp(This,pszName) (This)->lpVtbl->DeleteProp(This,pszName)
#define IMimePropertySet_CopyProps(This,cNames,prgszName,pPropertySet) (This)->lpVtbl->CopyProps(This,cNames,prgszName,pPropertySet)
#define IMimePropertySet_MoveProps(This,cNames,prgszName,pPropertySet) (This)->lpVtbl->MoveProps(This,cNames,prgszName,pPropertySet)
#define IMimePropertySet_DeleteExcept(This,cNames,prgszName) (This)->lpVtbl->DeleteExcept(This,cNames,prgszName)
#define IMimePropertySet_QueryProp(This,pszName,pszCriteria,fSubString,fCaseSensitive) (This)->lpVtbl->QueryProp(This,pszName,pszCriteria,fSubString,fCaseSensitive)
#define IMimePropertySet_GetCharset(This,phCharset) (This)->lpVtbl->GetCharset(This,phCharset)
#define IMimePropertySet_SetCharset(This,hCharset,applytype) (This)->lpVtbl->SetCharset(This,hCharset,applytype)
#define IMimePropertySet_GetParameters(This,pszName,pcParams,pprgParam) (This)->lpVtbl->GetParameters(This,pszName,pcParams,pprgParam)
#define IMimePropertySet_IsContentType(This,pszPriType,pszSubType) (This)->lpVtbl->IsContentType(This,pszPriType,pszSubType)
#define IMimePropertySet_BindToObject(This,riid,ppvObject) (This)->lpVtbl->BindToObject(This,riid,ppvObject)
#define IMimePropertySet_Clone(This,ppPropertySet) (This)->lpVtbl->Clone(This,ppPropertySet)
#define IMimePropertySet_SetOption(This,oid,pValue) (This)->lpVtbl->SetOption(This,oid,pValue)
#define IMimePropertySet_GetOption(This,oid,pValue) (This)->lpVtbl->GetOption(This,oid,pValue)
#define IMimePropertySet_EnumProps(This,dwFlags,ppEnum) (This)->lpVtbl->EnumProps(This,dwFlags,ppEnum)
#endif

#endif

HRESULT STDMETHODCALLTYPE IMimePropertySet_GetPropInfo_Proxy(
    IMimePropertySet* This,
    LPCSTR pszName,
    LPMIMEPROPINFO pInfo);
void __RPC_STUB IMimePropertySet_GetPropInfo_Stub(
    IRpcStubBuffer* This,
    IRpcChannelBuffer* pRpcChannelBuffer,
    PRPC_MESSAGE pRpcMessage,
    DWORD* pdwStubPhase);
HRESULT STDMETHODCALLTYPE IMimePropertySet_SetPropInfo_Proxy(
    IMimePropertySet* This,
    LPCSTR pszName,
    LPCMIMEPROPINFO pInfo);
void __RPC_STUB IMimePropertySet_SetPropInfo_Stub(
    IRpcStubBuffer* This,
    IRpcChannelBuffer* pRpcChannelBuffer,
    PRPC_MESSAGE pRpcMessage,
    DWORD* pdwStubPhase);
HRESULT STDMETHODCALLTYPE IMimePropertySet_GetProp_Proxy(
    IMimePropertySet* This,
    LPCSTR pszName,
    DWORD dwFlags,
    LPPROPVARIANT pValue);
void __RPC_STUB IMimePropertySet_GetProp_Stub(
    IRpcStubBuffer* This,
    IRpcChannelBuffer* pRpcChannelBuffer,
    PRPC_MESSAGE pRpcMessage,
    DWORD* pdwStubPhase);
HRESULT STDMETHODCALLTYPE IMimePropertySet_SetProp_Proxy(
    IMimePropertySet* This,
    LPCSTR pszName,
    DWORD dwFlags,
    LPCPROPVARIANT pValue);
void __RPC_STUB IMimePropertySet_SetProp_Stub(
    IRpcStubBuffer* This,
    IRpcChannelBuffer* pRpcChannelBuffer,
    PRPC_MESSAGE pRpcMessage,
    DWORD* pdwStubPhase);
HRESULT STDMETHODCALLTYPE IMimePropertySet_AppendProp_Proxy(
    IMimePropertySet* This,
    LPCSTR pszName,
    DWORD dwFlags,
    LPPROPVARIANT pValue);
void __RPC_STUB IMimePropertySet_AppendProp_Stub(
    IRpcStubBuffer* This,
    IRpcChannelBuffer* pRpcChannelBuffer,
    PRPC_MESSAGE pRpcMessage,
    DWORD* pdwStubPhase);
HRESULT STDMETHODCALLTYPE IMimePropertySet_DeleteProp_Proxy(
    IMimePropertySet* This,
    LPCSTR pszName);
void __RPC_STUB IMimePropertySet_DeleteProp_Stub(
    IRpcStubBuffer* This,
    IRpcChannelBuffer* pRpcChannelBuffer,
    PRPC_MESSAGE pRpcMessage,
    DWORD* pdwStubPhase);
HRESULT STDMETHODCALLTYPE IMimePropertySet_CopyProps_Proxy(
    IMimePropertySet* This,
    ULONG cNames,
    LPCSTR *prgszName,
    IMimePropertySet *pPropertySet);
void __RPC_STUB IMimePropertySet_CopyProps_Stub(
    IRpcStubBuffer* This,
    IRpcChannelBuffer* pRpcChannelBuffer,
    PRPC_MESSAGE pRpcMessage,
    DWORD* pdwStubPhase);
HRESULT STDMETHODCALLTYPE IMimePropertySet_MoveProps_Proxy(
    IMimePropertySet* This,
    ULONG cNames,
    LPCSTR *prgszName,
    IMimePropertySet *pPropertySet);
void __RPC_STUB IMimePropertySet_MoveProps_Stub(
    IRpcStubBuffer* This,
    IRpcChannelBuffer* pRpcChannelBuffer,
    PRPC_MESSAGE pRpcMessage,
    DWORD* pdwStubPhase);
HRESULT STDMETHODCALLTYPE IMimePropertySet_DeleteExcept_Proxy(
    IMimePropertySet* This,
    ULONG cNames,
    LPCSTR *prgszName);
void __RPC_STUB IMimePropertySet_DeleteExcept_Stub(
    IRpcStubBuffer* This,
    IRpcChannelBuffer* pRpcChannelBuffer,
    PRPC_MESSAGE pRpcMessage,
    DWORD* pdwStubPhase);
HRESULT STDMETHODCALLTYPE IMimePropertySet_QueryProp_Proxy(
    IMimePropertySet* This,
    LPCSTR pszName,
    LPCSTR pszCriteria,
    boolean fSubString,
    boolean fCaseSensitive);
void __RPC_STUB IMimePropertySet_QueryProp_Stub(
    IRpcStubBuffer* This,
    IRpcChannelBuffer* pRpcChannelBuffer,
    PRPC_MESSAGE pRpcMessage,
    DWORD* pdwStubPhase);
HRESULT STDMETHODCALLTYPE IMimePropertySet_GetCharset_Proxy(
    IMimePropertySet* This,
    LPHCHARSET phCharset);
void __RPC_STUB IMimePropertySet_GetCharset_Stub(
    IRpcStubBuffer* This,
    IRpcChannelBuffer* pRpcChannelBuffer,
    PRPC_MESSAGE pRpcMessage,
    DWORD* pdwStubPhase);
HRESULT STDMETHODCALLTYPE IMimePropertySet_SetCharset_Proxy(
    IMimePropertySet* This,
    HCHARSET hCharset,
    CSETAPPLYTYPE applytype);
void __RPC_STUB IMimePropertySet_SetCharset_Stub(
    IRpcStubBuffer* This,
    IRpcChannelBuffer* pRpcChannelBuffer,
    PRPC_MESSAGE pRpcMessage,
    DWORD* pdwStubPhase);
HRESULT STDMETHODCALLTYPE IMimePropertySet_GetParameters_Proxy(
    IMimePropertySet* This,
    LPCSTR pszName,
    ULONG *pcParams,
    LPMIMEPARAMINFO *pprgParam);
void __RPC_STUB IMimePropertySet_GetParameters_Stub(
    IRpcStubBuffer* This,
    IRpcChannelBuffer* pRpcChannelBuffer,
    PRPC_MESSAGE pRpcMessage,
    DWORD* pdwStubPhase);
HRESULT STDMETHODCALLTYPE IMimePropertySet_IsContentType_Proxy(
    IMimePropertySet* This,
    LPCSTR pszPriType,
    LPCSTR pszSubType);
void __RPC_STUB IMimePropertySet_IsContentType_Stub(
    IRpcStubBuffer* This,
    IRpcChannelBuffer* pRpcChannelBuffer,
    PRPC_MESSAGE pRpcMessage,
    DWORD* pdwStubPhase);
HRESULT STDMETHODCALLTYPE IMimePropertySet_BindToObject_Proxy(
    IMimePropertySet* This,
    REFIID riid,
    void **ppvObject);
void __RPC_STUB IMimePropertySet_BindToObject_Stub(
    IRpcStubBuffer* This,
    IRpcChannelBuffer* pRpcChannelBuffer,
    PRPC_MESSAGE pRpcMessage,
    DWORD* pdwStubPhase);
HRESULT STDMETHODCALLTYPE IMimePropertySet_Clone_Proxy(
    IMimePropertySet* This,
    IMimePropertySet **ppPropertySet);
void __RPC_STUB IMimePropertySet_Clone_Stub(
    IRpcStubBuffer* This,
    IRpcChannelBuffer* pRpcChannelBuffer,
    PRPC_MESSAGE pRpcMessage,
    DWORD* pdwStubPhase);
HRESULT STDMETHODCALLTYPE IMimePropertySet_SetOption_Proxy(
    IMimePropertySet* This,
    const TYPEDID oid,
    LPCPROPVARIANT pValue);
void __RPC_STUB IMimePropertySet_SetOption_Stub(
    IRpcStubBuffer* This,
    IRpcChannelBuffer* pRpcChannelBuffer,
    PRPC_MESSAGE pRpcMessage,
    DWORD* pdwStubPhase);
HRESULT STDMETHODCALLTYPE IMimePropertySet_GetOption_Proxy(
    IMimePropertySet* This,
    const TYPEDID oid,
    LPPROPVARIANT pValue);
void __RPC_STUB IMimePropertySet_GetOption_Stub(
    IRpcStubBuffer* This,
    IRpcChannelBuffer* pRpcChannelBuffer,
    PRPC_MESSAGE pRpcMessage,
    DWORD* pdwStubPhase);
HRESULT STDMETHODCALLTYPE IMimePropertySet_EnumProps_Proxy(
    IMimePropertySet* This,
    DWORD dwFlags,
    IMimeEnumProperties **ppEnum);
void __RPC_STUB IMimePropertySet_EnumProps_Stub(
    IRpcStubBuffer* This,
    IRpcChannelBuffer* pRpcChannelBuffer,
    PRPC_MESSAGE pRpcMessage,
    DWORD* pdwStubPhase);

#endif  /* __IMimePropertySet_INTERFACE_DEFINED__ */

/*****************************************************************************
 * IMimeAddressTable interface
 */
#ifndef __IMimeAddressTable_INTERFACE_DEFINED__
#define __IMimeAddressTable_INTERFACE_DEFINED__

typedef IMimeAddressTable *LPMIMEADDRESSTABLE;
typedef void *HADDRESS;
typedef HADDRESS *LPHADDRESS;
typedef DWORD IADDRESSTYPE;
typedef enum tagADDRESSFORMAT {
    AFT_DISPLAY_FRIENDLY = 0,
    AFT_DISPLAY_EMAIL = 1,
    AFT_DISPLAY_BOTH = 2,
    AFT_RFC822_DECODED = 3,
    AFT_RFC822_ENCODED = 4,
    AFT_RFC822_TRANSMIT = 5
} ADDRESSFORMAT;
typedef struct tagADDRESSPROPS {
    DWORD dwProps;
    HADDRESS hAddress;
    ENCODINGTYPE ietFriendly;
    HCHARSET hCharset;
    DWORD dwAdrType;
    LPSTR pszFriendly;
    LPWSTR pwszReserved;
    LPSTR pszEmail;
    CERTSTATE certstate;
    THUMBBLOB tbSigning;
    THUMBBLOB tbEncryption;
    DWORD dwCookie;
    DWORD dwReserved1;
    DWORD dwReserved2;
} ADRESSPROPS;
typedef struct tagADDRESSPROPS *LPADDRESSPROPS;
typedef struct tagADDRESSLIST {
    ULONG cAdrs;
    LPADDRESSPROPS prgAdr;
} ADDRESSLIST;
typedef struct tagADDRESSLIST *LPADDRESSLIST;
DEFINE_GUID(IID_IMimeAddressTable, 0xc558834a, 0x7f86, 0x11d0, 0x82,0x52, 0x00,0xc0,0x4f,0xd8,0x5a,0xb4);
#if defined(__cplusplus) && !defined(CINTERFACE)
MIDL_INTERFACE("c558834a-7f86-11d0-8252-00c04fd85ab4")
IMimeAddressTable : public IUnknown
{
};
#ifdef __CRT_UUID_DECL
__CRT_UUID_DECL(IMimeAddressTable, 0xc558834a, 0x7f86, 0x11d0, 0x82,0x52, 0x00,0xc0,0x4f,0xd8,0x5a,0xb4)
#endif
#else
typedef struct IMimeAddressTableVtbl {
    BEGIN_INTERFACE

    /*** IUnknown methods ***/
    HRESULT (STDMETHODCALLTYPE *QueryInterface)(
        IMimeAddressTable* This,
        REFIID riid,
        void **ppvObject);

    ULONG (STDMETHODCALLTYPE *AddRef)(
        IMimeAddressTable* This);

    ULONG (STDMETHODCALLTYPE *Release)(
        IMimeAddressTable* This);

    END_INTERFACE
} IMimeAddressTableVtbl;
interface IMimeAddressTable {
    CONST_VTBL IMimeAddressTableVtbl* lpVtbl;
};

#ifdef COBJMACROS
/*** IUnknown methods ***/
#define IMimeAddressTable_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
#define IMimeAddressTable_AddRef(This) (This)->lpVtbl->AddRef(This)
#define IMimeAddressTable_Release(This) (This)->lpVtbl->Release(This)
#endif

#endif


#endif  /* __IMimeAddressTable_INTERFACE_DEFINED__ */

/*****************************************************************************
 * IMimeWebDocument interface
 */
#ifndef __IMimeWebDocument_INTERFACE_DEFINED__
#define __IMimeWebDocument_INTERFACE_DEFINED__

DEFINE_GUID(IID_IMimeWebDocument, 0xee519f11, 0x851a, 0x11d0, 0x82,0x52, 0x00,0xc0,0x4f,0xd8,0x5a,0xb4);
#if defined(__cplusplus) && !defined(CINTERFACE)
MIDL_INTERFACE("ee519f11-851a-11d0-8252-00c04fd85ab4")
IMimeWebDocument : public IUnknown
{
};
#ifdef __CRT_UUID_DECL
__CRT_UUID_DECL(IMimeWebDocument, 0xee519f11, 0x851a, 0x11d0, 0x82,0x52, 0x00,0xc0,0x4f,0xd8,0x5a,0xb4)
#endif
#else
typedef struct IMimeWebDocumentVtbl {
    BEGIN_INTERFACE

    /*** IUnknown methods ***/
    HRESULT (STDMETHODCALLTYPE *QueryInterface)(
        IMimeWebDocument* This,
        REFIID riid,
        void **ppvObject);

    ULONG (STDMETHODCALLTYPE *AddRef)(
        IMimeWebDocument* This);

    ULONG (STDMETHODCALLTYPE *Release)(
        IMimeWebDocument* This);

    END_INTERFACE
} IMimeWebDocumentVtbl;
interface IMimeWebDocument {
    CONST_VTBL IMimeWebDocumentVtbl* lpVtbl;
};

#ifdef COBJMACROS
/*** IUnknown methods ***/
#define IMimeWebDocument_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
#define IMimeWebDocument_AddRef(This) (This)->lpVtbl->AddRef(This)
#define IMimeWebDocument_Release(This) (This)->lpVtbl->Release(This)
#endif

#endif


#endif  /* __IMimeWebDocument_INTERFACE_DEFINED__ */

/*****************************************************************************
 * IMimeBody interface
 */
#ifndef __IMimeBody_INTERFACE_DEFINED__
#define __IMimeBody_INTERFACE_DEFINED__

typedef IMimeBody *LPMIMEBODY;
typedef enum tagIMSGBODYTYPE {
    IBT_SECURE = 0,
    IBT_ATTACHMENT = 1,
    IBT_EMPTY = 2,
    IBT_CSETTAGGED = 3,
    IBT_AUTOATTACH = 4
} IMSGBODYTYPE;
typedef struct tagBODYOFFSETS {
    DWORD cbBoundaryStart;
    DWORD cbHeaderStart;
    DWORD cbBodyStart;
    DWORD cbBodyEnd;
} BODYOFFSETS;
typedef struct tagBODYOFFSETS *LPBODYOFFSETS;
typedef struct tagTRANSMITINFO {
    ENCODINGTYPE ietCurrent;
    ENCODINGTYPE ietXmitMime;
    ENCODINGTYPE ietXmit822;
    ULONG cbLongestLine;
    ULONG cExtended;
    ULONG ulPercentExt;
    ULONG cbSize;
    ULONG cLines;
} TRANSMITINFO;
typedef struct tagTRANSMITINFO *LPTRANSMITINFO;
DEFINE_GUID(IID_IMimeBody, 0xc558834c, 0x7f86, 0x11d0, 0x82,0x52, 0x00,0xc0,0x4f,0xd8,0x5a,0xb4);
#if defined(__cplusplus) && !defined(CINTERFACE)
MIDL_INTERFACE("c558834c-7f86-11d0-8252-00c04fd85ab4")
IMimeBody : public IMimePropertySet
{
    virtual HRESULT STDMETHODCALLTYPE IsType(
        IMSGBODYTYPE bodytype) = 0;

    virtual HRESULT STDMETHODCALLTYPE SetDisplayName(
        LPCSTR pszDisplay) = 0;

    virtual HRESULT STDMETHODCALLTYPE GetDisplayName(
        LPSTR *ppszDisplay) = 0;

    virtual HRESULT STDMETHODCALLTYPE GetOffsets(
        LPBODYOFFSETS pOffsets) = 0;

    virtual HRESULT STDMETHODCALLTYPE GetCurrentEncoding(
        ENCODINGTYPE *pietEncoding) = 0;

    virtual HRESULT STDMETHODCALLTYPE SetCurrentEncoding(
        ENCODINGTYPE ietEncoding) = 0;

    virtual HRESULT STDMETHODCALLTYPE GetEstimatedSize(
        ENCODINGTYPE ietEncoding,
        ULONG *pcbSize) = 0;

    virtual HRESULT STDMETHODCALLTYPE GetDataHere(
        ENCODINGTYPE ietEncoding,
        IStream *pStream) = 0;

    virtual HRESULT STDMETHODCALLTYPE GetData(
        ENCODINGTYPE ietEncoding,
        IStream **ppStream) = 0;

    virtual HRESULT STDMETHODCALLTYPE SetData(
        ENCODINGTYPE ietEncoding,
        LPCSTR pszPriType,
        LPCSTR pszSubType,
        REFIID riid,
        LPVOID pvObject) = 0;

    virtual HRESULT STDMETHODCALLTYPE EmptyData(
        ) = 0;

    virtual HRESULT STDMETHODCALLTYPE CopyTo(
        IMimeBody *pBody) = 0;

    virtual HRESULT STDMETHODCALLTYPE GetTransmitInfo(
        LPTRANSMITINFO pTransmitInfo) = 0;

    virtual HRESULT STDMETHODCALLTYPE SaveToFile(
        ENCODINGTYPE ietEncoding,
        LPCSTR pszFilePath) = 0;

    virtual HRESULT STDMETHODCALLTYPE GetHandle(
        LPHBODY phBody) = 0;

};
#ifdef __CRT_UUID_DECL
__CRT_UUID_DECL(IMimeBody, 0xc558834c, 0x7f86, 0x11d0, 0x82,0x52, 0x00,0xc0,0x4f,0xd8,0x5a,0xb4)
#endif
#else
typedef struct IMimeBodyVtbl {
    BEGIN_INTERFACE

    /*** IUnknown methods ***/
    HRESULT (STDMETHODCALLTYPE *QueryInterface)(
        IMimeBody* This,
        REFIID riid,
        void **ppvObject);

    ULONG (STDMETHODCALLTYPE *AddRef)(
        IMimeBody* This);

    ULONG (STDMETHODCALLTYPE *Release)(
        IMimeBody* This);

    /*** IPersist methods ***/
    HRESULT (STDMETHODCALLTYPE *GetClassID)(
        IMimeBody* This,
        CLSID *pClassID);

    /*** IPersistStreamInit methods ***/
    HRESULT (STDMETHODCALLTYPE *IsDirty)(
        IMimeBody* This);

    HRESULT (STDMETHODCALLTYPE *Load)(
        IMimeBody* This,
        LPSTREAM pStm);

    HRESULT (STDMETHODCALLTYPE *Save)(
        IMimeBody* This,
        LPSTREAM pStm,
        BOOL fClearDirty);

    HRESULT (STDMETHODCALLTYPE *GetSizeMax)(
        IMimeBody* This,
        ULARGE_INTEGER *pcbSize);

    HRESULT (STDMETHODCALLTYPE *InitNew)(
        IMimeBody* This);

    /*** IMimePropertySet methods ***/
    HRESULT (STDMETHODCALLTYPE *GetPropInfo)(
        IMimeBody* This,
        LPCSTR pszName,
        LPMIMEPROPINFO pInfo);

    HRESULT (STDMETHODCALLTYPE *SetPropInfo)(
        IMimeBody* This,
        LPCSTR pszName,
        LPCMIMEPROPINFO pInfo);

    HRESULT (STDMETHODCALLTYPE *GetProp)(
        IMimeBody* This,
        LPCSTR pszName,
        DWORD dwFlags,
        LPPROPVARIANT pValue);

    HRESULT (STDMETHODCALLTYPE *SetProp)(
        IMimeBody* This,
        LPCSTR pszName,
        DWORD dwFlags,
        LPCPROPVARIANT pValue);

    HRESULT (STDMETHODCALLTYPE *AppendProp)(
        IMimeBody* This,
        LPCSTR pszName,
        DWORD dwFlags,
        LPPROPVARIANT pValue);

    HRESULT (STDMETHODCALLTYPE *DeleteProp)(
        IMimeBody* This,
        LPCSTR pszName);

    HRESULT (STDMETHODCALLTYPE *CopyProps)(
        IMimeBody* This,
        ULONG cNames,
        LPCSTR *prgszName,
        IMimePropertySet *pPropertySet);

    HRESULT (STDMETHODCALLTYPE *MoveProps)(
        IMimeBody* This,
        ULONG cNames,
        LPCSTR *prgszName,
        IMimePropertySet *pPropertySet);

    HRESULT (STDMETHODCALLTYPE *DeleteExcept)(
        IMimeBody* This,
        ULONG cNames,
        LPCSTR *prgszName);

    HRESULT (STDMETHODCALLTYPE *QueryProp)(
        IMimeBody* This,
        LPCSTR pszName,
        LPCSTR pszCriteria,
        boolean fSubString,
        boolean fCaseSensitive);

    HRESULT (STDMETHODCALLTYPE *GetCharset)(
        IMimeBody* This,
        LPHCHARSET phCharset);

    HRESULT (STDMETHODCALLTYPE *SetCharset)(
        IMimeBody* This,
        HCHARSET hCharset,
        CSETAPPLYTYPE applytype);

    HRESULT (STDMETHODCALLTYPE *GetParameters)(
        IMimeBody* This,
        LPCSTR pszName,
        ULONG *pcParams,
        LPMIMEPARAMINFO *pprgParam);

    HRESULT (STDMETHODCALLTYPE *IsContentType)(
        IMimeBody* This,
        LPCSTR pszPriType,
        LPCSTR pszSubType);

    HRESULT (STDMETHODCALLTYPE *BindToObject)(
        IMimeBody* This,
        REFIID riid,
        void **ppvObject);

    HRESULT (STDMETHODCALLTYPE *Clone)(
        IMimeBody* This,
        IMimePropertySet **ppPropertySet);

    HRESULT (STDMETHODCALLTYPE *SetOption)(
        IMimeBody* This,
        const TYPEDID oid,
        LPCPROPVARIANT pValue);

    HRESULT (STDMETHODCALLTYPE *GetOption)(
        IMimeBody* This,
        const TYPEDID oid,
        LPPROPVARIANT pValue);

    HRESULT (STDMETHODCALLTYPE *EnumProps)(
        IMimeBody* This,
        DWORD dwFlags,
        IMimeEnumProperties **ppEnum);

    /*** IMimeBody methods ***/
    HRESULT (STDMETHODCALLTYPE *IsType)(
        IMimeBody* This,
        IMSGBODYTYPE bodytype);

    HRESULT (STDMETHODCALLTYPE *SetDisplayName)(
        IMimeBody* This,
        LPCSTR pszDisplay);

    HRESULT (STDMETHODCALLTYPE *GetDisplayName)(
        IMimeBody* This,
        LPSTR *ppszDisplay);

    HRESULT (STDMETHODCALLTYPE *GetOffsets)(
        IMimeBody* This,
        LPBODYOFFSETS pOffsets);

    HRESULT (STDMETHODCALLTYPE *GetCurrentEncoding)(
        IMimeBody* This,
        ENCODINGTYPE *pietEncoding);

    HRESULT (STDMETHODCALLTYPE *SetCurrentEncoding)(
        IMimeBody* This,
        ENCODINGTYPE ietEncoding);

    HRESULT (STDMETHODCALLTYPE *GetEstimatedSize)(
        IMimeBody* This,
        ENCODINGTYPE ietEncoding,
        ULONG *pcbSize);

    HRESULT (STDMETHODCALLTYPE *GetDataHere)(
        IMimeBody* This,
        ENCODINGTYPE ietEncoding,
        IStream *pStream);

    HRESULT (STDMETHODCALLTYPE *GetData)(
        IMimeBody* This,
        ENCODINGTYPE ietEncoding,
        IStream **ppStream);

    HRESULT (STDMETHODCALLTYPE *SetData)(
        IMimeBody* This,
        ENCODINGTYPE ietEncoding,
        LPCSTR pszPriType,
        LPCSTR pszSubType,
        REFIID riid,
        LPVOID pvObject);

    HRESULT (STDMETHODCALLTYPE *EmptyData)(
        IMimeBody* This);

    HRESULT (STDMETHODCALLTYPE *CopyTo)(
        IMimeBody* This,
        IMimeBody *pBody);

    HRESULT (STDMETHODCALLTYPE *GetTransmitInfo)(
        IMimeBody* This,
        LPTRANSMITINFO pTransmitInfo);

    HRESULT (STDMETHODCALLTYPE *SaveToFile)(
        IMimeBody* This,
        ENCODINGTYPE ietEncoding,
        LPCSTR pszFilePath);

    HRESULT (STDMETHODCALLTYPE *GetHandle)(
        IMimeBody* This,
        LPHBODY phBody);

    END_INTERFACE
} IMimeBodyVtbl;
interface IMimeBody {
    CONST_VTBL IMimeBodyVtbl* lpVtbl;
};

#ifdef COBJMACROS
/*** IUnknown methods ***/
#define IMimeBody_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
#define IMimeBody_AddRef(This) (This)->lpVtbl->AddRef(This)
#define IMimeBody_Release(This) (This)->lpVtbl->Release(This)
/*** IPersist methods ***/
#define IMimeBody_GetClassID(This,pClassID) (This)->lpVtbl->GetClassID(This,pClassID)
/*** IPersistStreamInit methods ***/
#define IMimeBody_IsDirty(This) (This)->lpVtbl->IsDirty(This)
#define IMimeBody_Load(This,pStm) (This)->lpVtbl->Load(This,pStm)
#define IMimeBody_Save(This,pStm,fClearDirty) (This)->lpVtbl->Save(This,pStm,fClearDirty)
#define IMimeBody_GetSizeMax(This,pcbSize) (This)->lpVtbl->GetSizeMax(This,pcbSize)
#define IMimeBody_InitNew(This) (This)->lpVtbl->InitNew(This)
/*** IMimePropertySet methods ***/
#define IMimeBody_GetPropInfo(This,pszName,pInfo) (This)->lpVtbl->GetPropInfo(This,pszName,pInfo)
#define IMimeBody_SetPropInfo(This,pszName,pInfo) (This)->lpVtbl->SetPropInfo(This,pszName,pInfo)
#define IMimeBody_GetProp(This,pszName,dwFlags,pValue) (This)->lpVtbl->GetProp(This,pszName,dwFlags,pValue)
#define IMimeBody_SetProp(This,pszName,dwFlags,pValue) (This)->lpVtbl->SetProp(This,pszName,dwFlags,pValue)
#define IMimeBody_AppendProp(This,pszName,dwFlags,pValue) (This)->lpVtbl->AppendProp(This,pszName,dwFlags,pValue)
#define IMimeBody_DeleteProp(This,pszName) (This)->lpVtbl->DeleteProp(This,pszName)
#define IMimeBody_CopyProps(This,cNames,prgszName,pPropertySet) (This)->lpVtbl->CopyProps(This,cNames,prgszName,pPropertySet)
#define IMimeBody_MoveProps(This,cNames,prgszName,pPropertySet) (This)->lpVtbl->MoveProps(This,cNames,prgszName,pPropertySet)
#define IMimeBody_DeleteExcept(This,cNames,prgszName) (This)->lpVtbl->DeleteExcept(This,cNames,prgszName)
#define IMimeBody_QueryProp(This,pszName,pszCriteria,fSubString,fCaseSensitive) (This)->lpVtbl->QueryProp(This,pszName,pszCriteria,fSubString,fCaseSensitive)
#define IMimeBody_GetCharset(This,phCharset) (This)->lpVtbl->GetCharset(This,phCharset)
#define IMimeBody_SetCharset(This,hCharset,applytype) (This)->lpVtbl->SetCharset(This,hCharset,applytype)
#define IMimeBody_GetParameters(This,pszName,pcParams,pprgParam) (This)->lpVtbl->GetParameters(This,pszName,pcParams,pprgParam)
#define IMimeBody_IsContentType(This,pszPriType,pszSubType) (This)->lpVtbl->IsContentType(This,pszPriType,pszSubType)
#define IMimeBody_BindToObject(This,riid,ppvObject) (This)->lpVtbl->BindToObject(This,riid,ppvObject)
#define IMimeBody_Clone(This,ppPropertySet) (This)->lpVtbl->Clone(This,ppPropertySet)
#define IMimeBody_SetOption(This,oid,pValue) (This)->lpVtbl->SetOption(This,oid,pValue)
#define IMimeBody_GetOption(This,oid,pValue) (This)->lpVtbl->GetOption(This,oid,pValue)
#define IMimeBody_EnumProps(This,dwFlags,ppEnum) (This)->lpVtbl->EnumProps(This,dwFlags,ppEnum)
/*** IMimeBody methods ***/
#define IMimeBody_IsType(This,bodytype) (This)->lpVtbl->IsType(This,bodytype)
#define IMimeBody_SetDisplayName(This,pszDisplay) (This)->lpVtbl->SetDisplayName(This,pszDisplay)
#define IMimeBody_GetDisplayName(This,ppszDisplay) (This)->lpVtbl->GetDisplayName(This,ppszDisplay)
#define IMimeBody_GetOffsets(This,pOffsets) (This)->lpVtbl->GetOffsets(This,pOffsets)
#define IMimeBody_GetCurrentEncoding(This,pietEncoding) (This)->lpVtbl->GetCurrentEncoding(This,pietEncoding)
#define IMimeBody_SetCurrentEncoding(This,ietEncoding) (This)->lpVtbl->SetCurrentEncoding(This,ietEncoding)
#define IMimeBody_GetEstimatedSize(This,ietEncoding,pcbSize) (This)->lpVtbl->GetEstimatedSize(This,ietEncoding,pcbSize)
#define IMimeBody_GetDataHere(This,ietEncoding,pStream) (This)->lpVtbl->GetDataHere(This,ietEncoding,pStream)
#define IMimeBody_GetData(This,ietEncoding,ppStream) (This)->lpVtbl->GetData(This,ietEncoding,ppStream)
#define IMimeBody_SetData(This,ietEncoding,pszPriType,pszSubType,riid,pvObject) (This)->lpVtbl->SetData(This,ietEncoding,pszPriType,pszSubType,riid,pvObject)
#define IMimeBody_EmptyData(This) (This)->lpVtbl->EmptyData(This)
#define IMimeBody_CopyTo(This,pBody) (This)->lpVtbl->CopyTo(This,pBody)
#define IMimeBody_GetTransmitInfo(This,pTransmitInfo) (This)->lpVtbl->GetTransmitInfo(This,pTransmitInfo)
#define IMimeBody_SaveToFile(This,ietEncoding,pszFilePath) (This)->lpVtbl->SaveToFile(This,ietEncoding,pszFilePath)
#define IMimeBody_GetHandle(This,phBody) (This)->lpVtbl->GetHandle(This,phBody)
#endif

#endif

HRESULT STDMETHODCALLTYPE IMimeBody_IsType_Proxy(
    IMimeBody* This,
    IMSGBODYTYPE bodytype);
void __RPC_STUB IMimeBody_IsType_Stub(
    IRpcStubBuffer* This,
    IRpcChannelBuffer* pRpcChannelBuffer,
    PRPC_MESSAGE pRpcMessage,
    DWORD* pdwStubPhase);
HRESULT STDMETHODCALLTYPE IMimeBody_SetDisplayName_Proxy(
    IMimeBody* This,
    LPCSTR pszDisplay);
void __RPC_STUB IMimeBody_SetDisplayName_Stub(
    IRpcStubBuffer* This,
    IRpcChannelBuffer* pRpcChannelBuffer,
    PRPC_MESSAGE pRpcMessage,
    DWORD* pdwStubPhase);
HRESULT STDMETHODCALLTYPE IMimeBody_GetDisplayName_Proxy(
    IMimeBody* This,
    LPSTR *ppszDisplay);
void __RPC_STUB IMimeBody_GetDisplayName_Stub(
    IRpcStubBuffer* This,
    IRpcChannelBuffer* pRpcChannelBuffer,
    PRPC_MESSAGE pRpcMessage,
    DWORD* pdwStubPhase);
HRESULT STDMETHODCALLTYPE IMimeBody_GetOffsets_Proxy(
    IMimeBody* This,
    LPBODYOFFSETS pOffsets);
void __RPC_STUB IMimeBody_GetOffsets_Stub(
    IRpcStubBuffer* This,
    IRpcChannelBuffer* pRpcChannelBuffer,
    PRPC_MESSAGE pRpcMessage,
    DWORD* pdwStubPhase);
HRESULT STDMETHODCALLTYPE IMimeBody_GetCurrentEncoding_Proxy(
    IMimeBody* This,
    ENCODINGTYPE *pietEncoding);
void __RPC_STUB IMimeBody_GetCurrentEncoding_Stub(
    IRpcStubBuffer* This,
    IRpcChannelBuffer* pRpcChannelBuffer,
    PRPC_MESSAGE pRpcMessage,
    DWORD* pdwStubPhase);
HRESULT STDMETHODCALLTYPE IMimeBody_SetCurrentEncoding_Proxy(
    IMimeBody* This,
    ENCODINGTYPE ietEncoding);
void __RPC_STUB IMimeBody_SetCurrentEncoding_Stub(
    IRpcStubBuffer* This,
    IRpcChannelBuffer* pRpcChannelBuffer,
    PRPC_MESSAGE pRpcMessage,
    DWORD* pdwStubPhase);
HRESULT STDMETHODCALLTYPE IMimeBody_GetEstimatedSize_Proxy(
    IMimeBody* This,
    ENCODINGTYPE ietEncoding,
    ULONG *pcbSize);
void __RPC_STUB IMimeBody_GetEstimatedSize_Stub(
    IRpcStubBuffer* This,
    IRpcChannelBuffer* pRpcChannelBuffer,
    PRPC_MESSAGE pRpcMessage,
    DWORD* pdwStubPhase);
HRESULT STDMETHODCALLTYPE IMimeBody_GetDataHere_Proxy(
    IMimeBody* This,
    ENCODINGTYPE ietEncoding,
    IStream *pStream);
void __RPC_STUB IMimeBody_GetDataHere_Stub(
    IRpcStubBuffer* This,
    IRpcChannelBuffer* pRpcChannelBuffer,
    PRPC_MESSAGE pRpcMessage,
    DWORD* pdwStubPhase);
HRESULT STDMETHODCALLTYPE IMimeBody_GetData_Proxy(
    IMimeBody* This,
    ENCODINGTYPE ietEncoding,
    IStream **ppStream);
void __RPC_STUB IMimeBody_GetData_Stub(
    IRpcStubBuffer* This,
    IRpcChannelBuffer* pRpcChannelBuffer,
    PRPC_MESSAGE pRpcMessage,
    DWORD* pdwStubPhase);
HRESULT STDMETHODCALLTYPE IMimeBody_SetData_Proxy(
    IMimeBody* This,
    ENCODINGTYPE ietEncoding,
    LPCSTR pszPriType,
    LPCSTR pszSubType,
    REFIID riid,
    LPVOID pvObject);
void __RPC_STUB IMimeBody_SetData_Stub(
    IRpcStubBuffer* This,
    IRpcChannelBuffer* pRpcChannelBuffer,
    PRPC_MESSAGE pRpcMessage,
    DWORD* pdwStubPhase);
HRESULT STDMETHODCALLTYPE IMimeBody_EmptyData_Proxy(
    IMimeBody* This);
void __RPC_STUB IMimeBody_EmptyData_Stub(
    IRpcStubBuffer* This,
    IRpcChannelBuffer* pRpcChannelBuffer,
    PRPC_MESSAGE pRpcMessage,
    DWORD* pdwStubPhase);
HRESULT STDMETHODCALLTYPE IMimeBody_CopyTo_Proxy(
    IMimeBody* This,
    IMimeBody *pBody);
void __RPC_STUB IMimeBody_CopyTo_Stub(
    IRpcStubBuffer* This,
    IRpcChannelBuffer* pRpcChannelBuffer,
    PRPC_MESSAGE pRpcMessage,
    DWORD* pdwStubPhase);
HRESULT STDMETHODCALLTYPE IMimeBody_GetTransmitInfo_Proxy(
    IMimeBody* This,
    LPTRANSMITINFO pTransmitInfo);
void __RPC_STUB IMimeBody_GetTransmitInfo_Stub(
    IRpcStubBuffer* This,
    IRpcChannelBuffer* pRpcChannelBuffer,
    PRPC_MESSAGE pRpcMessage,
    DWORD* pdwStubPhase);
HRESULT STDMETHODCALLTYPE IMimeBody_SaveToFile_Proxy(
    IMimeBody* This,
    ENCODINGTYPE ietEncoding,
    LPCSTR pszFilePath);
void __RPC_STUB IMimeBody_SaveToFile_Stub(
    IRpcStubBuffer* This,
    IRpcChannelBuffer* pRpcChannelBuffer,
    PRPC_MESSAGE pRpcMessage,
    DWORD* pdwStubPhase);
HRESULT STDMETHODCALLTYPE IMimeBody_GetHandle_Proxy(
    IMimeBody* This,
    LPHBODY phBody);
void __RPC_STUB IMimeBody_GetHandle_Stub(
    IRpcStubBuffer* This,
    IRpcChannelBuffer* pRpcChannelBuffer,
    PRPC_MESSAGE pRpcMessage,
    DWORD* pdwStubPhase);

#endif  /* __IMimeBody_INTERFACE_DEFINED__ */

/*****************************************************************************
 * IMimeMessageTree interface
 */
#ifndef __IMimeMessageTree_INTERFACE_DEFINED__
#define __IMimeMessageTree_INTERFACE_DEFINED__

typedef IMimeMessageTree *LPMIMEMESSAGETREE;
#define HBODY_ROOT ((HBODY)-1)

typedef enum tagBODYLOCATION {
    IBL_ROOT = 0,
    IBL_PARENT = 1,
    IBL_FIRST = 2,
    IBL_LAST = 3,
    IBL_NEXT = 4,
    IBL_PREVIOUS = 5
} BODYLOCATION;
typedef struct tagFINDBODY {
    LPSTR pszPriType;
    LPSTR pszSubType;
    DWORD dwReserved;
} FINDBODY;
typedef struct tagFINDBODY *LPFINDBODY;
DEFINE_GUID(IID_IMimeMessageTree, 0xfd853cd4, 0x7f86, 0x11d0, 0x82,0x52, 0x00,0xc0,0x4f,0xd8,0x5a,0xb4);
#if defined(__cplusplus) && !defined(CINTERFACE)
MIDL_INTERFACE("fd853cd4-7f86-11d0-8252-00c04fd85ab4")
IMimeMessageTree : public IPersistStreamInit
{
    virtual HRESULT STDMETHODCALLTYPE GetMessageSource(
        IStream **ppStream,
        DWORD dwFlags) = 0;

    virtual HRESULT STDMETHODCALLTYPE GetMessageSize(
        ULONG *pcbSize,
        DWORD dwFlags) = 0;

    virtual HRESULT STDMETHODCALLTYPE LoadOffsetTable(
        IStream *pStream) = 0;

    virtual HRESULT STDMETHODCALLTYPE SaveOffsetTable(
        IStream *pStream,
        DWORD dwFlags) = 0;

    virtual HRESULT STDMETHODCALLTYPE GetFlags(
        DWORD *pdwFlags) = 0;

    virtual HRESULT STDMETHODCALLTYPE Commit(
        DWORD dwFlags) = 0;

    virtual HRESULT STDMETHODCALLTYPE HandsOffStorage(
        ) = 0;

    virtual HRESULT STDMETHODCALLTYPE BindToObject(
        const HBODY hBody,
        REFIID riid,
        void **ppvObject) = 0;

    virtual HRESULT STDMETHODCALLTYPE SaveBody(
        HBODY hBody,
        DWORD dwFlags,
        IStream *pStream) = 0;

    virtual HRESULT STDMETHODCALLTYPE InsertBody(
        BODYLOCATION location,
        HBODY hPivot,
        LPHBODY phBody) = 0;

    virtual HRESULT STDMETHODCALLTYPE GetBody(
        BODYLOCATION location,
        HBODY hPivot,
        LPHBODY phBody) = 0;

    virtual HRESULT STDMETHODCALLTYPE DeleteBody(
        HBODY hBody,
        DWORD dwFlags) = 0;

    virtual HRESULT STDMETHODCALLTYPE MoveBody(
        HBODY hBody,
        BODYLOCATION location) = 0;

    virtual HRESULT STDMETHODCALLTYPE CountBodies(
        HBODY hParent,
        boolean fRecurse,
        ULONG *pcBodies) = 0;

    virtual HRESULT STDMETHODCALLTYPE FindFirst(
        LPFINDBODY pFindBody,
        LPHBODY phBody) = 0;

    virtual HRESULT STDMETHODCALLTYPE FindNext(
        LPFINDBODY pFindBody,
        LPHBODY phBody) = 0;

    virtual HRESULT STDMETHODCALLTYPE ResolveURL(
        HBODY hRelated,
        LPCSTR pszBase,
        LPCSTR pszURL,
        DWORD dwFlags,
        LPHBODY phBody) = 0;

    virtual HRESULT STDMETHODCALLTYPE ToMultipart(
        HBODY hBody,
        LPCSTR pszSubType,
        LPHBODY phMultipart) = 0;

    virtual HRESULT STDMETHODCALLTYPE GetBodyOffsets(
        HBODY hBody,
        LPBODYOFFSETS pOffsets) = 0;

    virtual HRESULT STDMETHODCALLTYPE GetCharset(
        LPHCHARSET phCharset) = 0;

    virtual HRESULT STDMETHODCALLTYPE SetCharset(
        HCHARSET hCharset,
        CSETAPPLYTYPE applytype) = 0;

    virtual HRESULT STDMETHODCALLTYPE IsBodyType(
        HBODY hBody,
        IMSGBODYTYPE bodytype) = 0;

    virtual HRESULT STDMETHODCALLTYPE IsContentType(
        HBODY hBody,
        LPCSTR pszPriType,
        LPCSTR pszSubType) = 0;

    virtual HRESULT STDMETHODCALLTYPE QueryBodyProp(
        HBODY hBody,
        LPCSTR pszName,
        LPCSTR pszCriteria,
        boolean fSubString,
        boolean fCaseSensitive) = 0;

    virtual HRESULT STDMETHODCALLTYPE GetBodyProp(
        HBODY hBody,
        LPCSTR pszName,
        DWORD dwFlags,
        LPPROPVARIANT pValue) = 0;

    virtual HRESULT STDMETHODCALLTYPE SetBodyProp(
        HBODY hBody,
        LPCSTR pszName,
        DWORD dwFlags,
        LPCPROPVARIANT pValue) = 0;

    virtual HRESULT STDMETHODCALLTYPE DeleteBodyProp(
        HBODY hBody,
        LPCSTR pszName) = 0;

    virtual HRESULT STDMETHODCALLTYPE SetOption(
        const TYPEDID oid,
        LPCPROPVARIANT pValue) = 0;

    virtual HRESULT STDMETHODCALLTYPE GetOption(
        const TYPEDID oid,
        LPPROPVARIANT pValue) = 0;

};
#ifdef __CRT_UUID_DECL
__CRT_UUID_DECL(IMimeMessageTree, 0xfd853cd4, 0x7f86, 0x11d0, 0x82,0x52, 0x00,0xc0,0x4f,0xd8,0x5a,0xb4)
#endif
#else
typedef struct IMimeMessageTreeVtbl {
    BEGIN_INTERFACE

    /*** IUnknown methods ***/
    HRESULT (STDMETHODCALLTYPE *QueryInterface)(
        IMimeMessageTree* This,
        REFIID riid,
        void **ppvObject);

    ULONG (STDMETHODCALLTYPE *AddRef)(
        IMimeMessageTree* This);

    ULONG (STDMETHODCALLTYPE *Release)(
        IMimeMessageTree* This);

    /*** IPersist methods ***/
    HRESULT (STDMETHODCALLTYPE *GetClassID)(
        IMimeMessageTree* This,
        CLSID *pClassID);

    /*** IPersistStreamInit methods ***/
    HRESULT (STDMETHODCALLTYPE *IsDirty)(
        IMimeMessageTree* This);

    HRESULT (STDMETHODCALLTYPE *Load)(
        IMimeMessageTree* This,
        LPSTREAM pStm);

    HRESULT (STDMETHODCALLTYPE *Save)(
        IMimeMessageTree* This,
        LPSTREAM pStm,
        BOOL fClearDirty);

    HRESULT (STDMETHODCALLTYPE *GetSizeMax)(
        IMimeMessageTree* This,
        ULARGE_INTEGER *pcbSize);

    HRESULT (STDMETHODCALLTYPE *InitNew)(
        IMimeMessageTree* This);

    /*** IMimeMessageTree methods ***/
    HRESULT (STDMETHODCALLTYPE *GetMessageSource)(
        IMimeMessageTree* This,
        IStream **ppStream,
        DWORD dwFlags);

    HRESULT (STDMETHODCALLTYPE *GetMessageSize)(
        IMimeMessageTree* This,
        ULONG *pcbSize,
        DWORD dwFlags);

    HRESULT (STDMETHODCALLTYPE *LoadOffsetTable)(
        IMimeMessageTree* This,
        IStream *pStream);

    HRESULT (STDMETHODCALLTYPE *SaveOffsetTable)(
        IMimeMessageTree* This,
        IStream *pStream,
        DWORD dwFlags);

    HRESULT (STDMETHODCALLTYPE *GetFlags)(
        IMimeMessageTree* This,
        DWORD *pdwFlags);

    HRESULT (STDMETHODCALLTYPE *Commit)(
        IMimeMessageTree* This,
        DWORD dwFlags);

    HRESULT (STDMETHODCALLTYPE *HandsOffStorage)(
        IMimeMessageTree* This);

    HRESULT (STDMETHODCALLTYPE *BindToObject)(
        IMimeMessageTree* This,
        const HBODY hBody,
        REFIID riid,
        void **ppvObject);

    HRESULT (STDMETHODCALLTYPE *SaveBody)(
        IMimeMessageTree* This,
        HBODY hBody,
        DWORD dwFlags,
        IStream *pStream);

    HRESULT (STDMETHODCALLTYPE *InsertBody)(
        IMimeMessageTree* This,
        BODYLOCATION location,
        HBODY hPivot,
        LPHBODY phBody);

    HRESULT (STDMETHODCALLTYPE *GetBody)(
        IMimeMessageTree* This,
        BODYLOCATION location,
        HBODY hPivot,
        LPHBODY phBody);

    HRESULT (STDMETHODCALLTYPE *DeleteBody)(
        IMimeMessageTree* This,
        HBODY hBody,
        DWORD dwFlags);

    HRESULT (STDMETHODCALLTYPE *MoveBody)(
        IMimeMessageTree* This,
        HBODY hBody,
        BODYLOCATION location);

    HRESULT (STDMETHODCALLTYPE *CountBodies)(
        IMimeMessageTree* This,
        HBODY hParent,
        boolean fRecurse,
        ULONG *pcBodies);

    HRESULT (STDMETHODCALLTYPE *FindFirst)(
        IMimeMessageTree* This,
        LPFINDBODY pFindBody,
        LPHBODY phBody);

    HRESULT (STDMETHODCALLTYPE *FindNext)(
        IMimeMessageTree* This,
        LPFINDBODY pFindBody,
        LPHBODY phBody);

    HRESULT (STDMETHODCALLTYPE *ResolveURL)(
        IMimeMessageTree* This,
        HBODY hRelated,
        LPCSTR pszBase,
        LPCSTR pszURL,
        DWORD dwFlags,
        LPHBODY phBody);

    HRESULT (STDMETHODCALLTYPE *ToMultipart)(
        IMimeMessageTree* This,
        HBODY hBody,
        LPCSTR pszSubType,
        LPHBODY phMultipart);

    HRESULT (STDMETHODCALLTYPE *GetBodyOffsets)(
        IMimeMessageTree* This,
        HBODY hBody,
        LPBODYOFFSETS pOffsets);

    HRESULT (STDMETHODCALLTYPE *GetCharset)(
        IMimeMessageTree* This,
        LPHCHARSET phCharset);

    HRESULT (STDMETHODCALLTYPE *SetCharset)(
        IMimeMessageTree* This,
        HCHARSET hCharset,
        CSETAPPLYTYPE applytype);

    HRESULT (STDMETHODCALLTYPE *IsBodyType)(
        IMimeMessageTree* This,
        HBODY hBody,
        IMSGBODYTYPE bodytype);

    HRESULT (STDMETHODCALLTYPE *IsContentType)(
        IMimeMessageTree* This,
        HBODY hBody,
        LPCSTR pszPriType,
        LPCSTR pszSubType);

    HRESULT (STDMETHODCALLTYPE *QueryBodyProp)(
        IMimeMessageTree* This,
        HBODY hBody,
        LPCSTR pszName,
        LPCSTR pszCriteria,
        boolean fSubString,
        boolean fCaseSensitive);

    HRESULT (STDMETHODCALLTYPE *GetBodyProp)(
        IMimeMessageTree* This,
        HBODY hBody,
        LPCSTR pszName,
        DWORD dwFlags,
        LPPROPVARIANT pValue);

    HRESULT (STDMETHODCALLTYPE *SetBodyProp)(
        IMimeMessageTree* This,
        HBODY hBody,
        LPCSTR pszName,
        DWORD dwFlags,
        LPCPROPVARIANT pValue);

    HRESULT (STDMETHODCALLTYPE *DeleteBodyProp)(
        IMimeMessageTree* This,
        HBODY hBody,
        LPCSTR pszName);

    HRESULT (STDMETHODCALLTYPE *SetOption)(
        IMimeMessageTree* This,
        const TYPEDID oid,
        LPCPROPVARIANT pValue);

    HRESULT (STDMETHODCALLTYPE *GetOption)(
        IMimeMessageTree* This,
        const TYPEDID oid,
        LPPROPVARIANT pValue);

    END_INTERFACE
} IMimeMessageTreeVtbl;
interface IMimeMessageTree {
    CONST_VTBL IMimeMessageTreeVtbl* lpVtbl;
};

#ifdef COBJMACROS
/*** IUnknown methods ***/
#define IMimeMessageTree_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
#define IMimeMessageTree_AddRef(This) (This)->lpVtbl->AddRef(This)
#define IMimeMessageTree_Release(This) (This)->lpVtbl->Release(This)
/*** IPersist methods ***/
#define IMimeMessageTree_GetClassID(This,pClassID) (This)->lpVtbl->GetClassID(This,pClassID)
/*** IPersistStreamInit methods ***/
#define IMimeMessageTree_IsDirty(This) (This)->lpVtbl->IsDirty(This)
#define IMimeMessageTree_Load(This,pStm) (This)->lpVtbl->Load(This,pStm)
#define IMimeMessageTree_Save(This,pStm,fClearDirty) (This)->lpVtbl->Save(This,pStm,fClearDirty)
#define IMimeMessageTree_GetSizeMax(This,pcbSize) (This)->lpVtbl->GetSizeMax(This,pcbSize)
#define IMimeMessageTree_InitNew(This) (This)->lpVtbl->InitNew(This)
/*** IMimeMessageTree methods ***/
#define IMimeMessageTree_GetMessageSource(This,ppStream,dwFlags) (This)->lpVtbl->GetMessageSource(This,ppStream,dwFlags)
#define IMimeMessageTree_GetMessageSize(This,pcbSize,dwFlags) (This)->lpVtbl->GetMessageSize(This,pcbSize,dwFlags)
#define IMimeMessageTree_LoadOffsetTable(This,pStream) (This)->lpVtbl->LoadOffsetTable(This,pStream)
#define IMimeMessageTree_SaveOffsetTable(This,pStream,dwFlags) (This)->lpVtbl->SaveOffsetTable(This,pStream,dwFlags)
#define IMimeMessageTree_GetFlags(This,pdwFlags) (This)->lpVtbl->GetFlags(This,pdwFlags)
#define IMimeMessageTree_Commit(This,dwFlags) (This)->lpVtbl->Commit(This,dwFlags)
#define IMimeMessageTree_HandsOffStorage(This) (This)->lpVtbl->HandsOffStorage(This)
#define IMimeMessageTree_BindToObject(This,hBody,riid,ppvObject) (This)->lpVtbl->BindToObject(This,hBody,riid,ppvObject)
#define IMimeMessageTree_SaveBody(This,hBody,dwFlags,pStream) (This)->lpVtbl->SaveBody(This,hBody,dwFlags,pStream)
#define IMimeMessageTree_InsertBody(This,location,hPivot,phBody) (This)->lpVtbl->InsertBody(This,location,hPivot,phBody)
#define IMimeMessageTree_GetBody(This,location,hPivot,phBody) (This)->lpVtbl->GetBody(This,location,hPivot,phBody)
#define IMimeMessageTree_DeleteBody(This,hBody,dwFlags) (This)->lpVtbl->DeleteBody(This,hBody,dwFlags)
#define IMimeMessageTree_MoveBody(This,hBody,location) (This)->lpVtbl->MoveBody(This,hBody,location)
#define IMimeMessageTree_CountBodies(This,hParent,fRecurse,pcBodies) (This)->lpVtbl->CountBodies(This,hParent,fRecurse,pcBodies)
#define IMimeMessageTree_FindFirst(This,pFindBody,phBody) (This)->lpVtbl->FindFirst(This,pFindBody,phBody)
#define IMimeMessageTree_FindNext(This,pFindBody,phBody) (This)->lpVtbl->FindNext(This,pFindBody,phBody)
#define IMimeMessageTree_ResolveURL(This,hRelated,pszBase,pszURL,dwFlags,phBody) (This)->lpVtbl->ResolveURL(This,hRelated,pszBase,pszURL,dwFlags,phBody)
#define IMimeMessageTree_ToMultipart(This,hBody,pszSubType,phMultipart) (This)->lpVtbl->ToMultipart(This,hBody,pszSubType,phMultipart)
#define IMimeMessageTree_GetBodyOffsets(This,hBody,pOffsets) (This)->lpVtbl->GetBodyOffsets(This,hBody,pOffsets)
#define IMimeMessageTree_GetCharset(This,phCharset) (This)->lpVtbl->GetCharset(This,phCharset)
#define IMimeMessageTree_SetCharset(This,hCharset,applytype) (This)->lpVtbl->SetCharset(This,hCharset,applytype)
#define IMimeMessageTree_IsBodyType(This,hBody,bodytype) (This)->lpVtbl->IsBodyType(This,hBody,bodytype)
#define IMimeMessageTree_IsContentType(This,hBody,pszPriType,pszSubType) (This)->lpVtbl->IsContentType(This,hBody,pszPriType,pszSubType)
#define IMimeMessageTree_QueryBodyProp(This,hBody,pszName,pszCriteria,fSubString,fCaseSensitive) (This)->lpVtbl->QueryBodyProp(This,hBody,pszName,pszCriteria,fSubString,fCaseSensitive)
#define IMimeMessageTree_GetBodyProp(This,hBody,pszName,dwFlags,pValue) (This)->lpVtbl->GetBodyProp(This,hBody,pszName,dwFlags,pValue)
#define IMimeMessageTree_SetBodyProp(This,hBody,pszName,dwFlags,pValue) (This)->lpVtbl->SetBodyProp(This,hBody,pszName,dwFlags,pValue)
#define IMimeMessageTree_DeleteBodyProp(This,hBody,pszName) (This)->lpVtbl->DeleteBodyProp(This,hBody,pszName)
#define IMimeMessageTree_SetOption(This,oid,pValue) (This)->lpVtbl->SetOption(This,oid,pValue)
#define IMimeMessageTree_GetOption(This,oid,pValue) (This)->lpVtbl->GetOption(This,oid,pValue)
#endif

#endif

HRESULT STDMETHODCALLTYPE IMimeMessageTree_GetMessageSource_Proxy(
    IMimeMessageTree* This,
    IStream **ppStream,
    DWORD dwFlags);
void __RPC_STUB IMimeMessageTree_GetMessageSource_Stub(
    IRpcStubBuffer* This,
    IRpcChannelBuffer* pRpcChannelBuffer,
    PRPC_MESSAGE pRpcMessage,
    DWORD* pdwStubPhase);
HRESULT STDMETHODCALLTYPE IMimeMessageTree_GetMessageSize_Proxy(
    IMimeMessageTree* This,
    ULONG *pcbSize,
    DWORD dwFlags);
void __RPC_STUB IMimeMessageTree_GetMessageSize_Stub(
    IRpcStubBuffer* This,
    IRpcChannelBuffer* pRpcChannelBuffer,
    PRPC_MESSAGE pRpcMessage,
    DWORD* pdwStubPhase);
HRESULT STDMETHODCALLTYPE IMimeMessageTree_LoadOffsetTable_Proxy(
    IMimeMessageTree* This,
    IStream *pStream);
void __RPC_STUB IMimeMessageTree_LoadOffsetTable_Stub(
    IRpcStubBuffer* This,
    IRpcChannelBuffer* pRpcChannelBuffer,
    PRPC_MESSAGE pRpcMessage,
    DWORD* pdwStubPhase);
HRESULT STDMETHODCALLTYPE IMimeMessageTree_SaveOffsetTable_Proxy(
    IMimeMessageTree* This,
    IStream *pStream,
    DWORD dwFlags);
void __RPC_STUB IMimeMessageTree_SaveOffsetTable_Stub(
    IRpcStubBuffer* This,
    IRpcChannelBuffer* pRpcChannelBuffer,
    PRPC_MESSAGE pRpcMessage,
    DWORD* pdwStubPhase);
HRESULT STDMETHODCALLTYPE IMimeMessageTree_GetFlags_Proxy(
    IMimeMessageTree* This,
    DWORD *pdwFlags);
void __RPC_STUB IMimeMessageTree_GetFlags_Stub(
    IRpcStubBuffer* This,
    IRpcChannelBuffer* pRpcChannelBuffer,
    PRPC_MESSAGE pRpcMessage,
    DWORD* pdwStubPhase);
HRESULT STDMETHODCALLTYPE IMimeMessageTree_Commit_Proxy(
    IMimeMessageTree* This,
    DWORD dwFlags);
void __RPC_STUB IMimeMessageTree_Commit_Stub(
    IRpcStubBuffer* This,
    IRpcChannelBuffer* pRpcChannelBuffer,
    PRPC_MESSAGE pRpcMessage,
    DWORD* pdwStubPhase);
HRESULT STDMETHODCALLTYPE IMimeMessageTree_HandsOffStorage_Proxy(
    IMimeMessageTree* This);
void __RPC_STUB IMimeMessageTree_HandsOffStorage_Stub(
    IRpcStubBuffer* This,
    IRpcChannelBuffer* pRpcChannelBuffer,
    PRPC_MESSAGE pRpcMessage,
    DWORD* pdwStubPhase);
HRESULT STDMETHODCALLTYPE IMimeMessageTree_BindToObject_Proxy(
    IMimeMessageTree* This,
    const HBODY hBody,
    REFIID riid,
    void **ppvObject);
void __RPC_STUB IMimeMessageTree_BindToObject_Stub(
    IRpcStubBuffer* This,
    IRpcChannelBuffer* pRpcChannelBuffer,
    PRPC_MESSAGE pRpcMessage,
    DWORD* pdwStubPhase);
HRESULT STDMETHODCALLTYPE IMimeMessageTree_SaveBody_Proxy(
    IMimeMessageTree* This,
    HBODY hBody,
    DWORD dwFlags,
    IStream *pStream);
void __RPC_STUB IMimeMessageTree_SaveBody_Stub(
    IRpcStubBuffer* This,
    IRpcChannelBuffer* pRpcChannelBuffer,
    PRPC_MESSAGE pRpcMessage,
    DWORD* pdwStubPhase);
HRESULT STDMETHODCALLTYPE IMimeMessageTree_InsertBody_Proxy(
    IMimeMessageTree* This,
    BODYLOCATION location,
    HBODY hPivot,
    LPHBODY phBody);
void __RPC_STUB IMimeMessageTree_InsertBody_Stub(
    IRpcStubBuffer* This,
    IRpcChannelBuffer* pRpcChannelBuffer,
    PRPC_MESSAGE pRpcMessage,
    DWORD* pdwStubPhase);
HRESULT STDMETHODCALLTYPE IMimeMessageTree_GetBody_Proxy(
    IMimeMessageTree* This,
    BODYLOCATION location,
    HBODY hPivot,
    LPHBODY phBody);
void __RPC_STUB IMimeMessageTree_GetBody_Stub(
    IRpcStubBuffer* This,
    IRpcChannelBuffer* pRpcChannelBuffer,
    PRPC_MESSAGE pRpcMessage,
    DWORD* pdwStubPhase);
HRESULT STDMETHODCALLTYPE IMimeMessageTree_DeleteBody_Proxy(
    IMimeMessageTree* This,
    HBODY hBody,
    DWORD dwFlags);
void __RPC_STUB IMimeMessageTree_DeleteBody_Stub(
    IRpcStubBuffer* This,
    IRpcChannelBuffer* pRpcChannelBuffer,
    PRPC_MESSAGE pRpcMessage,
    DWORD* pdwStubPhase);
HRESULT STDMETHODCALLTYPE IMimeMessageTree_MoveBody_Proxy(
    IMimeMessageTree* This,
    HBODY hBody,
    BODYLOCATION location);
void __RPC_STUB IMimeMessageTree_MoveBody_Stub(
    IRpcStubBuffer* This,
    IRpcChannelBuffer* pRpcChannelBuffer,
    PRPC_MESSAGE pRpcMessage,
    DWORD* pdwStubPhase);
HRESULT STDMETHODCALLTYPE IMimeMessageTree_CountBodies_Proxy(
    IMimeMessageTree* This,
    HBODY hParent,
    boolean fRecurse,
    ULONG *pcBodies);
void __RPC_STUB IMimeMessageTree_CountBodies_Stub(
    IRpcStubBuffer* This,
    IRpcChannelBuffer* pRpcChannelBuffer,
    PRPC_MESSAGE pRpcMessage,
    DWORD* pdwStubPhase);
HRESULT STDMETHODCALLTYPE IMimeMessageTree_FindFirst_Proxy(
    IMimeMessageTree* This,
    LPFINDBODY pFindBody,
    LPHBODY phBody);
void __RPC_STUB IMimeMessageTree_FindFirst_Stub(
    IRpcStubBuffer* This,
    IRpcChannelBuffer* pRpcChannelBuffer,
    PRPC_MESSAGE pRpcMessage,
    DWORD* pdwStubPhase);
HRESULT STDMETHODCALLTYPE IMimeMessageTree_FindNext_Proxy(
    IMimeMessageTree* This,
    LPFINDBODY pFindBody,
    LPHBODY phBody);
void __RPC_STUB IMimeMessageTree_FindNext_Stub(
    IRpcStubBuffer* This,
    IRpcChannelBuffer* pRpcChannelBuffer,
    PRPC_MESSAGE pRpcMessage,
    DWORD* pdwStubPhase);
HRESULT STDMETHODCALLTYPE IMimeMessageTree_ResolveURL_Proxy(
    IMimeMessageTree* This,
    HBODY hRelated,
    LPCSTR pszBase,
    LPCSTR pszURL,
    DWORD dwFlags,
    LPHBODY phBody);
void __RPC_STUB IMimeMessageTree_ResolveURL_Stub(
    IRpcStubBuffer* This,
    IRpcChannelBuffer* pRpcChannelBuffer,
    PRPC_MESSAGE pRpcMessage,
    DWORD* pdwStubPhase);
HRESULT STDMETHODCALLTYPE IMimeMessageTree_ToMultipart_Proxy(
    IMimeMessageTree* This,
    HBODY hBody,
    LPCSTR pszSubType,
    LPHBODY phMultipart);
void __RPC_STUB IMimeMessageTree_ToMultipart_Stub(
    IRpcStubBuffer* This,
    IRpcChannelBuffer* pRpcChannelBuffer,
    PRPC_MESSAGE pRpcMessage,
    DWORD* pdwStubPhase);
HRESULT STDMETHODCALLTYPE IMimeMessageTree_GetBodyOffsets_Proxy(
    IMimeMessageTree* This,
    HBODY hBody,
    LPBODYOFFSETS pOffsets);
void __RPC_STUB IMimeMessageTree_GetBodyOffsets_Stub(
    IRpcStubBuffer* This,
    IRpcChannelBuffer* pRpcChannelBuffer,
    PRPC_MESSAGE pRpcMessage,
    DWORD* pdwStubPhase);
HRESULT STDMETHODCALLTYPE IMimeMessageTree_GetCharset_Proxy(
    IMimeMessageTree* This,
    LPHCHARSET phCharset);
void __RPC_STUB IMimeMessageTree_GetCharset_Stub(
    IRpcStubBuffer* This,
    IRpcChannelBuffer* pRpcChannelBuffer,
    PRPC_MESSAGE pRpcMessage,
    DWORD* pdwStubPhase);
HRESULT STDMETHODCALLTYPE IMimeMessageTree_SetCharset_Proxy(
    IMimeMessageTree* This,
    HCHARSET hCharset,
    CSETAPPLYTYPE applytype);
void __RPC_STUB IMimeMessageTree_SetCharset_Stub(
    IRpcStubBuffer* This,
    IRpcChannelBuffer* pRpcChannelBuffer,
    PRPC_MESSAGE pRpcMessage,
    DWORD* pdwStubPhase);
HRESULT STDMETHODCALLTYPE IMimeMessageTree_IsBodyType_Proxy(
    IMimeMessageTree* This,
    HBODY hBody,
    IMSGBODYTYPE bodytype);
void __RPC_STUB IMimeMessageTree_IsBodyType_Stub(
    IRpcStubBuffer* This,
    IRpcChannelBuffer* pRpcChannelBuffer,
    PRPC_MESSAGE pRpcMessage,
    DWORD* pdwStubPhase);
HRESULT STDMETHODCALLTYPE IMimeMessageTree_IsContentType_Proxy(
    IMimeMessageTree* This,
    HBODY hBody,
    LPCSTR pszPriType,
    LPCSTR pszSubType);
void __RPC_STUB IMimeMessageTree_IsContentType_Stub(
    IRpcStubBuffer* This,
    IRpcChannelBuffer* pRpcChannelBuffer,
    PRPC_MESSAGE pRpcMessage,
    DWORD* pdwStubPhase);
HRESULT STDMETHODCALLTYPE IMimeMessageTree_QueryBodyProp_Proxy(
    IMimeMessageTree* This,
    HBODY hBody,
    LPCSTR pszName,
    LPCSTR pszCriteria,
    boolean fSubString,
    boolean fCaseSensitive);
void __RPC_STUB IMimeMessageTree_QueryBodyProp_Stub(
    IRpcStubBuffer* This,
    IRpcChannelBuffer* pRpcChannelBuffer,
    PRPC_MESSAGE pRpcMessage,
    DWORD* pdwStubPhase);
HRESULT STDMETHODCALLTYPE IMimeMessageTree_GetBodyProp_Proxy(
    IMimeMessageTree* This,
    HBODY hBody,
    LPCSTR pszName,
    DWORD dwFlags,
    LPPROPVARIANT pValue);
void __RPC_STUB IMimeMessageTree_GetBodyProp_Stub(
    IRpcStubBuffer* This,
    IRpcChannelBuffer* pRpcChannelBuffer,
    PRPC_MESSAGE pRpcMessage,
    DWORD* pdwStubPhase);
HRESULT STDMETHODCALLTYPE IMimeMessageTree_SetBodyProp_Proxy(
    IMimeMessageTree* This,
    HBODY hBody,
    LPCSTR pszName,
    DWORD dwFlags,
    LPCPROPVARIANT pValue);
void __RPC_STUB IMimeMessageTree_SetBodyProp_Stub(
    IRpcStubBuffer* This,
    IRpcChannelBuffer* pRpcChannelBuffer,
    PRPC_MESSAGE pRpcMessage,
    DWORD* pdwStubPhase);
HRESULT STDMETHODCALLTYPE IMimeMessageTree_DeleteBodyProp_Proxy(
    IMimeMessageTree* This,
    HBODY hBody,
    LPCSTR pszName);
void __RPC_STUB IMimeMessageTree_DeleteBodyProp_Stub(
    IRpcStubBuffer* This,
    IRpcChannelBuffer* pRpcChannelBuffer,
    PRPC_MESSAGE pRpcMessage,
    DWORD* pdwStubPhase);
HRESULT STDMETHODCALLTYPE IMimeMessageTree_SetOption_Proxy(
    IMimeMessageTree* This,
    const TYPEDID oid,
    LPCPROPVARIANT pValue);
void __RPC_STUB IMimeMessageTree_SetOption_Stub(
    IRpcStubBuffer* This,
    IRpcChannelBuffer* pRpcChannelBuffer,
    PRPC_MESSAGE pRpcMessage,
    DWORD* pdwStubPhase);
HRESULT STDMETHODCALLTYPE IMimeMessageTree_GetOption_Proxy(
    IMimeMessageTree* This,
    const TYPEDID oid,
    LPPROPVARIANT pValue);
void __RPC_STUB IMimeMessageTree_GetOption_Stub(
    IRpcStubBuffer* This,
    IRpcChannelBuffer* pRpcChannelBuffer,
    PRPC_MESSAGE pRpcMessage,
    DWORD* pdwStubPhase);

#endif  /* __IMimeMessageTree_INTERFACE_DEFINED__ */

/*****************************************************************************
 * IMimeMessage interface
 */
#ifndef __IMimeMessage_INTERFACE_DEFINED__
#define __IMimeMessage_INTERFACE_DEFINED__

typedef IMimeMessage *LPMIMEMESSAGE;
typedef DWORD TEXTTYPE;
typedef enum tagIMSGFLAGS {
    IMF_ATTACHMENTS = 0x1,
    IMF_MULTIPART = 0x2,
    IMF_SUBMULTIPART = 0x4,
    IMF_MIME = 0x8,
    IMF_HTML = 0x10,
    IMF_PLAIN = 0x20,
    IMF_PARTIAL = 0x40,
    IMF_SIGNED = 0x80,
    IMF_ENCRYPTED = 0x100,
    IMF_TNEF = 0x200,
    IMF_MHTML = 0x400,
    IMF_SECURE = 0x800,
    IMF_TEXT = 0x1000,
    IMF_CSETTAGGED = 0x2000,
    IMF_NEWS = 0x4000,
    IMF_VOICEMAIL = 0x8000,
    IMF_HASVCARD = 0x10000,
    IMF_RFC1154 = 0x20000
} IMSGFLAGS;
typedef enum tagIMSGPRIORITY {
    IMSG_PRI_LOW = 5,
    IMSG_PRI_NORMAL = 3,
    IMSG_PRI_HIGH = 1
} IMSGPRIORITY;
#define WPF_HTML             0x00000001
#define WPF_AUTOINLINE       0x00000002
#define WPF_SLIDESHOW        0x00000004
#define WPF_ATTACHLINKS      0x00000008
#define WPF_IMAGESONLY       0x00000010
#define WPF_NOMETACHARSET    0x00000020
typedef struct tagWEPAGEOPTIONS {
    DWORD cbSize;
    DWORD dwFlags;
    DWORD dwDelay;
    WCHAR wchQuote;
} WEBPAGEOPTIONS;
typedef struct tagWEPAGEOPTIONS *LPWEBPAGEOPTIONS;
#define TXT_PLAIN       1
#define TXT_HTML        2
DEFINE_GUID(IID_IMimeMessage, 0xfd853cd5, 0x7f86, 0x11d0, 0x82,0x52, 0x00,0xc0,0x4f,0xd8,0x5a,0xb4);
#if defined(__cplusplus) && !defined(CINTERFACE)
MIDL_INTERFACE("fd853cd5-7f86-11d0-8252-00c04fd85ab4")
IMimeMessage : public IMimeMessageTree
{
    virtual HRESULT STDMETHODCALLTYPE CreateWebPage(
        IStream *pRootStm,
        LPWEBPAGEOPTIONS pOptions,
        IMimeMessageCallback *pCallback,
        IMoniker **ppMoniker) = 0;

    virtual HRESULT STDMETHODCALLTYPE GetProp(
        LPCSTR pszName,
        DWORD dwFlags,
        LPPROPVARIANT pValue) = 0;

    virtual HRESULT STDMETHODCALLTYPE SetProp(
        LPCSTR pszName,
        DWORD dwFlags,
        LPCPROPVARIANT pValue) = 0;

    virtual HRESULT STDMETHODCALLTYPE DeleteProp(
        LPCSTR pszName) = 0;

    virtual HRESULT STDMETHODCALLTYPE QueryProp(
        LPCSTR pszName,
        LPCSTR pszCriteria,
        boolean fSubString,
        boolean fCaseSensitive) = 0;

    virtual HRESULT STDMETHODCALLTYPE GetTextBody(
        DWORD dwTxtType,
        ENCODINGTYPE ietEncoding,
        IStream **pStream,
        LPHBODY phBody) = 0;

    virtual HRESULT STDMETHODCALLTYPE SetTextBody(
        DWORD dwTxtType,
        ENCODINGTYPE ietEncoding,
        HBODY hAlternative,
        IStream *pStream,
        LPHBODY phBody) = 0;

    virtual HRESULT STDMETHODCALLTYPE AttachObject(
        REFIID riid,
        void *pvObject,
        LPHBODY phBody) = 0;

    virtual HRESULT STDMETHODCALLTYPE AttachFile(
        LPCSTR pszFilePath,
        IStream *pstmFile,
        LPHBODY phBody) = 0;

    virtual HRESULT STDMETHODCALLTYPE AttachURL(
        LPCSTR pszBase,
        LPCSTR pszURL,
        DWORD dwFlags,
        IStream *pstmURL,
        LPSTR *ppszCIDURL,
        LPHBODY phBody) = 0;

    virtual HRESULT STDMETHODCALLTYPE GetAttachments(
        ULONG *pcAttach,
        LPHBODY *pprghAttach) = 0;

    virtual HRESULT STDMETHODCALLTYPE GetAddressTable(
        IMimeAddressTable **ppTable) = 0;

    virtual HRESULT STDMETHODCALLTYPE GetSender(
        LPADDRESSPROPS pAddress) = 0;

    virtual HRESULT STDMETHODCALLTYPE GetAddressTypes(
        DWORD dwAdrTypes,
        DWORD dwProps,
        LPADDRESSLIST pList) = 0;

    virtual HRESULT STDMETHODCALLTYPE GetAddressFormat(
        DWORD dwAdrTypes,
        ADDRESSFORMAT format,
        LPSTR *ppszFormat) = 0;

    virtual HRESULT STDMETHODCALLTYPE EnumAddressTypes(
        DWORD dwAdrTypes,
        DWORD dwProps,
        IMimeEnumAddressTypes **ppEnum) = 0;

    virtual HRESULT STDMETHODCALLTYPE SplitMessage(
        ULONG cbMaxPart,
        IMimeMessageParts **ppParts) = 0;

    virtual HRESULT STDMETHODCALLTYPE GetRootMoniker(
        IMoniker **ppMoniker) = 0;

};
#ifdef __CRT_UUID_DECL
__CRT_UUID_DECL(IMimeMessage, 0xfd853cd5, 0x7f86, 0x11d0, 0x82,0x52, 0x00,0xc0,0x4f,0xd8,0x5a,0xb4)
#endif
#else
typedef struct IMimeMessageVtbl {
    BEGIN_INTERFACE

    /*** IUnknown methods ***/
    HRESULT (STDMETHODCALLTYPE *QueryInterface)(
        IMimeMessage* This,
        REFIID riid,
        void **ppvObject);

    ULONG (STDMETHODCALLTYPE *AddRef)(
        IMimeMessage* This);

    ULONG (STDMETHODCALLTYPE *Release)(
        IMimeMessage* This);

    /*** IPersist methods ***/
    HRESULT (STDMETHODCALLTYPE *GetClassID)(
        IMimeMessage* This,
        CLSID *pClassID);

    /*** IPersistStreamInit methods ***/
    HRESULT (STDMETHODCALLTYPE *IsDirty)(
        IMimeMessage* This);

    HRESULT (STDMETHODCALLTYPE *Load)(
        IMimeMessage* This,
        LPSTREAM pStm);

    HRESULT (STDMETHODCALLTYPE *Save)(
        IMimeMessage* This,
        LPSTREAM pStm,
        BOOL fClearDirty);

    HRESULT (STDMETHODCALLTYPE *GetSizeMax)(
        IMimeMessage* This,
        ULARGE_INTEGER *pcbSize);

    HRESULT (STDMETHODCALLTYPE *InitNew)(
        IMimeMessage* This);

    /*** IMimeMessageTree methods ***/
    HRESULT (STDMETHODCALLTYPE *GetMessageSource)(
        IMimeMessage* This,
        IStream **ppStream,
        DWORD dwFlags);

    HRESULT (STDMETHODCALLTYPE *GetMessageSize)(
        IMimeMessage* This,
        ULONG *pcbSize,
        DWORD dwFlags);

    HRESULT (STDMETHODCALLTYPE *LoadOffsetTable)(
        IMimeMessage* This,
        IStream *pStream);

    HRESULT (STDMETHODCALLTYPE *SaveOffsetTable)(
        IMimeMessage* This,
        IStream *pStream,
        DWORD dwFlags);

    HRESULT (STDMETHODCALLTYPE *GetFlags)(
        IMimeMessage* This,
        DWORD *pdwFlags);

    HRESULT (STDMETHODCALLTYPE *Commit)(
        IMimeMessage* This,
        DWORD dwFlags);

    HRESULT (STDMETHODCALLTYPE *HandsOffStorage)(
        IMimeMessage* This);

    HRESULT (STDMETHODCALLTYPE *BindToObject)(
        IMimeMessage* This,
        const HBODY hBody,
        REFIID riid,
        void **ppvObject);

    HRESULT (STDMETHODCALLTYPE *SaveBody)(
        IMimeMessage* This,
        HBODY hBody,
        DWORD dwFlags,
        IStream *pStream);

    HRESULT (STDMETHODCALLTYPE *InsertBody)(
        IMimeMessage* This,
        BODYLOCATION location,
        HBODY hPivot,
        LPHBODY phBody);

    HRESULT (STDMETHODCALLTYPE *GetBody)(
        IMimeMessage* This,
        BODYLOCATION location,
        HBODY hPivot,
        LPHBODY phBody);

    HRESULT (STDMETHODCALLTYPE *DeleteBody)(
        IMimeMessage* This,
        HBODY hBody,
        DWORD dwFlags);

    HRESULT (STDMETHODCALLTYPE *MoveBody)(
        IMimeMessage* This,
        HBODY hBody,
        BODYLOCATION location);

    HRESULT (STDMETHODCALLTYPE *CountBodies)(
        IMimeMessage* This,
        HBODY hParent,
        boolean fRecurse,
        ULONG *pcBodies);

    HRESULT (STDMETHODCALLTYPE *FindFirst)(
        IMimeMessage* This,
        LPFINDBODY pFindBody,
        LPHBODY phBody);

    HRESULT (STDMETHODCALLTYPE *FindNext)(
        IMimeMessage* This,
        LPFINDBODY pFindBody,
        LPHBODY phBody);

    HRESULT (STDMETHODCALLTYPE *ResolveURL)(
        IMimeMessage* This,
        HBODY hRelated,
        LPCSTR pszBase,
        LPCSTR pszURL,
        DWORD dwFlags,
        LPHBODY phBody);

    HRESULT (STDMETHODCALLTYPE *ToMultipart)(
        IMimeMessage* This,
        HBODY hBody,
        LPCSTR pszSubType,
        LPHBODY phMultipart);

    HRESULT (STDMETHODCALLTYPE *GetBodyOffsets)(
        IMimeMessage* This,
        HBODY hBody,
        LPBODYOFFSETS pOffsets);

    HRESULT (STDMETHODCALLTYPE *GetCharset)(
        IMimeMessage* This,
        LPHCHARSET phCharset);

    HRESULT (STDMETHODCALLTYPE *SetCharset)(
        IMimeMessage* This,
        HCHARSET hCharset,
        CSETAPPLYTYPE applytype);

    HRESULT (STDMETHODCALLTYPE *IsBodyType)(
        IMimeMessage* This,
        HBODY hBody,
        IMSGBODYTYPE bodytype);

    HRESULT (STDMETHODCALLTYPE *IsContentType)(
        IMimeMessage* This,
        HBODY hBody,
        LPCSTR pszPriType,
        LPCSTR pszSubType);

    HRESULT (STDMETHODCALLTYPE *QueryBodyProp)(
        IMimeMessage* This,
        HBODY hBody,
        LPCSTR pszName,
        LPCSTR pszCriteria,
        boolean fSubString,
        boolean fCaseSensitive);

    HRESULT (STDMETHODCALLTYPE *GetBodyProp)(
        IMimeMessage* This,
        HBODY hBody,
        LPCSTR pszName,
        DWORD dwFlags,
        LPPROPVARIANT pValue);

    HRESULT (STDMETHODCALLTYPE *SetBodyProp)(
        IMimeMessage* This,
        HBODY hBody,
        LPCSTR pszName,
        DWORD dwFlags,
        LPCPROPVARIANT pValue);

    HRESULT (STDMETHODCALLTYPE *DeleteBodyProp)(
        IMimeMessage* This,
        HBODY hBody,
        LPCSTR pszName);

    HRESULT (STDMETHODCALLTYPE *SetOption)(
        IMimeMessage* This,
        const TYPEDID oid,
        LPCPROPVARIANT pValue);

    HRESULT (STDMETHODCALLTYPE *GetOption)(
        IMimeMessage* This,
        const TYPEDID oid,
        LPPROPVARIANT pValue);

    /*** IMimeMessage methods ***/
    HRESULT (STDMETHODCALLTYPE *CreateWebPage)(
        IMimeMessage* This,
        IStream *pRootStm,
        LPWEBPAGEOPTIONS pOptions,
        IMimeMessageCallback *pCallback,
        IMoniker **ppMoniker);

    HRESULT (STDMETHODCALLTYPE *GetProp)(
        IMimeMessage* This,
        LPCSTR pszName,
        DWORD dwFlags,
        LPPROPVARIANT pValue);

    HRESULT (STDMETHODCALLTYPE *SetProp)(
        IMimeMessage* This,
        LPCSTR pszName,
        DWORD dwFlags,
        LPCPROPVARIANT pValue);

    HRESULT (STDMETHODCALLTYPE *DeleteProp)(
        IMimeMessage* This,
        LPCSTR pszName);

    HRESULT (STDMETHODCALLTYPE *QueryProp)(
        IMimeMessage* This,
        LPCSTR pszName,
        LPCSTR pszCriteria,
        boolean fSubString,
        boolean fCaseSensitive);

    HRESULT (STDMETHODCALLTYPE *GetTextBody)(
        IMimeMessage* This,
        DWORD dwTxtType,
        ENCODINGTYPE ietEncoding,
        IStream **pStream,
        LPHBODY phBody);

    HRESULT (STDMETHODCALLTYPE *SetTextBody)(
        IMimeMessage* This,
        DWORD dwTxtType,
        ENCODINGTYPE ietEncoding,
        HBODY hAlternative,
        IStream *pStream,
        LPHBODY phBody);

    HRESULT (STDMETHODCALLTYPE *AttachObject)(
        IMimeMessage* This,
        REFIID riid,
        void *pvObject,
        LPHBODY phBody);

    HRESULT (STDMETHODCALLTYPE *AttachFile)(
        IMimeMessage* This,
        LPCSTR pszFilePath,
        IStream *pstmFile,
        LPHBODY phBody);

    HRESULT (STDMETHODCALLTYPE *AttachURL)(
        IMimeMessage* This,
        LPCSTR pszBase,
        LPCSTR pszURL,
        DWORD dwFlags,
        IStream *pstmURL,
        LPSTR *ppszCIDURL,
        LPHBODY phBody);

    HRESULT (STDMETHODCALLTYPE *GetAttachments)(
        IMimeMessage* This,
        ULONG *pcAttach,
        LPHBODY *pprghAttach);

    HRESULT (STDMETHODCALLTYPE *GetAddressTable)(
        IMimeMessage* This,
        IMimeAddressTable **ppTable);

    HRESULT (STDMETHODCALLTYPE *GetSender)(
        IMimeMessage* This,
        LPADDRESSPROPS pAddress);

    HRESULT (STDMETHODCALLTYPE *GetAddressTypes)(
        IMimeMessage* This,
        DWORD dwAdrTypes,
        DWORD dwProps,
        LPADDRESSLIST pList);

    HRESULT (STDMETHODCALLTYPE *GetAddressFormat)(
        IMimeMessage* This,
        DWORD dwAdrTypes,
        ADDRESSFORMAT format,
        LPSTR *ppszFormat);

    HRESULT (STDMETHODCALLTYPE *EnumAddressTypes)(
        IMimeMessage* This,
        DWORD dwAdrTypes,
        DWORD dwProps,
        IMimeEnumAddressTypes **ppEnum);

    HRESULT (STDMETHODCALLTYPE *SplitMessage)(
        IMimeMessage* This,
        ULONG cbMaxPart,
        IMimeMessageParts **ppParts);

    HRESULT (STDMETHODCALLTYPE *GetRootMoniker)(
        IMimeMessage* This,
        IMoniker **ppMoniker);

    END_INTERFACE
} IMimeMessageVtbl;
interface IMimeMessage {
    CONST_VTBL IMimeMessageVtbl* lpVtbl;
};

#ifdef COBJMACROS
/*** IUnknown methods ***/
#define IMimeMessage_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
#define IMimeMessage_AddRef(This) (This)->lpVtbl->AddRef(This)
#define IMimeMessage_Release(This) (This)->lpVtbl->Release(This)
/*** IPersist methods ***/
#define IMimeMessage_GetClassID(This,pClassID) (This)->lpVtbl->GetClassID(This,pClassID)
/*** IPersistStreamInit methods ***/
#define IMimeMessage_IsDirty(This) (This)->lpVtbl->IsDirty(This)
#define IMimeMessage_Load(This,pStm) (This)->lpVtbl->Load(This,pStm)
#define IMimeMessage_Save(This,pStm,fClearDirty) (This)->lpVtbl->Save(This,pStm,fClearDirty)
#define IMimeMessage_GetSizeMax(This,pcbSize) (This)->lpVtbl->GetSizeMax(This,pcbSize)
#define IMimeMessage_InitNew(This) (This)->lpVtbl->InitNew(This)
/*** IMimeMessageTree methods ***/
#define IMimeMessage_GetMessageSource(This,ppStream,dwFlags) (This)->lpVtbl->GetMessageSource(This,ppStream,dwFlags)
#define IMimeMessage_GetMessageSize(This,pcbSize,dwFlags) (This)->lpVtbl->GetMessageSize(This,pcbSize,dwFlags)
#define IMimeMessage_LoadOffsetTable(This,pStream) (This)->lpVtbl->LoadOffsetTable(This,pStream)
#define IMimeMessage_SaveOffsetTable(This,pStream,dwFlags) (This)->lpVtbl->SaveOffsetTable(This,pStream,dwFlags)
#define IMimeMessage_GetFlags(This,pdwFlags) (This)->lpVtbl->GetFlags(This,pdwFlags)
#define IMimeMessage_Commit(This,dwFlags) (This)->lpVtbl->Commit(This,dwFlags)
#define IMimeMessage_HandsOffStorage(This) (This)->lpVtbl->HandsOffStorage(This)
#define IMimeMessage_BindToObject(This,hBody,riid,ppvObject) (This)->lpVtbl->BindToObject(This,hBody,riid,ppvObject)
#define IMimeMessage_SaveBody(This,hBody,dwFlags,pStream) (This)->lpVtbl->SaveBody(This,hBody,dwFlags,pStream)
#define IMimeMessage_InsertBody(This,location,hPivot,phBody) (This)->lpVtbl->InsertBody(This,location,hPivot,phBody)
#define IMimeMessage_GetBody(This,location,hPivot,phBody) (This)->lpVtbl->GetBody(This,location,hPivot,phBody)
#define IMimeMessage_DeleteBody(This,hBody,dwFlags) (This)->lpVtbl->DeleteBody(This,hBody,dwFlags)
#define IMimeMessage_MoveBody(This,hBody,location) (This)->lpVtbl->MoveBody(This,hBody,location)
#define IMimeMessage_CountBodies(This,hParent,fRecurse,pcBodies) (This)->lpVtbl->CountBodies(This,hParent,fRecurse,pcBodies)
#define IMimeMessage_FindFirst(This,pFindBody,phBody) (This)->lpVtbl->FindFirst(This,pFindBody,phBody)
#define IMimeMessage_FindNext(This,pFindBody,phBody) (This)->lpVtbl->FindNext(This,pFindBody,phBody)
#define IMimeMessage_ResolveURL(This,hRelated,pszBase,pszURL,dwFlags,phBody) (This)->lpVtbl->ResolveURL(This,hRelated,pszBase,pszURL,dwFlags,phBody)
#define IMimeMessage_ToMultipart(This,hBody,pszSubType,phMultipart) (This)->lpVtbl->ToMultipart(This,hBody,pszSubType,phMultipart)
#define IMimeMessage_GetBodyOffsets(This,hBody,pOffsets) (This)->lpVtbl->GetBodyOffsets(This,hBody,pOffsets)
#define IMimeMessage_GetCharset(This,phCharset) (This)->lpVtbl->GetCharset(This,phCharset)
#define IMimeMessage_SetCharset(This,hCharset,applytype) (This)->lpVtbl->SetCharset(This,hCharset,applytype)
#define IMimeMessage_IsBodyType(This,hBody,bodytype) (This)->lpVtbl->IsBodyType(This,hBody,bodytype)
#define IMimeMessage_IsContentType(This,hBody,pszPriType,pszSubType) (This)->lpVtbl->IsContentType(This,hBody,pszPriType,pszSubType)
#define IMimeMessage_QueryBodyProp(This,hBody,pszName,pszCriteria,fSubString,fCaseSensitive) (This)->lpVtbl->QueryBodyProp(This,hBody,pszName,pszCriteria,fSubString,fCaseSensitive)
#define IMimeMessage_GetBodyProp(This,hBody,pszName,dwFlags,pValue) (This)->lpVtbl->GetBodyProp(This,hBody,pszName,dwFlags,pValue)
#define IMimeMessage_SetBodyProp(This,hBody,pszName,dwFlags,pValue) (This)->lpVtbl->SetBodyProp(This,hBody,pszName,dwFlags,pValue)
#define IMimeMessage_DeleteBodyProp(This,hBody,pszName) (This)->lpVtbl->DeleteBodyProp(This,hBody,pszName)
#define IMimeMessage_SetOption(This,oid,pValue) (This)->lpVtbl->SetOption(This,oid,pValue)
#define IMimeMessage_GetOption(This,oid,pValue) (This)->lpVtbl->GetOption(This,oid,pValue)
/*** IMimeMessage methods ***/
#define IMimeMessage_CreateWebPage(This,pRootStm,pOptions,pCallback,ppMoniker) (This)->lpVtbl->CreateWebPage(This,pRootStm,pOptions,pCallback,ppMoniker)
#define IMimeMessage_GetProp(This,pszName,dwFlags,pValue) (This)->lpVtbl->GetProp(This,pszName,dwFlags,pValue)
#define IMimeMessage_SetProp(This,pszName,dwFlags,pValue) (This)->lpVtbl->SetProp(This,pszName,dwFlags,pValue)
#define IMimeMessage_DeleteProp(This,pszName) (This)->lpVtbl->DeleteProp(This,pszName)
#define IMimeMessage_QueryProp(This,pszName,pszCriteria,fSubString,fCaseSensitive) (This)->lpVtbl->QueryProp(This,pszName,pszCriteria,fSubString,fCaseSensitive)
#define IMimeMessage_GetTextBody(This,dwTxtType,ietEncoding,pStream,phBody) (This)->lpVtbl->GetTextBody(This,dwTxtType,ietEncoding,pStream,phBody)
#define IMimeMessage_SetTextBody(This,dwTxtType,ietEncoding,hAlternative,pStream,phBody) (This)->lpVtbl->SetTextBody(This,dwTxtType,ietEncoding,hAlternative,pStream,phBody)
#define IMimeMessage_AttachObject(This,riid,pvObject,phBody) (This)->lpVtbl->AttachObject(This,riid,pvObject,phBody)
#define IMimeMessage_AttachFile(This,pszFilePath,pstmFile,phBody) (This)->lpVtbl->AttachFile(This,pszFilePath,pstmFile,phBody)
#define IMimeMessage_AttachURL(This,pszBase,pszURL,dwFlags,pstmURL,ppszCIDURL,phBody) (This)->lpVtbl->AttachURL(This,pszBase,pszURL,dwFlags,pstmURL,ppszCIDURL,phBody)
#define IMimeMessage_GetAttachments(This,pcAttach,pprghAttach) (This)->lpVtbl->GetAttachments(This,pcAttach,pprghAttach)
#define IMimeMessage_GetAddressTable(This,ppTable) (This)->lpVtbl->GetAddressTable(This,ppTable)
#define IMimeMessage_GetSender(This,pAddress) (This)->lpVtbl->GetSender(This,pAddress)
#define IMimeMessage_GetAddressTypes(This,dwAdrTypes,dwProps,pList) (This)->lpVtbl->GetAddressTypes(This,dwAdrTypes,dwProps,pList)
#define IMimeMessage_GetAddressFormat(This,dwAdrTypes,format,ppszFormat) (This)->lpVtbl->GetAddressFormat(This,dwAdrTypes,format,ppszFormat)
#define IMimeMessage_EnumAddressTypes(This,dwAdrTypes,dwProps,ppEnum) (This)->lpVtbl->EnumAddressTypes(This,dwAdrTypes,dwProps,ppEnum)
#define IMimeMessage_SplitMessage(This,cbMaxPart,ppParts) (This)->lpVtbl->SplitMessage(This,cbMaxPart,ppParts)
#define IMimeMessage_GetRootMoniker(This,ppMoniker) (This)->lpVtbl->GetRootMoniker(This,ppMoniker)
#endif

#endif

HRESULT STDMETHODCALLTYPE IMimeMessage_CreateWebPage_Proxy(
    IMimeMessage* This,
    IStream *pRootStm,
    LPWEBPAGEOPTIONS pOptions,
    IMimeMessageCallback *pCallback,
    IMoniker **ppMoniker);
void __RPC_STUB IMimeMessage_CreateWebPage_Stub(
    IRpcStubBuffer* This,
    IRpcChannelBuffer* pRpcChannelBuffer,
    PRPC_MESSAGE pRpcMessage,
    DWORD* pdwStubPhase);
HRESULT STDMETHODCALLTYPE IMimeMessage_GetProp_Proxy(
    IMimeMessage* This,
    LPCSTR pszName,
    DWORD dwFlags,
    LPPROPVARIANT pValue);
void __RPC_STUB IMimeMessage_GetProp_Stub(
    IRpcStubBuffer* This,
    IRpcChannelBuffer* pRpcChannelBuffer,
    PRPC_MESSAGE pRpcMessage,
    DWORD* pdwStubPhase);
HRESULT STDMETHODCALLTYPE IMimeMessage_SetProp_Proxy(
    IMimeMessage* This,
    LPCSTR pszName,
    DWORD dwFlags,
    LPCPROPVARIANT pValue);
void __RPC_STUB IMimeMessage_SetProp_Stub(
    IRpcStubBuffer* This,
    IRpcChannelBuffer* pRpcChannelBuffer,
    PRPC_MESSAGE pRpcMessage,
    DWORD* pdwStubPhase);
HRESULT STDMETHODCALLTYPE IMimeMessage_DeleteProp_Proxy(
    IMimeMessage* This,
    LPCSTR pszName);
void __RPC_STUB IMimeMessage_DeleteProp_Stub(
    IRpcStubBuffer* This,
    IRpcChannelBuffer* pRpcChannelBuffer,
    PRPC_MESSAGE pRpcMessage,
    DWORD* pdwStubPhase);
HRESULT STDMETHODCALLTYPE IMimeMessage_QueryProp_Proxy(
    IMimeMessage* This,
    LPCSTR pszName,
    LPCSTR pszCriteria,
    boolean fSubString,
    boolean fCaseSensitive);
void __RPC_STUB IMimeMessage_QueryProp_Stub(
    IRpcStubBuffer* This,
    IRpcChannelBuffer* pRpcChannelBuffer,
    PRPC_MESSAGE pRpcMessage,
    DWORD* pdwStubPhase);
HRESULT STDMETHODCALLTYPE IMimeMessage_GetTextBody_Proxy(
    IMimeMessage* This,
    DWORD dwTxtType,
    ENCODINGTYPE ietEncoding,
    IStream **pStream,
    LPHBODY phBody);
void __RPC_STUB IMimeMessage_GetTextBody_Stub(
    IRpcStubBuffer* This,
    IRpcChannelBuffer* pRpcChannelBuffer,
    PRPC_MESSAGE pRpcMessage,
    DWORD* pdwStubPhase);
HRESULT STDMETHODCALLTYPE IMimeMessage_SetTextBody_Proxy(
    IMimeMessage* This,
    DWORD dwTxtType,
    ENCODINGTYPE ietEncoding,
    HBODY hAlternative,
    IStream *pStream,
    LPHBODY phBody);
void __RPC_STUB IMimeMessage_SetTextBody_Stub(
    IRpcStubBuffer* This,
    IRpcChannelBuffer* pRpcChannelBuffer,
    PRPC_MESSAGE pRpcMessage,
    DWORD* pdwStubPhase);
HRESULT STDMETHODCALLTYPE IMimeMessage_AttachObject_Proxy(
    IMimeMessage* This,
    REFIID riid,
    void *pvObject,
    LPHBODY phBody);
void __RPC_STUB IMimeMessage_AttachObject_Stub(
    IRpcStubBuffer* This,
    IRpcChannelBuffer* pRpcChannelBuffer,
    PRPC_MESSAGE pRpcMessage,
    DWORD* pdwStubPhase);
HRESULT STDMETHODCALLTYPE IMimeMessage_AttachFile_Proxy(
    IMimeMessage* This,
    LPCSTR pszFilePath,
    IStream *pstmFile,
    LPHBODY phBody);
void __RPC_STUB IMimeMessage_AttachFile_Stub(
    IRpcStubBuffer* This,
    IRpcChannelBuffer* pRpcChannelBuffer,
    PRPC_MESSAGE pRpcMessage,
    DWORD* pdwStubPhase);
HRESULT STDMETHODCALLTYPE IMimeMessage_AttachURL_Proxy(
    IMimeMessage* This,
    LPCSTR pszBase,
    LPCSTR pszURL,
    DWORD dwFlags,
    IStream *pstmURL,
    LPSTR *ppszCIDURL,
    LPHBODY phBody);
void __RPC_STUB IMimeMessage_AttachURL_Stub(
    IRpcStubBuffer* This,
    IRpcChannelBuffer* pRpcChannelBuffer,
    PRPC_MESSAGE pRpcMessage,
    DWORD* pdwStubPhase);
HRESULT STDMETHODCALLTYPE IMimeMessage_GetAttachments_Proxy(
    IMimeMessage* This,
    ULONG *pcAttach,
    LPHBODY *pprghAttach);
void __RPC_STUB IMimeMessage_GetAttachments_Stub(
    IRpcStubBuffer* This,
    IRpcChannelBuffer* pRpcChannelBuffer,
    PRPC_MESSAGE pRpcMessage,
    DWORD* pdwStubPhase);
HRESULT STDMETHODCALLTYPE IMimeMessage_GetAddressTable_Proxy(
    IMimeMessage* This,
    IMimeAddressTable **ppTable);
void __RPC_STUB IMimeMessage_GetAddressTable_Stub(
    IRpcStubBuffer* This,
    IRpcChannelBuffer* pRpcChannelBuffer,
    PRPC_MESSAGE pRpcMessage,
    DWORD* pdwStubPhase);
HRESULT STDMETHODCALLTYPE IMimeMessage_GetSender_Proxy(
    IMimeMessage* This,
    LPADDRESSPROPS pAddress);
void __RPC_STUB IMimeMessage_GetSender_Stub(
    IRpcStubBuffer* This,
    IRpcChannelBuffer* pRpcChannelBuffer,
    PRPC_MESSAGE pRpcMessage,
    DWORD* pdwStubPhase);
HRESULT STDMETHODCALLTYPE IMimeMessage_GetAddressTypes_Proxy(
    IMimeMessage* This,
    DWORD dwAdrTypes,
    DWORD dwProps,
    LPADDRESSLIST pList);
void __RPC_STUB IMimeMessage_GetAddressTypes_Stub(
    IRpcStubBuffer* This,
    IRpcChannelBuffer* pRpcChannelBuffer,
    PRPC_MESSAGE pRpcMessage,
    DWORD* pdwStubPhase);
HRESULT STDMETHODCALLTYPE IMimeMessage_GetAddressFormat_Proxy(
    IMimeMessage* This,
    DWORD dwAdrTypes,
    ADDRESSFORMAT format,
    LPSTR *ppszFormat);
void __RPC_STUB IMimeMessage_GetAddressFormat_Stub(
    IRpcStubBuffer* This,
    IRpcChannelBuffer* pRpcChannelBuffer,
    PRPC_MESSAGE pRpcMessage,
    DWORD* pdwStubPhase);
HRESULT STDMETHODCALLTYPE IMimeMessage_EnumAddressTypes_Proxy(
    IMimeMessage* This,
    DWORD dwAdrTypes,
    DWORD dwProps,
    IMimeEnumAddressTypes **ppEnum);
void __RPC_STUB IMimeMessage_EnumAddressTypes_Stub(
    IRpcStubBuffer* This,
    IRpcChannelBuffer* pRpcChannelBuffer,
    PRPC_MESSAGE pRpcMessage,
    DWORD* pdwStubPhase);
HRESULT STDMETHODCALLTYPE IMimeMessage_SplitMessage_Proxy(
    IMimeMessage* This,
    ULONG cbMaxPart,
    IMimeMessageParts **ppParts);
void __RPC_STUB IMimeMessage_SplitMessage_Stub(
    IRpcStubBuffer* This,
    IRpcChannelBuffer* pRpcChannelBuffer,
    PRPC_MESSAGE pRpcMessage,
    DWORD* pdwStubPhase);
HRESULT STDMETHODCALLTYPE IMimeMessage_GetRootMoniker_Proxy(
    IMimeMessage* This,
    IMoniker **ppMoniker);
void __RPC_STUB IMimeMessage_GetRootMoniker_Stub(
    IRpcStubBuffer* This,
    IRpcChannelBuffer* pRpcChannelBuffer,
    PRPC_MESSAGE pRpcMessage,
    DWORD* pdwStubPhase);

#endif  /* __IMimeMessage_INTERFACE_DEFINED__ */

/*****************************************************************************
 * IMimeMessageCallback interface
 */
#ifndef __IMimeMessageCallback_INTERFACE_DEFINED__
#define __IMimeMessageCallback_INTERFACE_DEFINED__

DEFINE_GUID(IID_IMimeMessageCallback, 0x761aa741, 0x7bda, 0x11d1, 0x8a,0xa9, 0x00,0xc0,0x4f,0xb9,0x51,0xf3);
#if defined(__cplusplus) && !defined(CINTERFACE)
MIDL_INTERFACE("761aa741-7bda-11d1-8aa9-00c04fb951f3")
IMimeMessageCallback : public IUnknown
{
    virtual HRESULT STDMETHODCALLTYPE OnWebPageSplitter(
        DWORD cInlined,
        IStream *ppStream) = 0;

};
#ifdef __CRT_UUID_DECL
__CRT_UUID_DECL(IMimeMessageCallback, 0x761aa741, 0x7bda, 0x11d1, 0x8a,0xa9, 0x00,0xc0,0x4f,0xb9,0x51,0xf3)
#endif
#else
typedef struct IMimeMessageCallbackVtbl {
    BEGIN_INTERFACE

    /*** IUnknown methods ***/
    HRESULT (STDMETHODCALLTYPE *QueryInterface)(
        IMimeMessageCallback* This,
        REFIID riid,
        void **ppvObject);

    ULONG (STDMETHODCALLTYPE *AddRef)(
        IMimeMessageCallback* This);

    ULONG (STDMETHODCALLTYPE *Release)(
        IMimeMessageCallback* This);

    /*** IMimeMessageCallback methods ***/
    HRESULT (STDMETHODCALLTYPE *OnWebPageSplitter)(
        IMimeMessageCallback* This,
        DWORD cInlined,
        IStream *ppStream);

    END_INTERFACE
} IMimeMessageCallbackVtbl;
interface IMimeMessageCallback {
    CONST_VTBL IMimeMessageCallbackVtbl* lpVtbl;
};

#ifdef COBJMACROS
/*** IUnknown methods ***/
#define IMimeMessageCallback_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
#define IMimeMessageCallback_AddRef(This) (This)->lpVtbl->AddRef(This)
#define IMimeMessageCallback_Release(This) (This)->lpVtbl->Release(This)
/*** IMimeMessageCallback methods ***/
#define IMimeMessageCallback_OnWebPageSplitter(This,cInlined,ppStream) (This)->lpVtbl->OnWebPageSplitter(This,cInlined,ppStream)
#endif

#endif

HRESULT STDMETHODCALLTYPE IMimeMessageCallback_OnWebPageSplitter_Proxy(
    IMimeMessageCallback* This,
    DWORD cInlined,
    IStream *ppStream);
void __RPC_STUB IMimeMessageCallback_OnWebPageSplitter_Stub(
    IRpcStubBuffer* This,
    IRpcChannelBuffer* pRpcChannelBuffer,
    PRPC_MESSAGE pRpcMessage,
    DWORD* pdwStubPhase);

#endif  /* __IMimeMessageCallback_INTERFACE_DEFINED__ */

/*****************************************************************************
 * IPersistMime interface
 */
#ifndef __IPersistMime_INTERFACE_DEFINED__
#define __IPersistMime_INTERFACE_DEFINED__

DEFINE_GUID(IID_IPersistMime, 0xde4ad8da, 0x555f, 0x11d1, 0x8d,0xd0, 0x00,0xc0,0x4f,0xb9,0x51,0xf9);
#if defined(__cplusplus) && !defined(CINTERFACE)
MIDL_INTERFACE("de4ad8da-555f-11d1-8dd0-00c04fb951f9")
IPersistMime : public IPersist
{
};
#ifdef __CRT_UUID_DECL
__CRT_UUID_DECL(IPersistMime, 0xde4ad8da, 0x555f, 0x11d1, 0x8d,0xd0, 0x00,0xc0,0x4f,0xb9,0x51,0xf9)
#endif
#else
typedef struct IPersistMimeVtbl {
    BEGIN_INTERFACE

    /*** IUnknown methods ***/
    HRESULT (STDMETHODCALLTYPE *QueryInterface)(
        IPersistMime* This,
        REFIID riid,
        void **ppvObject);

    ULONG (STDMETHODCALLTYPE *AddRef)(
        IPersistMime* This);

    ULONG (STDMETHODCALLTYPE *Release)(
        IPersistMime* This);

    /*** IPersist methods ***/
    HRESULT (STDMETHODCALLTYPE *GetClassID)(
        IPersistMime* This,
        CLSID *pClassID);

    END_INTERFACE
} IPersistMimeVtbl;
interface IPersistMime {
    CONST_VTBL IPersistMimeVtbl* lpVtbl;
};

#ifdef COBJMACROS
/*** IUnknown methods ***/
#define IPersistMime_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
#define IPersistMime_AddRef(This) (This)->lpVtbl->AddRef(This)
#define IPersistMime_Release(This) (This)->lpVtbl->Release(This)
/*** IPersist methods ***/
#define IPersistMime_GetClassID(This,pClassID) (This)->lpVtbl->GetClassID(This,pClassID)
#endif

#endif


#endif  /* __IPersistMime_INTERFACE_DEFINED__ */

/*****************************************************************************
 * IMimeMessageParts interface
 */
#ifndef __IMimeMessageParts_INTERFACE_DEFINED__
#define __IMimeMessageParts_INTERFACE_DEFINED__

DEFINE_GUID(IID_IMimeMessageParts, 0xc558834f, 0x7f86, 0x11d0, 0x82,0x52, 0x00,0xc0,0x4f,0xd8,0x5a,0xb4);
#if defined(__cplusplus) && !defined(CINTERFACE)
MIDL_INTERFACE("c558834f-7f86-11d0-8252-00c04fd85ab4")
IMimeMessageParts : public IUnknown
{
};
#ifdef __CRT_UUID_DECL
__CRT_UUID_DECL(IMimeMessageParts, 0xc558834f, 0x7f86, 0x11d0, 0x82,0x52, 0x00,0xc0,0x4f,0xd8,0x5a,0xb4)
#endif
#else
typedef struct IMimeMessagePartsVtbl {
    BEGIN_INTERFACE

    /*** IUnknown methods ***/
    HRESULT (STDMETHODCALLTYPE *QueryInterface)(
        IMimeMessageParts* This,
        REFIID riid,
        void **ppvObject);

    ULONG (STDMETHODCALLTYPE *AddRef)(
        IMimeMessageParts* This);

    ULONG (STDMETHODCALLTYPE *Release)(
        IMimeMessageParts* This);

    END_INTERFACE
} IMimeMessagePartsVtbl;
interface IMimeMessageParts {
    CONST_VTBL IMimeMessagePartsVtbl* lpVtbl;
};

#ifdef COBJMACROS
/*** IUnknown methods ***/
#define IMimeMessageParts_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
#define IMimeMessageParts_AddRef(This) (This)->lpVtbl->AddRef(This)
#define IMimeMessageParts_Release(This) (This)->lpVtbl->Release(This)
#endif

#endif


#endif  /* __IMimeMessageParts_INTERFACE_DEFINED__ */

/*****************************************************************************
 * IMimeEnumHeaderRows interface
 */
#ifndef __IMimeEnumHeaderRows_INTERFACE_DEFINED__
#define __IMimeEnumHeaderRows_INTERFACE_DEFINED__

typedef struct tagENUMHEADERROW {
    HHEADERROW hRow;
    LPSTR pszHeader;
    LPSTR pszData;
    ULONG cchData;
    DWORD_PTR dwReserved;
} ENUMHEADERROW;
typedef struct tagENUMHEADERROW *LPENUMHEADERROW;
DEFINE_GUID(IID_IMimeEnumHeaderRows, 0xc558834d, 0x7f86, 0x11d0, 0x82,0x52, 0x00,0xc0,0x4f,0xd8,0x5a,0xb4);
#if defined(__cplusplus) && !defined(CINTERFACE)
MIDL_INTERFACE("c558834d-7f86-11d0-8252-00c04fd85ab4")
IMimeEnumHeaderRows : public IUnknown
{
};
#ifdef __CRT_UUID_DECL
__CRT_UUID_DECL(IMimeEnumHeaderRows, 0xc558834d, 0x7f86, 0x11d0, 0x82,0x52, 0x00,0xc0,0x4f,0xd8,0x5a,0xb4)
#endif
#else
typedef struct IMimeEnumHeaderRowsVtbl {
    BEGIN_INTERFACE

    /*** IUnknown methods ***/
    HRESULT (STDMETHODCALLTYPE *QueryInterface)(
        IMimeEnumHeaderRows* This,
        REFIID riid,
        void **ppvObject);

    ULONG (STDMETHODCALLTYPE *AddRef)(
        IMimeEnumHeaderRows* This);

    ULONG (STDMETHODCALLTYPE *Release)(
        IMimeEnumHeaderRows* This);

    END_INTERFACE
} IMimeEnumHeaderRowsVtbl;
interface IMimeEnumHeaderRows {
    CONST_VTBL IMimeEnumHeaderRowsVtbl* lpVtbl;
};

#ifdef COBJMACROS
/*** IUnknown methods ***/
#define IMimeEnumHeaderRows_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
#define IMimeEnumHeaderRows_AddRef(This) (This)->lpVtbl->AddRef(This)
#define IMimeEnumHeaderRows_Release(This) (This)->lpVtbl->Release(This)
#endif

#endif


#endif  /* __IMimeEnumHeaderRows_INTERFACE_DEFINED__ */

/*****************************************************************************
 * IMimeEnumProperties interface
 */
#ifndef __IMimeEnumProperties_INTERFACE_DEFINED__
#define __IMimeEnumProperties_INTERFACE_DEFINED__

typedef IMimeEnumProperties *LPMIMEENUMPROPERTIES;
typedef struct tagENUMPROPERTY {
    LPSTR pszName;
    HHEADERROW hRow;
    DWORD dwPropId;
} ENUMPROPERTY;
typedef struct tagENUMPROPERTY *LPENUMPROPERTY;
DEFINE_GUID(IID_IMimeEnumProperties, 0xfd853cee, 0x7f86, 0x11d0, 0x82,0x52, 0x00,0xc0,0x4f,0xd8,0x5a,0xb4);
#if defined(__cplusplus) && !defined(CINTERFACE)
MIDL_INTERFACE("fd853cee-7f86-11d0-8252-00c04fd85ab4")
IMimeEnumProperties : public IUnknown
{
    virtual HRESULT STDMETHODCALLTYPE Next(
        ULONG cFetch,
        LPENUMPROPERTY prgProp,
        ULONG *pcFetched) = 0;

    virtual HRESULT STDMETHODCALLTYPE Skip(
        ULONG cItems) = 0;

    virtual HRESULT STDMETHODCALLTYPE Reset(
        ) = 0;

    virtual HRESULT STDMETHODCALLTYPE Clone(
        IMimeEnumProperties **ppEnum) = 0;

    virtual HRESULT STDMETHODCALLTYPE Count(
        ULONG *pcItems) = 0;

};
#ifdef __CRT_UUID_DECL
__CRT_UUID_DECL(IMimeEnumProperties, 0xfd853cee, 0x7f86, 0x11d0, 0x82,0x52, 0x00,0xc0,0x4f,0xd8,0x5a,0xb4)
#endif
#else
typedef struct IMimeEnumPropertiesVtbl {
    BEGIN_INTERFACE

    /*** IUnknown methods ***/
    HRESULT (STDMETHODCALLTYPE *QueryInterface)(
        IMimeEnumProperties* This,
        REFIID riid,
        void **ppvObject);

    ULONG (STDMETHODCALLTYPE *AddRef)(
        IMimeEnumProperties* This);

    ULONG (STDMETHODCALLTYPE *Release)(
        IMimeEnumProperties* This);

    /*** IMimeEnumProperties methods ***/
    HRESULT (STDMETHODCALLTYPE *Next)(
        IMimeEnumProperties* This,
        ULONG cFetch,
        LPENUMPROPERTY prgProp,
        ULONG *pcFetched);

    HRESULT (STDMETHODCALLTYPE *Skip)(
        IMimeEnumProperties* This,
        ULONG cItems);

    HRESULT (STDMETHODCALLTYPE *Reset)(
        IMimeEnumProperties* This);

    HRESULT (STDMETHODCALLTYPE *Clone)(
        IMimeEnumProperties* This,
        IMimeEnumProperties **ppEnum);

    HRESULT (STDMETHODCALLTYPE *Count)(
        IMimeEnumProperties* This,
        ULONG *pcItems);

    END_INTERFACE
} IMimeEnumPropertiesVtbl;
interface IMimeEnumProperties {
    CONST_VTBL IMimeEnumPropertiesVtbl* lpVtbl;
};

#ifdef COBJMACROS
/*** IUnknown methods ***/
#define IMimeEnumProperties_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
#define IMimeEnumProperties_AddRef(This) (This)->lpVtbl->AddRef(This)
#define IMimeEnumProperties_Release(This) (This)->lpVtbl->Release(This)
/*** IMimeEnumProperties methods ***/
#define IMimeEnumProperties_Next(This,cFetch,prgProp,pcFetched) (This)->lpVtbl->Next(This,cFetch,prgProp,pcFetched)
#define IMimeEnumProperties_Skip(This,cItems) (This)->lpVtbl->Skip(This,cItems)
#define IMimeEnumProperties_Reset(This) (This)->lpVtbl->Reset(This)
#define IMimeEnumProperties_Clone(This,ppEnum) (This)->lpVtbl->Clone(This,ppEnum)
#define IMimeEnumProperties_Count(This,pcItems) (This)->lpVtbl->Count(This,pcItems)
#endif

#endif

HRESULT STDMETHODCALLTYPE IMimeEnumProperties_Next_Proxy(
    IMimeEnumProperties* This,
    ULONG cFetch,
    LPENUMPROPERTY prgProp,
    ULONG *pcFetched);
void __RPC_STUB IMimeEnumProperties_Next_Stub(
    IRpcStubBuffer* This,
    IRpcChannelBuffer* pRpcChannelBuffer,
    PRPC_MESSAGE pRpcMessage,
    DWORD* pdwStubPhase);
HRESULT STDMETHODCALLTYPE IMimeEnumProperties_Skip_Proxy(
    IMimeEnumProperties* This,
    ULONG cItems);
void __RPC_STUB IMimeEnumProperties_Skip_Stub(
    IRpcStubBuffer* This,
    IRpcChannelBuffer* pRpcChannelBuffer,
    PRPC_MESSAGE pRpcMessage,
    DWORD* pdwStubPhase);
HRESULT STDMETHODCALLTYPE IMimeEnumProperties_Reset_Proxy(
    IMimeEnumProperties* This);
void __RPC_STUB IMimeEnumProperties_Reset_Stub(
    IRpcStubBuffer* This,
    IRpcChannelBuffer* pRpcChannelBuffer,
    PRPC_MESSAGE pRpcMessage,
    DWORD* pdwStubPhase);
HRESULT STDMETHODCALLTYPE IMimeEnumProperties_Clone_Proxy(
    IMimeEnumProperties* This,
    IMimeEnumProperties **ppEnum);
void __RPC_STUB IMimeEnumProperties_Clone_Stub(
    IRpcStubBuffer* This,
    IRpcChannelBuffer* pRpcChannelBuffer,
    PRPC_MESSAGE pRpcMessage,
    DWORD* pdwStubPhase);
HRESULT STDMETHODCALLTYPE IMimeEnumProperties_Count_Proxy(
    IMimeEnumProperties* This,
    ULONG *pcItems);
void __RPC_STUB IMimeEnumProperties_Count_Stub(
    IRpcStubBuffer* This,
    IRpcChannelBuffer* pRpcChannelBuffer,
    PRPC_MESSAGE pRpcMessage,
    DWORD* pdwStubPhase);

#endif  /* __IMimeEnumProperties_INTERFACE_DEFINED__ */

/*****************************************************************************
 * IMimeEnumAddressTypes interface
 */
#ifndef __IMimeEnumAddressTypes_INTERFACE_DEFINED__
#define __IMimeEnumAddressTypes_INTERFACE_DEFINED__

DEFINE_GUID(IID_IMimeEnumAddressTypes, 0xc5588354, 0x7f86, 0x11d0, 0x82,0x52, 0x00,0xc0,0x4f,0xd8,0x5a,0xb4);
#if defined(__cplusplus) && !defined(CINTERFACE)
MIDL_INTERFACE("c5588354-7f86-11d0-8252-00c04fd85ab4")
IMimeEnumAddressTypes : public IUnknown
{
};
#ifdef __CRT_UUID_DECL
__CRT_UUID_DECL(IMimeEnumAddressTypes, 0xc5588354, 0x7f86, 0x11d0, 0x82,0x52, 0x00,0xc0,0x4f,0xd8,0x5a,0xb4)
#endif
#else
typedef struct IMimeEnumAddressTypesVtbl {
    BEGIN_INTERFACE

    /*** IUnknown methods ***/
    HRESULT (STDMETHODCALLTYPE *QueryInterface)(
        IMimeEnumAddressTypes* This,
        REFIID riid,
        void **ppvObject);

    ULONG (STDMETHODCALLTYPE *AddRef)(
        IMimeEnumAddressTypes* This);

    ULONG (STDMETHODCALLTYPE *Release)(
        IMimeEnumAddressTypes* This);

    END_INTERFACE
} IMimeEnumAddressTypesVtbl;
interface IMimeEnumAddressTypes {
    CONST_VTBL IMimeEnumAddressTypesVtbl* lpVtbl;
};

#ifdef COBJMACROS
/*** IUnknown methods ***/
#define IMimeEnumAddressTypes_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
#define IMimeEnumAddressTypes_AddRef(This) (This)->lpVtbl->AddRef(This)
#define IMimeEnumAddressTypes_Release(This) (This)->lpVtbl->Release(This)
#endif

#endif


#endif  /* __IMimeEnumAddressTypes_INTERFACE_DEFINED__ */

/*****************************************************************************
 * IMimeEnumMessageParts interface
 */
#ifndef __IMimeEnumMessageParts_INTERFACE_DEFINED__
#define __IMimeEnumMessageParts_INTERFACE_DEFINED__

DEFINE_GUID(IID_IMimeEnumMessageParts, 0xc5588350, 0x7f86, 0x11d0, 0x82,0x52, 0x00,0xc0,0x4f,0xd8,0x5a,0xb4);
#if defined(__cplusplus) && !defined(CINTERFACE)
MIDL_INTERFACE("c5588350-7f86-11d0-8252-00c04fd85ab4")
IMimeEnumMessageParts : public IUnknown
{
};
#ifdef __CRT_UUID_DECL
__CRT_UUID_DECL(IMimeEnumMessageParts, 0xc5588350, 0x7f86, 0x11d0, 0x82,0x52, 0x00,0xc0,0x4f,0xd8,0x5a,0xb4)
#endif
#else
typedef struct IMimeEnumMessagePartsVtbl {
    BEGIN_INTERFACE

    /*** IUnknown methods ***/
    HRESULT (STDMETHODCALLTYPE *QueryInterface)(
        IMimeEnumMessageParts* This,
        REFIID riid,
        void **ppvObject);

    ULONG (STDMETHODCALLTYPE *AddRef)(
        IMimeEnumMessageParts* This);

    ULONG (STDMETHODCALLTYPE *Release)(
        IMimeEnumMessageParts* This);

    END_INTERFACE
} IMimeEnumMessagePartsVtbl;
interface IMimeEnumMessageParts {
    CONST_VTBL IMimeEnumMessagePartsVtbl* lpVtbl;
};

#ifdef COBJMACROS
/*** IUnknown methods ***/
#define IMimeEnumMessageParts_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
#define IMimeEnumMessageParts_AddRef(This) (This)->lpVtbl->AddRef(This)
#define IMimeEnumMessageParts_Release(This) (This)->lpVtbl->Release(This)
#endif

#endif


#endif  /* __IMimeEnumMessageParts_INTERFACE_DEFINED__ */

/*****************************************************************************
 * IHashTable interface
 */
#ifndef __IHashTable_INTERFACE_DEFINED__
#define __IHashTable_INTERFACE_DEFINED__

DEFINE_GUID(IID_IHashTable, 0x64577981, 0x86d7, 0x11d1, 0xbd,0xfc, 0x00,0xc0,0x4f,0xa3,0x10,0x09);
#if defined(__cplusplus) && !defined(CINTERFACE)
MIDL_INTERFACE("64577981-86d7-11d1-bdfc-00c04fa31009")
IHashTable : public IUnknown
{
};
#ifdef __CRT_UUID_DECL
__CRT_UUID_DECL(IHashTable, 0x64577981, 0x86d7, 0x11d1, 0xbd,0xfc, 0x00,0xc0,0x4f,0xa3,0x10,0x09)
#endif
#else
typedef struct IHashTableVtbl {
    BEGIN_INTERFACE

    /*** IUnknown methods ***/
    HRESULT (STDMETHODCALLTYPE *QueryInterface)(
        IHashTable* This,
        REFIID riid,
        void **ppvObject);

    ULONG (STDMETHODCALLTYPE *AddRef)(
        IHashTable* This);

    ULONG (STDMETHODCALLTYPE *Release)(
        IHashTable* This);

    END_INTERFACE
} IHashTableVtbl;
interface IHashTable {
    CONST_VTBL IHashTableVtbl* lpVtbl;
};

#ifdef COBJMACROS
/*** IUnknown methods ***/
#define IHashTable_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
#define IHashTable_AddRef(This) (This)->lpVtbl->AddRef(This)
#define IHashTable_Release(This) (This)->lpVtbl->Release(This)
#endif

#endif


#endif  /* __IHashTable_INTERFACE_DEFINED__ */

/*****************************************************************************
 * IMimeAllocator interface
 */
#ifndef __IMimeAllocator_INTERFACE_DEFINED__
#define __IMimeAllocator_INTERFACE_DEFINED__

typedef IMimeAllocator *LPMIMEALLOCATOR;
DEFINE_GUID(IID_IMimeAllocator, 0xc5588351, 0x7f86, 0x11d0, 0x82,0x52, 0x00,0xc0,0x4f,0xd8,0x5a,0xb4);
#if defined(__cplusplus) && !defined(CINTERFACE)
MIDL_INTERFACE("c5588351-7f86-11d0-8252-00c04fd85ab4")
IMimeAllocator : public IMalloc
{
    virtual HRESULT STDMETHODCALLTYPE FreeParamInfoArray(
        ULONG cParams,
        LPMIMEPARAMINFO prgParam,
        boolean fFreeArray) = 0;

    virtual HRESULT STDMETHODCALLTYPE FreeAddressList(
        LPADDRESSLIST pList) = 0;

    virtual HRESULT STDMETHODCALLTYPE FreeAddressProps(
        LPADDRESSPROPS pAddress) = 0;

    virtual HRESULT STDMETHODCALLTYPE ReleaseObjects(
        ULONG cObjects,
        IUnknown **prgpUnknown,
        boolean fFreeArray) = 0;

    virtual HRESULT STDMETHODCALLTYPE FreeEnumHeaderRowArray(
        ULONG cRows,
        LPENUMHEADERROW prgRow,
        boolean fFreeArray) = 0;

    virtual HRESULT STDMETHODCALLTYPE FreeEnumPropertyArray(
        ULONG cProps,
        LPENUMPROPERTY prgProp,
        boolean fFreeArray) = 0;

    virtual HRESULT STDMETHODCALLTYPE FreeThumbprint(
        THUMBBLOB *pthumbprint) = 0;

    virtual HRESULT STDMETHODCALLTYPE PropVariantClear(
        LPPROPVARIANT pProp) = 0;

};
#ifdef __CRT_UUID_DECL
__CRT_UUID_DECL(IMimeAllocator, 0xc5588351, 0x7f86, 0x11d0, 0x82,0x52, 0x00,0xc0,0x4f,0xd8,0x5a,0xb4)
#endif
#else
typedef struct IMimeAllocatorVtbl {
    BEGIN_INTERFACE

    /*** IUnknown methods ***/
    HRESULT (STDMETHODCALLTYPE *QueryInterface)(
        IMimeAllocator* This,
        REFIID riid,
        void **ppvObject);

    ULONG (STDMETHODCALLTYPE *AddRef)(
        IMimeAllocator* This);

    ULONG (STDMETHODCALLTYPE *Release)(
        IMimeAllocator* This);

    /*** IMalloc methods ***/
    LPVOID (STDMETHODCALLTYPE *Alloc)(
        IMimeAllocator* This,
        ULONG cb);

    LPVOID (STDMETHODCALLTYPE *Realloc)(
        IMimeAllocator* This,
        LPVOID pv,
        ULONG cb);

    void (STDMETHODCALLTYPE *Free)(
        IMimeAllocator* This,
        LPVOID pv);

    ULONG (STDMETHODCALLTYPE *GetSize)(
        IMimeAllocator* This,
        LPVOID pv);

    int (STDMETHODCALLTYPE *DidAlloc)(
        IMimeAllocator* This,
        LPVOID pv);

    void (STDMETHODCALLTYPE *HeapMinimize)(
        IMimeAllocator* This);

    /*** IMimeAllocator methods ***/
    HRESULT (STDMETHODCALLTYPE *FreeParamInfoArray)(
        IMimeAllocator* This,
        ULONG cParams,
        LPMIMEPARAMINFO prgParam,
        boolean fFreeArray);

    HRESULT (STDMETHODCALLTYPE *FreeAddressList)(
        IMimeAllocator* This,
        LPADDRESSLIST pList);

    HRESULT (STDMETHODCALLTYPE *FreeAddressProps)(
        IMimeAllocator* This,
        LPADDRESSPROPS pAddress);

    HRESULT (STDMETHODCALLTYPE *ReleaseObjects)(
        IMimeAllocator* This,
        ULONG cObjects,
        IUnknown **prgpUnknown,
        boolean fFreeArray);

    HRESULT (STDMETHODCALLTYPE *FreeEnumHeaderRowArray)(
        IMimeAllocator* This,
        ULONG cRows,
        LPENUMHEADERROW prgRow,
        boolean fFreeArray);

    HRESULT (STDMETHODCALLTYPE *FreeEnumPropertyArray)(
        IMimeAllocator* This,
        ULONG cProps,
        LPENUMPROPERTY prgProp,
        boolean fFreeArray);

    HRESULT (STDMETHODCALLTYPE *FreeThumbprint)(
        IMimeAllocator* This,
        THUMBBLOB *pthumbprint);

    HRESULT (STDMETHODCALLTYPE *PropVariantClear)(
        IMimeAllocator* This,
        LPPROPVARIANT pProp);

    END_INTERFACE
} IMimeAllocatorVtbl;
interface IMimeAllocator {
    CONST_VTBL IMimeAllocatorVtbl* lpVtbl;
};

#ifdef COBJMACROS
/*** IUnknown methods ***/
#define IMimeAllocator_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
#define IMimeAllocator_AddRef(This) (This)->lpVtbl->AddRef(This)
#define IMimeAllocator_Release(This) (This)->lpVtbl->Release(This)
/*** IMalloc methods ***/
#define IMimeAllocator_Alloc(This,cb) (This)->lpVtbl->Alloc(This,cb)
#define IMimeAllocator_Realloc(This,pv,cb) (This)->lpVtbl->Realloc(This,pv,cb)
#define IMimeAllocator_Free(This,pv) (This)->lpVtbl->Free(This,pv)
#define IMimeAllocator_GetSize(This,pv) (This)->lpVtbl->GetSize(This,pv)
#define IMimeAllocator_DidAlloc(This,pv) (This)->lpVtbl->DidAlloc(This,pv)
#define IMimeAllocator_HeapMinimize(This) (This)->lpVtbl->HeapMinimize(This)
/*** IMimeAllocator methods ***/
#define IMimeAllocator_FreeParamInfoArray(This,cParams,prgParam,fFreeArray) (This)->lpVtbl->FreeParamInfoArray(This,cParams,prgParam,fFreeArray)
#define IMimeAllocator_FreeAddressList(This,pList) (This)->lpVtbl->FreeAddressList(This,pList)
#define IMimeAllocator_FreeAddressProps(This,pAddress) (This)->lpVtbl->FreeAddressProps(This,pAddress)
#define IMimeAllocator_ReleaseObjects(This,cObjects,prgpUnknown,fFreeArray) (This)->lpVtbl->ReleaseObjects(This,cObjects,prgpUnknown,fFreeArray)
#define IMimeAllocator_FreeEnumHeaderRowArray(This,cRows,prgRow,fFreeArray) (This)->lpVtbl->FreeEnumHeaderRowArray(This,cRows,prgRow,fFreeArray)
#define IMimeAllocator_FreeEnumPropertyArray(This,cProps,prgProp,fFreeArray) (This)->lpVtbl->FreeEnumPropertyArray(This,cProps,prgProp,fFreeArray)
#define IMimeAllocator_FreeThumbprint(This,pthumbprint) (This)->lpVtbl->FreeThumbprint(This,pthumbprint)
#define IMimeAllocator_PropVariantClear(This,pProp) (This)->lpVtbl->PropVariantClear(This,pProp)
#endif

#endif

HRESULT STDMETHODCALLTYPE IMimeAllocator_FreeParamInfoArray_Proxy(
    IMimeAllocator* This,
    ULONG cParams,
    LPMIMEPARAMINFO prgParam,
    boolean fFreeArray);
void __RPC_STUB IMimeAllocator_FreeParamInfoArray_Stub(
    IRpcStubBuffer* This,
    IRpcChannelBuffer* pRpcChannelBuffer,
    PRPC_MESSAGE pRpcMessage,
    DWORD* pdwStubPhase);
HRESULT STDMETHODCALLTYPE IMimeAllocator_FreeAddressList_Proxy(
    IMimeAllocator* This,
    LPADDRESSLIST pList);
void __RPC_STUB IMimeAllocator_FreeAddressList_Stub(
    IRpcStubBuffer* This,
    IRpcChannelBuffer* pRpcChannelBuffer,
    PRPC_MESSAGE pRpcMessage,
    DWORD* pdwStubPhase);
HRESULT STDMETHODCALLTYPE IMimeAllocator_FreeAddressProps_Proxy(
    IMimeAllocator* This,
    LPADDRESSPROPS pAddress);
void __RPC_STUB IMimeAllocator_FreeAddressProps_Stub(
    IRpcStubBuffer* This,
    IRpcChannelBuffer* pRpcChannelBuffer,
    PRPC_MESSAGE pRpcMessage,
    DWORD* pdwStubPhase);
HRESULT STDMETHODCALLTYPE IMimeAllocator_ReleaseObjects_Proxy(
    IMimeAllocator* This,
    ULONG cObjects,
    IUnknown **prgpUnknown,
    boolean fFreeArray);
void __RPC_STUB IMimeAllocator_ReleaseObjects_Stub(
    IRpcStubBuffer* This,
    IRpcChannelBuffer* pRpcChannelBuffer,
    PRPC_MESSAGE pRpcMessage,
    DWORD* pdwStubPhase);
HRESULT STDMETHODCALLTYPE IMimeAllocator_FreeEnumHeaderRowArray_Proxy(
    IMimeAllocator* This,
    ULONG cRows,
    LPENUMHEADERROW prgRow,
    boolean fFreeArray);
void __RPC_STUB IMimeAllocator_FreeEnumHeaderRowArray_Stub(
    IRpcStubBuffer* This,
    IRpcChannelBuffer* pRpcChannelBuffer,
    PRPC_MESSAGE pRpcMessage,
    DWORD* pdwStubPhase);
HRESULT STDMETHODCALLTYPE IMimeAllocator_FreeEnumPropertyArray_Proxy(
    IMimeAllocator* This,
    ULONG cProps,
    LPENUMPROPERTY prgProp,
    boolean fFreeArray);
void __RPC_STUB IMimeAllocator_FreeEnumPropertyArray_Stub(
    IRpcStubBuffer* This,
    IRpcChannelBuffer* pRpcChannelBuffer,
    PRPC_MESSAGE pRpcMessage,
    DWORD* pdwStubPhase);
HRESULT STDMETHODCALLTYPE IMimeAllocator_FreeThumbprint_Proxy(
    IMimeAllocator* This,
    THUMBBLOB *pthumbprint);
void __RPC_STUB IMimeAllocator_FreeThumbprint_Stub(
    IRpcStubBuffer* This,
    IRpcChannelBuffer* pRpcChannelBuffer,
    PRPC_MESSAGE pRpcMessage,
    DWORD* pdwStubPhase);
HRESULT STDMETHODCALLTYPE IMimeAllocator_PropVariantClear_Proxy(
    IMimeAllocator* This,
    LPPROPVARIANT pProp);
void __RPC_STUB IMimeAllocator_PropVariantClear_Stub(
    IRpcStubBuffer* This,
    IRpcChannelBuffer* pRpcChannelBuffer,
    PRPC_MESSAGE pRpcMessage,
    DWORD* pdwStubPhase);

#endif  /* __IMimeAllocator_INTERFACE_DEFINED__ */

/*****************************************************************************
 * IMimeObjResolver interface
 */
#ifndef __IMimeObjResolver_INTERFACE_DEFINED__
#define __IMimeObjResolver_INTERFACE_DEFINED__

DEFINE_GUID(IID_IMimeObjResolver, 0xfeceaffd, 0xc441, 0x11d1, 0x96,0x0e, 0x00,0xc0,0x4f,0xbd,0x7c,0x09);
#if defined(__cplusplus) && !defined(CINTERFACE)
MIDL_INTERFACE("feceaffd-c441-11d1-960e-00c04fbd7c09")
IMimeObjResolver : public IUnknown
{
};
#ifdef __CRT_UUID_DECL
__CRT_UUID_DECL(IMimeObjResolver, 0xfeceaffd, 0xc441, 0x11d1, 0x96,0x0e, 0x00,0xc0,0x4f,0xbd,0x7c,0x09)
#endif
#else
typedef struct IMimeObjResolverVtbl {
    BEGIN_INTERFACE

    /*** IUnknown methods ***/
    HRESULT (STDMETHODCALLTYPE *QueryInterface)(
        IMimeObjResolver* This,
        REFIID riid,
        void **ppvObject);

    ULONG (STDMETHODCALLTYPE *AddRef)(
        IMimeObjResolver* This);

    ULONG (STDMETHODCALLTYPE *Release)(
        IMimeObjResolver* This);

    END_INTERFACE
} IMimeObjResolverVtbl;
interface IMimeObjResolver {
    CONST_VTBL IMimeObjResolverVtbl* lpVtbl;
};

#ifdef COBJMACROS
/*** IUnknown methods ***/
#define IMimeObjResolver_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
#define IMimeObjResolver_AddRef(This) (This)->lpVtbl->AddRef(This)
#define IMimeObjResolver_Release(This) (This)->lpVtbl->Release(This)
#endif

#endif


#endif  /* __IMimeObjResolver_INTERFACE_DEFINED__ */

/*****************************************************************************
 * IFontCache interface
 */
#ifndef __IFontCache_INTERFACE_DEFINED__
#define __IFontCache_INTERFACE_DEFINED__

DEFINE_GUID(IID_IFontCache, 0xb0d17fc2, 0x7bc4, 0x11d1, 0xbd,0xfa, 0x00,0xc0,0x4f,0xa3,0x10,0x09);
#if defined(__cplusplus) && !defined(CINTERFACE)
MIDL_INTERFACE("b0d17fc2-7bc4-11d1-bdfa-00c04fa31009")
IFontCache : public IUnknown
{
};
#ifdef __CRT_UUID_DECL
__CRT_UUID_DECL(IFontCache, 0xb0d17fc2, 0x7bc4, 0x11d1, 0xbd,0xfa, 0x00,0xc0,0x4f,0xa3,0x10,0x09)
#endif
#else
typedef struct IFontCacheVtbl {
    BEGIN_INTERFACE

    /*** IUnknown methods ***/
    HRESULT (STDMETHODCALLTYPE *QueryInterface)(
        IFontCache* This,
        REFIID riid,
        void **ppvObject);

    ULONG (STDMETHODCALLTYPE *AddRef)(
        IFontCache* This);

    ULONG (STDMETHODCALLTYPE *Release)(
        IFontCache* This);

    END_INTERFACE
} IFontCacheVtbl;
interface IFontCache {
    CONST_VTBL IFontCacheVtbl* lpVtbl;
};

#ifdef COBJMACROS
/*** IUnknown methods ***/
#define IFontCache_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
#define IFontCache_AddRef(This) (This)->lpVtbl->AddRef(This)
#define IFontCache_Release(This) (This)->lpVtbl->Release(This)
#endif

#endif


#endif  /* __IFontCache_INTERFACE_DEFINED__ */

/*****************************************************************************
 * IFontCacheNotify interface
 */
#ifndef __IFontCacheNotify_INTERFACE_DEFINED__
#define __IFontCacheNotify_INTERFACE_DEFINED__

DEFINE_GUID(IID_IFontCacheNotify, 0xb0d17fc5, 0x7bc4, 0x11d1, 0xbd,0xfa, 0x00,0xc0,0x4f,0xa3,0x10,0x09);
#if defined(__cplusplus) && !defined(CINTERFACE)
MIDL_INTERFACE("b0d17fc5-7bc4-11d1-bdfa-00c04fa31009")
IFontCacheNotify : public IUnknown
{
};
#ifdef __CRT_UUID_DECL
__CRT_UUID_DECL(IFontCacheNotify, 0xb0d17fc5, 0x7bc4, 0x11d1, 0xbd,0xfa, 0x00,0xc0,0x4f,0xa3,0x10,0x09)
#endif
#else
typedef struct IFontCacheNotifyVtbl {
    BEGIN_INTERFACE

    /*** IUnknown methods ***/
    HRESULT (STDMETHODCALLTYPE *QueryInterface)(
        IFontCacheNotify* This,
        REFIID riid,
        void **ppvObject);

    ULONG (STDMETHODCALLTYPE *AddRef)(
        IFontCacheNotify* This);

    ULONG (STDMETHODCALLTYPE *Release)(
        IFontCacheNotify* This);

    END_INTERFACE
} IFontCacheNotifyVtbl;
interface IFontCacheNotify {
    CONST_VTBL IFontCacheNotifyVtbl* lpVtbl;
};

#ifdef COBJMACROS
/*** IUnknown methods ***/
#define IFontCacheNotify_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
#define IFontCacheNotify_AddRef(This) (This)->lpVtbl->AddRef(This)
#define IFontCacheNotify_Release(This) (This)->lpVtbl->Release(This)
#endif

#endif


#endif  /* __IFontCacheNotify_INTERFACE_DEFINED__ */

/*****************************************************************************
 * IMimeEditTag interface
 */
#ifndef __IMimeEditTag_INTERFACE_DEFINED__
#define __IMimeEditTag_INTERFACE_DEFINED__

DEFINE_GUID(IID_IMimeEditTag, 0x70183210, 0x7b36, 0x11d2, 0x8c,0x12, 0x00,0xc0,0x4f,0xa3,0x10,0x09);
#if defined(__cplusplus) && !defined(CINTERFACE)
MIDL_INTERFACE("70183210-7b36-11d2-8c12-00c04fa31009")
IMimeEditTag : public IUnknown
{
};
#ifdef __CRT_UUID_DECL
__CRT_UUID_DECL(IMimeEditTag, 0x70183210, 0x7b36, 0x11d2, 0x8c,0x12, 0x00,0xc0,0x4f,0xa3,0x10,0x09)
#endif
#else
typedef struct IMimeEditTagVtbl {
    BEGIN_INTERFACE

    /*** IUnknown methods ***/
    HRESULT (STDMETHODCALLTYPE *QueryInterface)(
        IMimeEditTag* This,
        REFIID riid,
        void **ppvObject);

    ULONG (STDMETHODCALLTYPE *AddRef)(
        IMimeEditTag* This);

    ULONG (STDMETHODCALLTYPE *Release)(
        IMimeEditTag* This);

    END_INTERFACE
} IMimeEditTagVtbl;
interface IMimeEditTag {
    CONST_VTBL IMimeEditTagVtbl* lpVtbl;
};

#ifdef COBJMACROS
/*** IUnknown methods ***/
#define IMimeEditTag_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
#define IMimeEditTag_AddRef(This) (This)->lpVtbl->AddRef(This)
#define IMimeEditTag_Release(This) (This)->lpVtbl->Release(This)
#endif

#endif


#endif  /* __IMimeEditTag_INTERFACE_DEFINED__ */

/*****************************************************************************
 * IMimeEditTagCollection interface
 */
#ifndef __IMimeEditTagCollection_INTERFACE_DEFINED__
#define __IMimeEditTagCollection_INTERFACE_DEFINED__

DEFINE_GUID(IID_IMimeEditTagCollection, 0xd09ee528, 0x7b38, 0x11d2, 0x8c,0x12, 0x00,0xc0,0x4f,0xa3,0x10,0x09);
#if defined(__cplusplus) && !defined(CINTERFACE)
MIDL_INTERFACE("d09ee528-7b38-11d2-8c12-00c04fa31009")
IMimeEditTagCollection : public IUnknown
{
};
#ifdef __CRT_UUID_DECL
__CRT_UUID_DECL(IMimeEditTagCollection, 0xd09ee528, 0x7b38, 0x11d2, 0x8c,0x12, 0x00,0xc0,0x4f,0xa3,0x10,0x09)
#endif
#else
typedef struct IMimeEditTagCollectionVtbl {
    BEGIN_INTERFACE

    /*** IUnknown methods ***/
    HRESULT (STDMETHODCALLTYPE *QueryInterface)(
        IMimeEditTagCollection* This,
        REFIID riid,
        void **ppvObject);

    ULONG (STDMETHODCALLTYPE *AddRef)(
        IMimeEditTagCollection* This);

    ULONG (STDMETHODCALLTYPE *Release)(
        IMimeEditTagCollection* This);

    END_INTERFACE
} IMimeEditTagCollectionVtbl;
interface IMimeEditTagCollection {
    CONST_VTBL IMimeEditTagCollectionVtbl* lpVtbl;
};

#ifdef COBJMACROS
/*** IUnknown methods ***/
#define IMimeEditTagCollection_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
#define IMimeEditTagCollection_AddRef(This) (This)->lpVtbl->AddRef(This)
#define IMimeEditTagCollection_Release(This) (This)->lpVtbl->Release(This)
#endif

#endif


#endif  /* __IMimeEditTagCollection_INTERFACE_DEFINED__ */

/*****************************************************************************
 * IMimeSecurityCallback interface
 */
#ifndef __IMimeSecurityCallback_INTERFACE_DEFINED__
#define __IMimeSecurityCallback_INTERFACE_DEFINED__

#define CMS_RECIPIENT_INFO_TYPE_UNKNOWN                0
#define CMS_RECIPIENT_INFO_TYPE_KEYTRANS               1
#define CMS_RECIPIENT_INFO_TYPE_KEYAGREE               2
#define CMS_RECIPIENT_INFO_TYPE_MAIL_LIST              3
#define CMS_RECIPIENT_INFO_PUBKEY_CERTIFICATE          0
#define CMS_RECIPIENT_INFO_PUBKEY_KEYTRANS             1
#define CMS_RECIPIENT_INFO_PUBKEY_PROVIDER             2
#define CMS_RECIPIENT_INFO_PUBKEY_EPHEMERAL_KEYAGREE   3
#define CMS_RECIPIENT_INFO_PUBKEY_STATIC_KEYAGREE      4
#define CMS_RECIPIENT_INFO_KEYID_CERTIFICATE           0
#define CMS_RECIPIENT_INFO_KEYID_ISSUERSERIAL          1
#define CMS_RECIPIENT_INFO_KEYID_KEY_ID                2
DEFINE_GUID(IID_IMimeSecurityCallback, 0xba715ae0, 0xa740, 0x11d2, 0x8b,0x22, 0x00,0x80,0xc7,0x6b,0x34,0xc6);
#if defined(__cplusplus) && !defined(CINTERFACE)
MIDL_INTERFACE("ba715ae0-a740-11d2-8b22-0080c76b34c6")
IMimeSecurityCallback : public IUnknown
{
};
#ifdef __CRT_UUID_DECL
__CRT_UUID_DECL(IMimeSecurityCallback, 0xba715ae0, 0xa740, 0x11d2, 0x8b,0x22, 0x00,0x80,0xc7,0x6b,0x34,0xc6)
#endif
#else
typedef struct IMimeSecurityCallbackVtbl {
    BEGIN_INTERFACE

    /*** IUnknown methods ***/
    HRESULT (STDMETHODCALLTYPE *QueryInterface)(
        IMimeSecurityCallback* This,
        REFIID riid,
        void **ppvObject);

    ULONG (STDMETHODCALLTYPE *AddRef)(
        IMimeSecurityCallback* This);

    ULONG (STDMETHODCALLTYPE *Release)(
        IMimeSecurityCallback* This);

    END_INTERFACE
} IMimeSecurityCallbackVtbl;
interface IMimeSecurityCallback {
    CONST_VTBL IMimeSecurityCallbackVtbl* lpVtbl;
};

#ifdef COBJMACROS
/*** IUnknown methods ***/
#define IMimeSecurityCallback_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
#define IMimeSecurityCallback_AddRef(This) (This)->lpVtbl->AddRef(This)
#define IMimeSecurityCallback_Release(This) (This)->lpVtbl->Release(This)
#endif

#endif


#endif  /* __IMimeSecurityCallback_INTERFACE_DEFINED__ */

#ifdef __cplusplus
 extern "C" {
#endif

HRESULT WINAPI MimeOleSetCompatMode(DWORD);
HRESULT WINAPI MimeOleContentTypeFromUrl(LPCSTR,LPCSTR,LPSTR*);
HRESULT WINAPI MimeOleParseMhtmlUrl(LPSTR,LPSTR*,LPSTR*);
HRESULT WINAPI MimeOleObjectFromUrl(LPCSTR,BOOL,REFIID,LPVOID*,IUnknown**);
HRESULT WINAPI MimeOleObjectFromMoniker(BINDF,IMoniker*,IBindCtx*,REFIID,LPVOID*,IMoniker**);
HRESULT WINAPI MimeOleCombineURL(LPCSTR,ULONG,LPCSTR,ULONG,BOOL,LPSTR*);
HRESULT WINAPI MimeOleGetSubjectFileName(IMimePropertySet*,ULONG*,ULONG*,LPSTR,ULONG);
HRESULT WINAPI MimeOleCreateWebDocument(LPCSTR,LPCSTR,IMimeWebDocument**);
HRESULT WINAPI MimeOleGetRelatedSection(IMimeMessageTree*,boolean,LPHBODY,boolean*);
HRESULT WINAPI MimeOleGetMixedSection(IMimeMessageTree*,boolean,LPHBODY,boolean*);
HRESULT WINAPI MimeOleGetAlternativeSection(IMimeMessageTree*,LPHBODY,boolean*);
HRESULT WINAPI MimeOleGenerateCID(LPSTR,ULONG,boolean);
HRESULT WINAPI MimeOleGenerateMID(LPSTR,ULONG,boolean);
HRESULT WINAPI MimeOleCreateByteStream(IStream**);
HRESULT WINAPI MimeOlGetPropertySchema(IMimePropertySchema**);
HRESULT WINAPI MimeOleQueryString(LPCSTR,LPCSTR,boolean,boolean);
HRESULT WINAPI MimeOleGetPropA(IMimePropertySet*,LPCSTR,DWORD,LPSTR*);
HRESULT WINAPI MimeOleSetPropA(IMimePropertySet*,LPCSTR,DWORD,LPCSTR);
HRESULT WINAPI MimeOleGetPropW(IMimePropertySet*,LPCSTR,DWORD,LPWSTR*);
HRESULT WINAPI MimeOleSetPropW(IMimePropertySet*,LPCSTR,DWORD,LPCWSTR);
HRESULT WINAPI MimeOleGetBodyPropA(IMimeMessageTree*,HBODY,LPCSTR,DWORD,LPSTR*);
HRESULT WINAPI MimeOleSetBodyPropA(IMimeMessageTree*,HBODY,LPCSTR,DWORD,LPCSTR);
HRESULT WINAPI MimeOleGetBodyPropW(IMimeMessageTree*,HBODY,LPCSTR,DWORD,LPWSTR*);
HRESULT WINAPI MimeOleSetBodyPropW(IMimeMessageTree*,HBODY,LPCSTR,DWORD,LPCWSTR);
HRESULT WINAPI MimeOleCreateHeaderTable(IMimeHeaderTable**);
HRESULT WINAPI MimeOleVariantFree(LPPROPVARIANT);
HRESULT WINAPI MimeOleVariantCopy(LPPROPVARIANT,LPPROPVARIANT);
HRESULT WINAPI MimeOleGetExtClassId(LPCSTR,LPCLSID);
HRESULT WINAPI MimeOleEncodeHeader(HCHARSET,LPPROPVARIANT,LPSTR*,LPRFC1522INFO);
HRESULT WINAPI MimeOleDecodeHeader(HCHARSET,LPCSTR,LPPROPVARIANT,LPRFC1522INFO);
HRESULT WINAPI MimeOleRfc1522Decode(LPCSTR,LPSTR,ULONG,LPSTR*);
HRESULT WINAPI MimeOleRfc1522Encode(LPCSTR,HCHARSET,LPSTR*);
HRESULT WINAPI MimeOleGetInternat(IMimeInternational**);
HRESULT WINAPI MimeOleFindCharset(LPCSTR,LPHCHARSET);
HRESULT WINAPI MimeOleGetCharsetInfo(HCHARSET,LPINETCSETINFO);
HRESULT WINAPI MimeOleGetCodePageInfo(HCHARSET,LPCODEPAGEINFO);
HRESULT WINAPI MimeOleGetDefaultCharset(LPHCHARSET);
HRESULT WINAPI MimeOleSetDefaultCharset(HCHARSET);
HRESULT WINAPI MimeOleGetCodePageCharset(CODEPAGEID,CHARSETTYPE,LPHCHARSET);
HRESULT WINAPI MimeOleCreateVirtualStream(IStream**);
HRESULT WINAPI MimeOleOpenFileStream(LPCSTR,DWORD,DWORD,IStream**);
HRESULT WINAPI MimeOleIsTnefStream(IStream*);
HRESULT WINAPI MimeOleGenerateFileName(LPCSTR,LPCSTR,LPCSTR,LPSTR*);
HRESULT WINAPI MimeOleGetFileExtension(LPCSTR,LPSTR,ULONG);
HRESULT WINAPI MimeOleCreateSecurity(IMimeSecurity**);
HRESULT WINAPI MimeOleInetDateToFileTime(LPCSTR,LPFILETIME);
HRESULT WINAPI MimeOleFileTimeToInetDate(LPFILETIME,LPSTR,ULONG);
HRESULT WINAPI MimeOleCreateMessageParts(IMimeMessageParts**);
HRESULT WINAPI MimeOleGetAllocator(IMimeAllocator**);
HRESULT WINAPI MimeOleParseRfc822Address(DWORD,ENCODINGTYPE,LPCSTR,LPADDRESSLIST);
HRESULT WINAPI MimeOleCreateMessage(IUnknown*,IMimeMessage**);
HRESULT WINAPI MimeOleMergePartialHeaders(IStream*,IStream*);
HRESULT WINAPI MimeOleEscapeString(CODEPAGEID,LPCSTR,LPSTR*);
HRESULT WINAPI MimeOleGetExtContentType(LPCSTR,LPSTR*);
HRESULT WINAPI MimeOleGetContentTypeExt(LPCSTR,LPSTR*);
HRESULT WINAPI MimeOleGetFileInfo(LPSTR,LPSTR*,LPSTR*,LPSTR*,LPSTR*,LPSTR*);
HRESULT WINAPI MimeOleCreateBody(IMimeBody**);
HRESULT WINAPI MimeOleCreatePropertySet(IUnknown*,IMimePropertySet**);
HRESULT WINAPI MimeOleCreateMessageTree(IUnknown*,IMimeMessageTree**);
HRESULT WINAPI MimeOleGetCertsFromThumbprints(THUMBBLOB*,X509CERTRESULT*,const HCERTSTORE*,DWORD);
HRESULT WINAPI MimeOleSplitMessage(IMimeMessage*,ULONG,IMimeMessageParts**);
HRESULT WINAPI MimeOleClearDirtyTree(IMimeMessageTree*);
HRESULT WINAPI MimeOleConvertEnrichedToHTML(CODEPAGEID,IStream*,IStream*);
HRESULT WINAPI MimeOleSMimeCapsToDlg(LPBYTE,DWORD,DWORD,PCX509CERT*,HWND,DWORD,DWORD,DWORD);
HRESULT WINAPI MimeOleSMimeCapsFromDlg(HWND,DWORD,DWORD,DWORD,LPBYTE,DWORD*);
HRESULT WINAPI MimeOleSMimeCapInit(LPBYTE,DWORD,LPVOID*);
HRESULT WINAPI MimeOleSMimeCapAddSMimeCap(LPBYTE,DWORD,LPVOID);
HRESULT WINAPI MimeOleSMimeCapAddCert(LPBYTE,DWORD,BOOL,LPVOID);
HRESULT WINAPI MimeOleSMimeCapGetEncAlg(LPVOID,LPBYTE,DWORD*,DWORD*);
HRESULT WINAPI MimeOleSMimeCapGetHashAlg(LPVOID,LPBYTE,DWORD*,DWORD*);
HRESULT WINAPI MimeOleSMimeCapRelease(LPVOID);
HRESULT WINAPI MimeOleAlgNameFromSMimeap(LPBYTE,DWORD,LPCSTR*);
HRESULT WINAPI MimeOleAlgStrengthFromSMimeCap(LPBYTE,DWORD,BOOL,DWORD*);
HRESULT WINAPI MimeOleSMimeCapsFull(LPVOID,BOOL,BOOL,LPBYTE,DWORD*);
HRESULT WINAPI MimeOleCreateHashTable(DWORD,BOOL,IHashTable**);
HRESULT WINAPI MimeOleStripHeaders(IMimeMessage*,HBODY,LPCSTR,LPCSTR,IStream**);
HRESULT WINAPI MimeEditViewSource(HWND,IMimeMessage*);
HRESULT WINAPI MimeEditIsSafeToRun(HWND,LPCSTR);
HRESULT WINAPI MimeEditVerifyTrust(HWND,LPCSTR,LPCSTR);
HRESULT WINAPI MimeEditCreateMimeDocument(IUnknown*,IMimeMessage*,DWORD,IMimeMessage**);
HRESULT WINAPI MimeEditGetBackgroundImageUrl(IUnknown*,BSTR*);
HRESULT WINAPI MimeEditDocumentFromStream(IStream*,REFIID,void**);
#ifdef __cplusplus
}
#endif
/* Begin additional prototypes for all interfaces */

ULONG           __RPC_USER BSTR_UserSize     (ULONG *, ULONG, BSTR *);
unsigned char * __RPC_USER BSTR_UserMarshal  (ULONG *, unsigned char *, BSTR *);
unsigned char * __RPC_USER BSTR_UserUnmarshal(ULONG *, unsigned char *, BSTR *);
void            __RPC_USER BSTR_UserFree     (ULONG *, BSTR *);
ULONG           __RPC_USER LPSAFEARRAY_UserSize     (ULONG *, ULONG, LPSAFEARRAY *);
unsigned char * __RPC_USER LPSAFEARRAY_UserMarshal  (ULONG *, unsigned char *, LPSAFEARRAY *);
unsigned char * __RPC_USER LPSAFEARRAY_UserUnmarshal(ULONG *, unsigned char *, LPSAFEARRAY *);
void            __RPC_USER LPSAFEARRAY_UserFree     (ULONG *, LPSAFEARRAY *);
ULONG           __RPC_USER HWND_UserSize     (ULONG *, ULONG, HWND *);
unsigned char * __RPC_USER HWND_UserMarshal  (ULONG *, unsigned char *, HWND *);
unsigned char * __RPC_USER HWND_UserUnmarshal(ULONG *, unsigned char *, HWND *);
void            __RPC_USER HWND_UserFree     (ULONG *, HWND *);

/* End additional prototypes */

#ifdef __cplusplus
}
#endif

#endif /* __WIDL_MIMEOLE_H */