/usr/include/wine/windows/mstask.h is in wine1.6-dev 1:1.6.2-0ubuntu14.
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 | /*** Autogenerated by WIDL 1.6.2 from mstask.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 __mstask_h__
#define __mstask_h__
/* Forward declarations */
#ifndef __IEnumWorkItems_FWD_DEFINED__
#define __IEnumWorkItems_FWD_DEFINED__
typedef interface IEnumWorkItems IEnumWorkItems;
#endif
#ifndef __IProvideTaskPage_FWD_DEFINED__
#define __IProvideTaskPage_FWD_DEFINED__
typedef interface IProvideTaskPage IProvideTaskPage;
#endif
#ifndef __ITaskTrigger_FWD_DEFINED__
#define __ITaskTrigger_FWD_DEFINED__
typedef interface ITaskTrigger ITaskTrigger;
#endif
#ifndef __IScheduledWorkItem_FWD_DEFINED__
#define __IScheduledWorkItem_FWD_DEFINED__
typedef interface IScheduledWorkItem IScheduledWorkItem;
#endif
#ifndef __ITask_FWD_DEFINED__
#define __ITask_FWD_DEFINED__
typedef interface ITask ITask;
#endif
#ifndef __ITaskScheduler_FWD_DEFINED__
#define __ITaskScheduler_FWD_DEFINED__
typedef interface ITaskScheduler ITaskScheduler;
#endif
#ifndef __CTaskScheduler_FWD_DEFINED__
#define __CTaskScheduler_FWD_DEFINED__
#ifdef __cplusplus
typedef class CTaskScheduler CTaskScheduler;
#else
typedef struct CTaskScheduler CTaskScheduler;
#endif /* defined __cplusplus */
#endif /* defined __CTaskScheduler_FWD_DEFINED__ */
#ifndef __CTask_FWD_DEFINED__
#define __CTask_FWD_DEFINED__
#ifdef __cplusplus
typedef class CTask CTask;
#else
typedef struct CTask CTask;
#endif /* defined __cplusplus */
#endif /* defined __CTask_FWD_DEFINED__ */
/* Headers for imported files */
#include <oaidl.h>
#include <oleidl.h>
#ifdef __cplusplus
extern "C" {
#endif
#define TASK_SUNDAY 0x1
#define TASK_MONDAY 0x2
#define TASK_TUESDAY 0x4
#define TASK_WEDNESDAY 0x8
#define TASK_THURSDAY 0x10
#define TASK_FRIDAY 0x20
#define TASK_SATURDAY 0x40
#define TASK_FIRST_WEEK 1
#define TASK_SECOND_WEEK 2
#define TASK_THIRD_WEEK 3
#define TASK_FOURTH_WEEK 4
#define TASK_LAST_WEEK 5
#define TASK_JANUARY 0x1
#define TASK_FEBRUARY 0x2
#define TASK_MARCH 0x4
#define TASK_APRIL 0x8
#define TASK_MAY 0x10
#define TASK_JUNE 0x20
#define TASK_JULY 0x40
#define TASK_AUGUST 0x80
#define TASK_SEPTEMBER 0x100
#define TASK_OCTOBER 0x200
#define TASK_NOVEMBER 0x400
#define TASK_DECEMBER 0x800
#define TASK_TRIGGER_FLAG_HAS_END_DATE 0x1
#define TASK_TRIGGER_FLAG_KILL_AT_DURATION_END 0x2
#define TASK_TRIGGER_FLAG_DISABLED 0x4
/*****************************************************************************
* IEnumWorkItems interface
*/
#ifndef __IEnumWorkItems_INTERFACE_DEFINED__
#define __IEnumWorkItems_INTERFACE_DEFINED__
DEFINE_GUID(IID_IEnumWorkItems, 0x148bd528, 0xa2ab, 0x11ce, 0xb1,0x1f, 0x00,0xaa,0x00,0x53,0x05,0x03);
#if defined(__cplusplus) && !defined(CINTERFACE)
MIDL_INTERFACE("148bd528-a2ab-11ce-b11f-00aa00530503")
IEnumWorkItems : public IUnknown
{
virtual HRESULT STDMETHODCALLTYPE Next(
ULONG celt,
LPWSTR **rgpwszNames,
ULONG *pceltFetched) = 0;
virtual HRESULT STDMETHODCALLTYPE Skip(
ULONG celt) = 0;
virtual HRESULT STDMETHODCALLTYPE Reset(
) = 0;
virtual HRESULT STDMETHODCALLTYPE Clone(
IEnumWorkItems **ppEnumWorkItems) = 0;
};
#ifdef __CRT_UUID_DECL
__CRT_UUID_DECL(IEnumWorkItems, 0x148bd528, 0xa2ab, 0x11ce, 0xb1,0x1f, 0x00,0xaa,0x00,0x53,0x05,0x03)
#endif
#else
typedef struct IEnumWorkItemsVtbl {
BEGIN_INTERFACE
/*** IUnknown methods ***/
HRESULT (STDMETHODCALLTYPE *QueryInterface)(
IEnumWorkItems* This,
REFIID riid,
void **ppvObject);
ULONG (STDMETHODCALLTYPE *AddRef)(
IEnumWorkItems* This);
ULONG (STDMETHODCALLTYPE *Release)(
IEnumWorkItems* This);
/*** IEnumWorkItems methods ***/
HRESULT (STDMETHODCALLTYPE *Next)(
IEnumWorkItems* This,
ULONG celt,
LPWSTR **rgpwszNames,
ULONG *pceltFetched);
HRESULT (STDMETHODCALLTYPE *Skip)(
IEnumWorkItems* This,
ULONG celt);
HRESULT (STDMETHODCALLTYPE *Reset)(
IEnumWorkItems* This);
HRESULT (STDMETHODCALLTYPE *Clone)(
IEnumWorkItems* This,
IEnumWorkItems **ppEnumWorkItems);
END_INTERFACE
} IEnumWorkItemsVtbl;
interface IEnumWorkItems {
CONST_VTBL IEnumWorkItemsVtbl* lpVtbl;
};
#ifdef COBJMACROS
#ifndef WIDL_C_INLINE_WRAPPERS
/*** IUnknown methods ***/
#define IEnumWorkItems_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
#define IEnumWorkItems_AddRef(This) (This)->lpVtbl->AddRef(This)
#define IEnumWorkItems_Release(This) (This)->lpVtbl->Release(This)
/*** IEnumWorkItems methods ***/
#define IEnumWorkItems_Next(This,celt,rgpwszNames,pceltFetched) (This)->lpVtbl->Next(This,celt,rgpwszNames,pceltFetched)
#define IEnumWorkItems_Skip(This,celt) (This)->lpVtbl->Skip(This,celt)
#define IEnumWorkItems_Reset(This) (This)->lpVtbl->Reset(This)
#define IEnumWorkItems_Clone(This,ppEnumWorkItems) (This)->lpVtbl->Clone(This,ppEnumWorkItems)
#else
/*** IUnknown methods ***/
static FORCEINLINE HRESULT IEnumWorkItems_QueryInterface(IEnumWorkItems* This,REFIID riid,void **ppvObject) {
return This->lpVtbl->QueryInterface(This,riid,ppvObject);
}
static FORCEINLINE ULONG IEnumWorkItems_AddRef(IEnumWorkItems* This) {
return This->lpVtbl->AddRef(This);
}
static FORCEINLINE ULONG IEnumWorkItems_Release(IEnumWorkItems* This) {
return This->lpVtbl->Release(This);
}
/*** IEnumWorkItems methods ***/
static FORCEINLINE HRESULT IEnumWorkItems_Next(IEnumWorkItems* This,ULONG celt,LPWSTR **rgpwszNames,ULONG *pceltFetched) {
return This->lpVtbl->Next(This,celt,rgpwszNames,pceltFetched);
}
static FORCEINLINE HRESULT IEnumWorkItems_Skip(IEnumWorkItems* This,ULONG celt) {
return This->lpVtbl->Skip(This,celt);
}
static FORCEINLINE HRESULT IEnumWorkItems_Reset(IEnumWorkItems* This) {
return This->lpVtbl->Reset(This);
}
static FORCEINLINE HRESULT IEnumWorkItems_Clone(IEnumWorkItems* This,IEnumWorkItems **ppEnumWorkItems) {
return This->lpVtbl->Clone(This,ppEnumWorkItems);
}
#endif
#endif
#endif
HRESULT STDMETHODCALLTYPE IEnumWorkItems_Next_Proxy(
IEnumWorkItems* This,
ULONG celt,
LPWSTR **rgpwszNames,
ULONG *pceltFetched);
void __RPC_STUB IEnumWorkItems_Next_Stub(
IRpcStubBuffer* This,
IRpcChannelBuffer* pRpcChannelBuffer,
PRPC_MESSAGE pRpcMessage,
DWORD* pdwStubPhase);
HRESULT STDMETHODCALLTYPE IEnumWorkItems_Skip_Proxy(
IEnumWorkItems* This,
ULONG celt);
void __RPC_STUB IEnumWorkItems_Skip_Stub(
IRpcStubBuffer* This,
IRpcChannelBuffer* pRpcChannelBuffer,
PRPC_MESSAGE pRpcMessage,
DWORD* pdwStubPhase);
HRESULT STDMETHODCALLTYPE IEnumWorkItems_Reset_Proxy(
IEnumWorkItems* This);
void __RPC_STUB IEnumWorkItems_Reset_Stub(
IRpcStubBuffer* This,
IRpcChannelBuffer* pRpcChannelBuffer,
PRPC_MESSAGE pRpcMessage,
DWORD* pdwStubPhase);
HRESULT STDMETHODCALLTYPE IEnumWorkItems_Clone_Proxy(
IEnumWorkItems* This,
IEnumWorkItems **ppEnumWorkItems);
void __RPC_STUB IEnumWorkItems_Clone_Stub(
IRpcStubBuffer* This,
IRpcChannelBuffer* pRpcChannelBuffer,
PRPC_MESSAGE pRpcMessage,
DWORD* pdwStubPhase);
#endif /* __IEnumWorkItems_INTERFACE_DEFINED__ */
#ifndef _HPROPSHEETPAGE_DEFINED
typedef struct _PSP *HPROPSHEETPAGE;
#define _HPROPSHEETPAGE_DEFINED
#endif
/*****************************************************************************
* IProvideTaskPage interface
*/
#ifndef __IProvideTaskPage_INTERFACE_DEFINED__
#define __IProvideTaskPage_INTERFACE_DEFINED__
typedef enum _TASKPAGE {
TASKPAGE_TASK = 0,
TASKPAGE_SCHEDULE = 1,
TASKPAGE_SETTINGS = 2
} TASKPAGE;
DEFINE_GUID(IID_IProvideTaskPage, 0x4086658a, 0xcbbb, 0x11cf, 0xb6,0x04, 0x00,0xc0,0x4f,0xd8,0xd5,0x65);
#if defined(__cplusplus) && !defined(CINTERFACE)
MIDL_INTERFACE("4086658a-cbbb-11cf-b604-00c04fd8d565")
IProvideTaskPage : public IUnknown
{
virtual HRESULT STDMETHODCALLTYPE GetPage(
TASKPAGE tpType,
BOOL fPersistChanges,
HPROPSHEETPAGE *phPage) = 0;
};
#ifdef __CRT_UUID_DECL
__CRT_UUID_DECL(IProvideTaskPage, 0x4086658a, 0xcbbb, 0x11cf, 0xb6,0x04, 0x00,0xc0,0x4f,0xd8,0xd5,0x65)
#endif
#else
typedef struct IProvideTaskPageVtbl {
BEGIN_INTERFACE
/*** IUnknown methods ***/
HRESULT (STDMETHODCALLTYPE *QueryInterface)(
IProvideTaskPage* This,
REFIID riid,
void **ppvObject);
ULONG (STDMETHODCALLTYPE *AddRef)(
IProvideTaskPage* This);
ULONG (STDMETHODCALLTYPE *Release)(
IProvideTaskPage* This);
/*** IProvideTaskPage methods ***/
HRESULT (STDMETHODCALLTYPE *GetPage)(
IProvideTaskPage* This,
TASKPAGE tpType,
BOOL fPersistChanges,
HPROPSHEETPAGE *phPage);
END_INTERFACE
} IProvideTaskPageVtbl;
interface IProvideTaskPage {
CONST_VTBL IProvideTaskPageVtbl* lpVtbl;
};
#ifdef COBJMACROS
#ifndef WIDL_C_INLINE_WRAPPERS
/*** IUnknown methods ***/
#define IProvideTaskPage_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
#define IProvideTaskPage_AddRef(This) (This)->lpVtbl->AddRef(This)
#define IProvideTaskPage_Release(This) (This)->lpVtbl->Release(This)
/*** IProvideTaskPage methods ***/
#define IProvideTaskPage_GetPage(This,tpType,fPersistChanges,phPage) (This)->lpVtbl->GetPage(This,tpType,fPersistChanges,phPage)
#else
/*** IUnknown methods ***/
static FORCEINLINE HRESULT IProvideTaskPage_QueryInterface(IProvideTaskPage* This,REFIID riid,void **ppvObject) {
return This->lpVtbl->QueryInterface(This,riid,ppvObject);
}
static FORCEINLINE ULONG IProvideTaskPage_AddRef(IProvideTaskPage* This) {
return This->lpVtbl->AddRef(This);
}
static FORCEINLINE ULONG IProvideTaskPage_Release(IProvideTaskPage* This) {
return This->lpVtbl->Release(This);
}
/*** IProvideTaskPage methods ***/
static FORCEINLINE HRESULT IProvideTaskPage_GetPage(IProvideTaskPage* This,TASKPAGE tpType,BOOL fPersistChanges,HPROPSHEETPAGE *phPage) {
return This->lpVtbl->GetPage(This,tpType,fPersistChanges,phPage);
}
#endif
#endif
#endif
HRESULT STDMETHODCALLTYPE IProvideTaskPage_GetPage_Proxy(
IProvideTaskPage* This,
TASKPAGE tpType,
BOOL fPersistChanges,
HPROPSHEETPAGE *phPage);
void __RPC_STUB IProvideTaskPage_GetPage_Stub(
IRpcStubBuffer* This,
IRpcChannelBuffer* pRpcChannelBuffer,
PRPC_MESSAGE pRpcMessage,
DWORD* pdwStubPhase);
#endif /* __IProvideTaskPage_INTERFACE_DEFINED__ */
/*****************************************************************************
* ITaskTrigger interface
*/
#ifndef __ITaskTrigger_INTERFACE_DEFINED__
#define __ITaskTrigger_INTERFACE_DEFINED__
typedef enum _TASK_TRIGGER_TYPE {
TASK_TIME_TRIGGER_ONCE = 0,
TASK_TIME_TRIGGER_DAILY = 1,
TASK_TIME_TRIGGER_WEEKLY = 2,
TASK_TIME_TRIGGER_MONTHLYDATE = 3,
TASK_TIME_TRIGGER_MONTHLYDOW = 4,
TASK_EVENT_TRIGGER_ON_IDLE = 5,
TASK_EVENT_TRIGGER_AT_SYSTEMSTART = 6,
TASK_EVENT_TRIGGER_AT_LOGON = 7
} TASK_TRIGGER_TYPE;
typedef enum _TASK_TRIGGER_TYPE *PTASK_TRIGGER_TYPE;
typedef struct _DAILY {
WORD DaysInterval;
} DAILY;
typedef struct _WEEKLY {
WORD WeeksInterval;
WORD rgfDaysOfTheWeek;
} WEEKLY;
typedef struct _MONTHLYDATE {
DWORD rgfDays;
WORD rgfMonths;
} MONTHLYDATE;
typedef struct _MONTHLYDOW {
WORD wWhichWeek;
WORD rgfDaysOfTheWeek;
WORD rgfMonths;
} MONTHLYDOW;
typedef union _TRIGGER_TYPE_UNION {
DAILY Daily;
WEEKLY Weekly;
MONTHLYDATE MonthlyDate;
MONTHLYDOW MonthlyDOW;
} TRIGGER_TYPE_UNION;
typedef struct _TASK_TRIGGER {
WORD cbTriggerSize;
WORD Reserved1;
WORD wBeginYear;
WORD wBeginMonth;
WORD wBeginDay;
WORD wEndYear;
WORD wEndMonth;
WORD wEndDay;
WORD wStartHour;
WORD wStartMinute;
DWORD MinutesDuration;
DWORD MinutesInterval;
DWORD rgFlags;
TASK_TRIGGER_TYPE TriggerType;
TRIGGER_TYPE_UNION Type;
WORD Reserved2;
WORD wRandomMinutesInterval;
} TASK_TRIGGER;
typedef struct _TASK_TRIGGER *PTASK_TRIGGER;
DEFINE_GUID(IID_ITaskTrigger, 0x148bd52b, 0xa2ab, 0x11ce, 0xb1,0x1f, 0x00,0xaa,0x00,0x53,0x05,0x03);
#if defined(__cplusplus) && !defined(CINTERFACE)
MIDL_INTERFACE("148bd52b-a2ab-11ce-b11f-00aa00530503")
ITaskTrigger : public IUnknown
{
virtual HRESULT STDMETHODCALLTYPE SetTrigger(
const PTASK_TRIGGER pTrigger) = 0;
virtual HRESULT STDMETHODCALLTYPE GetTrigger(
PTASK_TRIGGER pTrigger) = 0;
virtual HRESULT STDMETHODCALLTYPE GetTriggerString(
LPWSTR *ppwszTrigger) = 0;
};
#ifdef __CRT_UUID_DECL
__CRT_UUID_DECL(ITaskTrigger, 0x148bd52b, 0xa2ab, 0x11ce, 0xb1,0x1f, 0x00,0xaa,0x00,0x53,0x05,0x03)
#endif
#else
typedef struct ITaskTriggerVtbl {
BEGIN_INTERFACE
/*** IUnknown methods ***/
HRESULT (STDMETHODCALLTYPE *QueryInterface)(
ITaskTrigger* This,
REFIID riid,
void **ppvObject);
ULONG (STDMETHODCALLTYPE *AddRef)(
ITaskTrigger* This);
ULONG (STDMETHODCALLTYPE *Release)(
ITaskTrigger* This);
/*** ITaskTrigger methods ***/
HRESULT (STDMETHODCALLTYPE *SetTrigger)(
ITaskTrigger* This,
const PTASK_TRIGGER pTrigger);
HRESULT (STDMETHODCALLTYPE *GetTrigger)(
ITaskTrigger* This,
PTASK_TRIGGER pTrigger);
HRESULT (STDMETHODCALLTYPE *GetTriggerString)(
ITaskTrigger* This,
LPWSTR *ppwszTrigger);
END_INTERFACE
} ITaskTriggerVtbl;
interface ITaskTrigger {
CONST_VTBL ITaskTriggerVtbl* lpVtbl;
};
#ifdef COBJMACROS
#ifndef WIDL_C_INLINE_WRAPPERS
/*** IUnknown methods ***/
#define ITaskTrigger_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
#define ITaskTrigger_AddRef(This) (This)->lpVtbl->AddRef(This)
#define ITaskTrigger_Release(This) (This)->lpVtbl->Release(This)
/*** ITaskTrigger methods ***/
#define ITaskTrigger_SetTrigger(This,pTrigger) (This)->lpVtbl->SetTrigger(This,pTrigger)
#define ITaskTrigger_GetTrigger(This,pTrigger) (This)->lpVtbl->GetTrigger(This,pTrigger)
#define ITaskTrigger_GetTriggerString(This,ppwszTrigger) (This)->lpVtbl->GetTriggerString(This,ppwszTrigger)
#else
/*** IUnknown methods ***/
static FORCEINLINE HRESULT ITaskTrigger_QueryInterface(ITaskTrigger* This,REFIID riid,void **ppvObject) {
return This->lpVtbl->QueryInterface(This,riid,ppvObject);
}
static FORCEINLINE ULONG ITaskTrigger_AddRef(ITaskTrigger* This) {
return This->lpVtbl->AddRef(This);
}
static FORCEINLINE ULONG ITaskTrigger_Release(ITaskTrigger* This) {
return This->lpVtbl->Release(This);
}
/*** ITaskTrigger methods ***/
static FORCEINLINE HRESULT ITaskTrigger_SetTrigger(ITaskTrigger* This,const PTASK_TRIGGER pTrigger) {
return This->lpVtbl->SetTrigger(This,pTrigger);
}
static FORCEINLINE HRESULT ITaskTrigger_GetTrigger(ITaskTrigger* This,PTASK_TRIGGER pTrigger) {
return This->lpVtbl->GetTrigger(This,pTrigger);
}
static FORCEINLINE HRESULT ITaskTrigger_GetTriggerString(ITaskTrigger* This,LPWSTR *ppwszTrigger) {
return This->lpVtbl->GetTriggerString(This,ppwszTrigger);
}
#endif
#endif
#endif
HRESULT STDMETHODCALLTYPE ITaskTrigger_SetTrigger_Proxy(
ITaskTrigger* This,
const PTASK_TRIGGER pTrigger);
void __RPC_STUB ITaskTrigger_SetTrigger_Stub(
IRpcStubBuffer* This,
IRpcChannelBuffer* pRpcChannelBuffer,
PRPC_MESSAGE pRpcMessage,
DWORD* pdwStubPhase);
HRESULT STDMETHODCALLTYPE ITaskTrigger_GetTrigger_Proxy(
ITaskTrigger* This,
PTASK_TRIGGER pTrigger);
void __RPC_STUB ITaskTrigger_GetTrigger_Stub(
IRpcStubBuffer* This,
IRpcChannelBuffer* pRpcChannelBuffer,
PRPC_MESSAGE pRpcMessage,
DWORD* pdwStubPhase);
HRESULT STDMETHODCALLTYPE ITaskTrigger_GetTriggerString_Proxy(
ITaskTrigger* This,
LPWSTR *ppwszTrigger);
void __RPC_STUB ITaskTrigger_GetTriggerString_Stub(
IRpcStubBuffer* This,
IRpcChannelBuffer* pRpcChannelBuffer,
PRPC_MESSAGE pRpcMessage,
DWORD* pdwStubPhase);
#endif /* __ITaskTrigger_INTERFACE_DEFINED__ */
/*****************************************************************************
* IScheduledWorkItem interface
*/
#ifndef __IScheduledWorkItem_INTERFACE_DEFINED__
#define __IScheduledWorkItem_INTERFACE_DEFINED__
DEFINE_GUID(IID_IScheduledWorkItem, 0xa6b952f0, 0xa4b1, 0x11d0, 0x99,0x7d, 0x00,0xaa,0x00,0x68,0x87,0xec);
#if defined(__cplusplus) && !defined(CINTERFACE)
MIDL_INTERFACE("a6b952f0-a4b1-11d0-997d-00aa006887ec")
IScheduledWorkItem : public IUnknown
{
virtual HRESULT STDMETHODCALLTYPE CreateTrigger(
WORD *piNewTrigger,
ITaskTrigger **ppTrigger) = 0;
virtual HRESULT STDMETHODCALLTYPE DeleteTrigger(
WORD iTrigger) = 0;
virtual HRESULT STDMETHODCALLTYPE GetTriggerCount(
WORD *plCount) = 0;
virtual HRESULT STDMETHODCALLTYPE GetTrigger(
WORD iTrigger,
ITaskTrigger **ppTrigger) = 0;
virtual HRESULT STDMETHODCALLTYPE GetTriggerString(
WORD iTrigger,
LPWSTR *ppwszTrigger) = 0;
virtual HRESULT STDMETHODCALLTYPE GetRunTimes(
const LPSYSTEMTIME pstBegin,
const LPSYSTEMTIME pstEnd,
WORD *pCount,
LPSYSTEMTIME *rgstTaskTimes) = 0;
virtual HRESULT STDMETHODCALLTYPE GetNextRunTime(
SYSTEMTIME *pstNextRun) = 0;
virtual HRESULT STDMETHODCALLTYPE SetIdleWait(
WORD wIdleMinutes,
WORD wDeadlineMinutes) = 0;
virtual HRESULT STDMETHODCALLTYPE GetIdleWait(
WORD *pwIdleMinutes,
WORD *pwDeadlineMinutes) = 0;
virtual HRESULT STDMETHODCALLTYPE Run(
) = 0;
virtual HRESULT STDMETHODCALLTYPE Terminate(
) = 0;
virtual HRESULT STDMETHODCALLTYPE EditWorkItem(
HWND hParent,
DWORD dwReserved) = 0;
virtual HRESULT STDMETHODCALLTYPE GetMostRecentRunTime(
SYSTEMTIME *pstLastRun) = 0;
virtual HRESULT STDMETHODCALLTYPE GetStatus(
HRESULT *phrStatus) = 0;
virtual HRESULT STDMETHODCALLTYPE GetExitCode(
DWORD *pdwExitCode) = 0;
virtual HRESULT STDMETHODCALLTYPE SetComment(
LPCWSTR pwszComment) = 0;
virtual HRESULT STDMETHODCALLTYPE GetComment(
LPWSTR *ppwszComment) = 0;
virtual HRESULT STDMETHODCALLTYPE SetCreator(
LPCWSTR pwszCreator) = 0;
virtual HRESULT STDMETHODCALLTYPE GetCreator(
LPWSTR *ppwszCreator) = 0;
virtual HRESULT STDMETHODCALLTYPE SetWorkItemData(
WORD cBytes,
BYTE rgbData[]) = 0;
virtual HRESULT STDMETHODCALLTYPE GetWorkItemData(
WORD *pcBytes,
BYTE **ppBytes) = 0;
virtual HRESULT STDMETHODCALLTYPE SetErrorRetryCount(
WORD wRetryCount) = 0;
virtual HRESULT STDMETHODCALLTYPE GetErrorRetryCount(
WORD *pwRetryCount) = 0;
virtual HRESULT STDMETHODCALLTYPE SetErrorRetryInterval(
WORD wRetryInterval) = 0;
virtual HRESULT STDMETHODCALLTYPE GetErrorRetryInterval(
WORD *pwRetryInterval) = 0;
virtual HRESULT STDMETHODCALLTYPE SetFlags(
DWORD dwFlags) = 0;
virtual HRESULT STDMETHODCALLTYPE GetFlags(
DWORD *pdwFlags) = 0;
virtual HRESULT STDMETHODCALLTYPE SetAccountInformation(
LPCWSTR pwszAccountName,
LPCWSTR pwszPassword) = 0;
virtual HRESULT STDMETHODCALLTYPE GetAccountInformation(
LPWSTR *ppwszAccountName) = 0;
};
#ifdef __CRT_UUID_DECL
__CRT_UUID_DECL(IScheduledWorkItem, 0xa6b952f0, 0xa4b1, 0x11d0, 0x99,0x7d, 0x00,0xaa,0x00,0x68,0x87,0xec)
#endif
#else
typedef struct IScheduledWorkItemVtbl {
BEGIN_INTERFACE
/*** IUnknown methods ***/
HRESULT (STDMETHODCALLTYPE *QueryInterface)(
IScheduledWorkItem* This,
REFIID riid,
void **ppvObject);
ULONG (STDMETHODCALLTYPE *AddRef)(
IScheduledWorkItem* This);
ULONG (STDMETHODCALLTYPE *Release)(
IScheduledWorkItem* This);
/*** IScheduledWorkItem methods ***/
HRESULT (STDMETHODCALLTYPE *CreateTrigger)(
IScheduledWorkItem* This,
WORD *piNewTrigger,
ITaskTrigger **ppTrigger);
HRESULT (STDMETHODCALLTYPE *DeleteTrigger)(
IScheduledWorkItem* This,
WORD iTrigger);
HRESULT (STDMETHODCALLTYPE *GetTriggerCount)(
IScheduledWorkItem* This,
WORD *plCount);
HRESULT (STDMETHODCALLTYPE *GetTrigger)(
IScheduledWorkItem* This,
WORD iTrigger,
ITaskTrigger **ppTrigger);
HRESULT (STDMETHODCALLTYPE *GetTriggerString)(
IScheduledWorkItem* This,
WORD iTrigger,
LPWSTR *ppwszTrigger);
HRESULT (STDMETHODCALLTYPE *GetRunTimes)(
IScheduledWorkItem* This,
const LPSYSTEMTIME pstBegin,
const LPSYSTEMTIME pstEnd,
WORD *pCount,
LPSYSTEMTIME *rgstTaskTimes);
HRESULT (STDMETHODCALLTYPE *GetNextRunTime)(
IScheduledWorkItem* This,
SYSTEMTIME *pstNextRun);
HRESULT (STDMETHODCALLTYPE *SetIdleWait)(
IScheduledWorkItem* This,
WORD wIdleMinutes,
WORD wDeadlineMinutes);
HRESULT (STDMETHODCALLTYPE *GetIdleWait)(
IScheduledWorkItem* This,
WORD *pwIdleMinutes,
WORD *pwDeadlineMinutes);
HRESULT (STDMETHODCALLTYPE *Run)(
IScheduledWorkItem* This);
HRESULT (STDMETHODCALLTYPE *Terminate)(
IScheduledWorkItem* This);
HRESULT (STDMETHODCALLTYPE *EditWorkItem)(
IScheduledWorkItem* This,
HWND hParent,
DWORD dwReserved);
HRESULT (STDMETHODCALLTYPE *GetMostRecentRunTime)(
IScheduledWorkItem* This,
SYSTEMTIME *pstLastRun);
HRESULT (STDMETHODCALLTYPE *GetStatus)(
IScheduledWorkItem* This,
HRESULT *phrStatus);
HRESULT (STDMETHODCALLTYPE *GetExitCode)(
IScheduledWorkItem* This,
DWORD *pdwExitCode);
HRESULT (STDMETHODCALLTYPE *SetComment)(
IScheduledWorkItem* This,
LPCWSTR pwszComment);
HRESULT (STDMETHODCALLTYPE *GetComment)(
IScheduledWorkItem* This,
LPWSTR *ppwszComment);
HRESULT (STDMETHODCALLTYPE *SetCreator)(
IScheduledWorkItem* This,
LPCWSTR pwszCreator);
HRESULT (STDMETHODCALLTYPE *GetCreator)(
IScheduledWorkItem* This,
LPWSTR *ppwszCreator);
HRESULT (STDMETHODCALLTYPE *SetWorkItemData)(
IScheduledWorkItem* This,
WORD cBytes,
BYTE rgbData[]);
HRESULT (STDMETHODCALLTYPE *GetWorkItemData)(
IScheduledWorkItem* This,
WORD *pcBytes,
BYTE **ppBytes);
HRESULT (STDMETHODCALLTYPE *SetErrorRetryCount)(
IScheduledWorkItem* This,
WORD wRetryCount);
HRESULT (STDMETHODCALLTYPE *GetErrorRetryCount)(
IScheduledWorkItem* This,
WORD *pwRetryCount);
HRESULT (STDMETHODCALLTYPE *SetErrorRetryInterval)(
IScheduledWorkItem* This,
WORD wRetryInterval);
HRESULT (STDMETHODCALLTYPE *GetErrorRetryInterval)(
IScheduledWorkItem* This,
WORD *pwRetryInterval);
HRESULT (STDMETHODCALLTYPE *SetFlags)(
IScheduledWorkItem* This,
DWORD dwFlags);
HRESULT (STDMETHODCALLTYPE *GetFlags)(
IScheduledWorkItem* This,
DWORD *pdwFlags);
HRESULT (STDMETHODCALLTYPE *SetAccountInformation)(
IScheduledWorkItem* This,
LPCWSTR pwszAccountName,
LPCWSTR pwszPassword);
HRESULT (STDMETHODCALLTYPE *GetAccountInformation)(
IScheduledWorkItem* This,
LPWSTR *ppwszAccountName);
END_INTERFACE
} IScheduledWorkItemVtbl;
interface IScheduledWorkItem {
CONST_VTBL IScheduledWorkItemVtbl* lpVtbl;
};
#ifdef COBJMACROS
#ifndef WIDL_C_INLINE_WRAPPERS
/*** IUnknown methods ***/
#define IScheduledWorkItem_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
#define IScheduledWorkItem_AddRef(This) (This)->lpVtbl->AddRef(This)
#define IScheduledWorkItem_Release(This) (This)->lpVtbl->Release(This)
/*** IScheduledWorkItem methods ***/
#define IScheduledWorkItem_CreateTrigger(This,piNewTrigger,ppTrigger) (This)->lpVtbl->CreateTrigger(This,piNewTrigger,ppTrigger)
#define IScheduledWorkItem_DeleteTrigger(This,iTrigger) (This)->lpVtbl->DeleteTrigger(This,iTrigger)
#define IScheduledWorkItem_GetTriggerCount(This,plCount) (This)->lpVtbl->GetTriggerCount(This,plCount)
#define IScheduledWorkItem_GetTrigger(This,iTrigger,ppTrigger) (This)->lpVtbl->GetTrigger(This,iTrigger,ppTrigger)
#define IScheduledWorkItem_GetTriggerString(This,iTrigger,ppwszTrigger) (This)->lpVtbl->GetTriggerString(This,iTrigger,ppwszTrigger)
#define IScheduledWorkItem_GetRunTimes(This,pstBegin,pstEnd,pCount,rgstTaskTimes) (This)->lpVtbl->GetRunTimes(This,pstBegin,pstEnd,pCount,rgstTaskTimes)
#define IScheduledWorkItem_GetNextRunTime(This,pstNextRun) (This)->lpVtbl->GetNextRunTime(This,pstNextRun)
#define IScheduledWorkItem_SetIdleWait(This,wIdleMinutes,wDeadlineMinutes) (This)->lpVtbl->SetIdleWait(This,wIdleMinutes,wDeadlineMinutes)
#define IScheduledWorkItem_GetIdleWait(This,pwIdleMinutes,pwDeadlineMinutes) (This)->lpVtbl->GetIdleWait(This,pwIdleMinutes,pwDeadlineMinutes)
#define IScheduledWorkItem_Run(This) (This)->lpVtbl->Run(This)
#define IScheduledWorkItem_Terminate(This) (This)->lpVtbl->Terminate(This)
#define IScheduledWorkItem_EditWorkItem(This,hParent,dwReserved) (This)->lpVtbl->EditWorkItem(This,hParent,dwReserved)
#define IScheduledWorkItem_GetMostRecentRunTime(This,pstLastRun) (This)->lpVtbl->GetMostRecentRunTime(This,pstLastRun)
#define IScheduledWorkItem_GetStatus(This,phrStatus) (This)->lpVtbl->GetStatus(This,phrStatus)
#define IScheduledWorkItem_GetExitCode(This,pdwExitCode) (This)->lpVtbl->GetExitCode(This,pdwExitCode)
#define IScheduledWorkItem_SetComment(This,pwszComment) (This)->lpVtbl->SetComment(This,pwszComment)
#define IScheduledWorkItem_GetComment(This,ppwszComment) (This)->lpVtbl->GetComment(This,ppwszComment)
#define IScheduledWorkItem_SetCreator(This,pwszCreator) (This)->lpVtbl->SetCreator(This,pwszCreator)
#define IScheduledWorkItem_GetCreator(This,ppwszCreator) (This)->lpVtbl->GetCreator(This,ppwszCreator)
#define IScheduledWorkItem_SetWorkItemData(This,cBytes,rgbData) (This)->lpVtbl->SetWorkItemData(This,cBytes,rgbData)
#define IScheduledWorkItem_GetWorkItemData(This,pcBytes,ppBytes) (This)->lpVtbl->GetWorkItemData(This,pcBytes,ppBytes)
#define IScheduledWorkItem_SetErrorRetryCount(This,wRetryCount) (This)->lpVtbl->SetErrorRetryCount(This,wRetryCount)
#define IScheduledWorkItem_GetErrorRetryCount(This,pwRetryCount) (This)->lpVtbl->GetErrorRetryCount(This,pwRetryCount)
#define IScheduledWorkItem_SetErrorRetryInterval(This,wRetryInterval) (This)->lpVtbl->SetErrorRetryInterval(This,wRetryInterval)
#define IScheduledWorkItem_GetErrorRetryInterval(This,pwRetryInterval) (This)->lpVtbl->GetErrorRetryInterval(This,pwRetryInterval)
#define IScheduledWorkItem_SetFlags(This,dwFlags) (This)->lpVtbl->SetFlags(This,dwFlags)
#define IScheduledWorkItem_GetFlags(This,pdwFlags) (This)->lpVtbl->GetFlags(This,pdwFlags)
#define IScheduledWorkItem_SetAccountInformation(This,pwszAccountName,pwszPassword) (This)->lpVtbl->SetAccountInformation(This,pwszAccountName,pwszPassword)
#define IScheduledWorkItem_GetAccountInformation(This,ppwszAccountName) (This)->lpVtbl->GetAccountInformation(This,ppwszAccountName)
#else
/*** IUnknown methods ***/
static FORCEINLINE HRESULT IScheduledWorkItem_QueryInterface(IScheduledWorkItem* This,REFIID riid,void **ppvObject) {
return This->lpVtbl->QueryInterface(This,riid,ppvObject);
}
static FORCEINLINE ULONG IScheduledWorkItem_AddRef(IScheduledWorkItem* This) {
return This->lpVtbl->AddRef(This);
}
static FORCEINLINE ULONG IScheduledWorkItem_Release(IScheduledWorkItem* This) {
return This->lpVtbl->Release(This);
}
/*** IScheduledWorkItem methods ***/
static FORCEINLINE HRESULT IScheduledWorkItem_CreateTrigger(IScheduledWorkItem* This,WORD *piNewTrigger,ITaskTrigger **ppTrigger) {
return This->lpVtbl->CreateTrigger(This,piNewTrigger,ppTrigger);
}
static FORCEINLINE HRESULT IScheduledWorkItem_DeleteTrigger(IScheduledWorkItem* This,WORD iTrigger) {
return This->lpVtbl->DeleteTrigger(This,iTrigger);
}
static FORCEINLINE HRESULT IScheduledWorkItem_GetTriggerCount(IScheduledWorkItem* This,WORD *plCount) {
return This->lpVtbl->GetTriggerCount(This,plCount);
}
static FORCEINLINE HRESULT IScheduledWorkItem_GetTrigger(IScheduledWorkItem* This,WORD iTrigger,ITaskTrigger **ppTrigger) {
return This->lpVtbl->GetTrigger(This,iTrigger,ppTrigger);
}
static FORCEINLINE HRESULT IScheduledWorkItem_GetTriggerString(IScheduledWorkItem* This,WORD iTrigger,LPWSTR *ppwszTrigger) {
return This->lpVtbl->GetTriggerString(This,iTrigger,ppwszTrigger);
}
static FORCEINLINE HRESULT IScheduledWorkItem_GetRunTimes(IScheduledWorkItem* This,const LPSYSTEMTIME pstBegin,const LPSYSTEMTIME pstEnd,WORD *pCount,LPSYSTEMTIME *rgstTaskTimes) {
return This->lpVtbl->GetRunTimes(This,pstBegin,pstEnd,pCount,rgstTaskTimes);
}
static FORCEINLINE HRESULT IScheduledWorkItem_GetNextRunTime(IScheduledWorkItem* This,SYSTEMTIME *pstNextRun) {
return This->lpVtbl->GetNextRunTime(This,pstNextRun);
}
static FORCEINLINE HRESULT IScheduledWorkItem_SetIdleWait(IScheduledWorkItem* This,WORD wIdleMinutes,WORD wDeadlineMinutes) {
return This->lpVtbl->SetIdleWait(This,wIdleMinutes,wDeadlineMinutes);
}
static FORCEINLINE HRESULT IScheduledWorkItem_GetIdleWait(IScheduledWorkItem* This,WORD *pwIdleMinutes,WORD *pwDeadlineMinutes) {
return This->lpVtbl->GetIdleWait(This,pwIdleMinutes,pwDeadlineMinutes);
}
static FORCEINLINE HRESULT IScheduledWorkItem_Run(IScheduledWorkItem* This) {
return This->lpVtbl->Run(This);
}
static FORCEINLINE HRESULT IScheduledWorkItem_Terminate(IScheduledWorkItem* This) {
return This->lpVtbl->Terminate(This);
}
static FORCEINLINE HRESULT IScheduledWorkItem_EditWorkItem(IScheduledWorkItem* This,HWND hParent,DWORD dwReserved) {
return This->lpVtbl->EditWorkItem(This,hParent,dwReserved);
}
static FORCEINLINE HRESULT IScheduledWorkItem_GetMostRecentRunTime(IScheduledWorkItem* This,SYSTEMTIME *pstLastRun) {
return This->lpVtbl->GetMostRecentRunTime(This,pstLastRun);
}
static FORCEINLINE HRESULT IScheduledWorkItem_GetStatus(IScheduledWorkItem* This,HRESULT *phrStatus) {
return This->lpVtbl->GetStatus(This,phrStatus);
}
static FORCEINLINE HRESULT IScheduledWorkItem_GetExitCode(IScheduledWorkItem* This,DWORD *pdwExitCode) {
return This->lpVtbl->GetExitCode(This,pdwExitCode);
}
static FORCEINLINE HRESULT IScheduledWorkItem_SetComment(IScheduledWorkItem* This,LPCWSTR pwszComment) {
return This->lpVtbl->SetComment(This,pwszComment);
}
static FORCEINLINE HRESULT IScheduledWorkItem_GetComment(IScheduledWorkItem* This,LPWSTR *ppwszComment) {
return This->lpVtbl->GetComment(This,ppwszComment);
}
static FORCEINLINE HRESULT IScheduledWorkItem_SetCreator(IScheduledWorkItem* This,LPCWSTR pwszCreator) {
return This->lpVtbl->SetCreator(This,pwszCreator);
}
static FORCEINLINE HRESULT IScheduledWorkItem_GetCreator(IScheduledWorkItem* This,LPWSTR *ppwszCreator) {
return This->lpVtbl->GetCreator(This,ppwszCreator);
}
static FORCEINLINE HRESULT IScheduledWorkItem_SetWorkItemData(IScheduledWorkItem* This,WORD cBytes,BYTE rgbData[]) {
return This->lpVtbl->SetWorkItemData(This,cBytes,rgbData);
}
static FORCEINLINE HRESULT IScheduledWorkItem_GetWorkItemData(IScheduledWorkItem* This,WORD *pcBytes,BYTE **ppBytes) {
return This->lpVtbl->GetWorkItemData(This,pcBytes,ppBytes);
}
static FORCEINLINE HRESULT IScheduledWorkItem_SetErrorRetryCount(IScheduledWorkItem* This,WORD wRetryCount) {
return This->lpVtbl->SetErrorRetryCount(This,wRetryCount);
}
static FORCEINLINE HRESULT IScheduledWorkItem_GetErrorRetryCount(IScheduledWorkItem* This,WORD *pwRetryCount) {
return This->lpVtbl->GetErrorRetryCount(This,pwRetryCount);
}
static FORCEINLINE HRESULT IScheduledWorkItem_SetErrorRetryInterval(IScheduledWorkItem* This,WORD wRetryInterval) {
return This->lpVtbl->SetErrorRetryInterval(This,wRetryInterval);
}
static FORCEINLINE HRESULT IScheduledWorkItem_GetErrorRetryInterval(IScheduledWorkItem* This,WORD *pwRetryInterval) {
return This->lpVtbl->GetErrorRetryInterval(This,pwRetryInterval);
}
static FORCEINLINE HRESULT IScheduledWorkItem_SetFlags(IScheduledWorkItem* This,DWORD dwFlags) {
return This->lpVtbl->SetFlags(This,dwFlags);
}
static FORCEINLINE HRESULT IScheduledWorkItem_GetFlags(IScheduledWorkItem* This,DWORD *pdwFlags) {
return This->lpVtbl->GetFlags(This,pdwFlags);
}
static FORCEINLINE HRESULT IScheduledWorkItem_SetAccountInformation(IScheduledWorkItem* This,LPCWSTR pwszAccountName,LPCWSTR pwszPassword) {
return This->lpVtbl->SetAccountInformation(This,pwszAccountName,pwszPassword);
}
static FORCEINLINE HRESULT IScheduledWorkItem_GetAccountInformation(IScheduledWorkItem* This,LPWSTR *ppwszAccountName) {
return This->lpVtbl->GetAccountInformation(This,ppwszAccountName);
}
#endif
#endif
#endif
HRESULT STDMETHODCALLTYPE IScheduledWorkItem_CreateTrigger_Proxy(
IScheduledWorkItem* This,
WORD *piNewTrigger,
ITaskTrigger **ppTrigger);
void __RPC_STUB IScheduledWorkItem_CreateTrigger_Stub(
IRpcStubBuffer* This,
IRpcChannelBuffer* pRpcChannelBuffer,
PRPC_MESSAGE pRpcMessage,
DWORD* pdwStubPhase);
HRESULT STDMETHODCALLTYPE IScheduledWorkItem_DeleteTrigger_Proxy(
IScheduledWorkItem* This,
WORD iTrigger);
void __RPC_STUB IScheduledWorkItem_DeleteTrigger_Stub(
IRpcStubBuffer* This,
IRpcChannelBuffer* pRpcChannelBuffer,
PRPC_MESSAGE pRpcMessage,
DWORD* pdwStubPhase);
HRESULT STDMETHODCALLTYPE IScheduledWorkItem_GetTriggerCount_Proxy(
IScheduledWorkItem* This,
WORD *plCount);
void __RPC_STUB IScheduledWorkItem_GetTriggerCount_Stub(
IRpcStubBuffer* This,
IRpcChannelBuffer* pRpcChannelBuffer,
PRPC_MESSAGE pRpcMessage,
DWORD* pdwStubPhase);
HRESULT STDMETHODCALLTYPE IScheduledWorkItem_GetTrigger_Proxy(
IScheduledWorkItem* This,
WORD iTrigger,
ITaskTrigger **ppTrigger);
void __RPC_STUB IScheduledWorkItem_GetTrigger_Stub(
IRpcStubBuffer* This,
IRpcChannelBuffer* pRpcChannelBuffer,
PRPC_MESSAGE pRpcMessage,
DWORD* pdwStubPhase);
HRESULT STDMETHODCALLTYPE IScheduledWorkItem_GetTriggerString_Proxy(
IScheduledWorkItem* This,
WORD iTrigger,
LPWSTR *ppwszTrigger);
void __RPC_STUB IScheduledWorkItem_GetTriggerString_Stub(
IRpcStubBuffer* This,
IRpcChannelBuffer* pRpcChannelBuffer,
PRPC_MESSAGE pRpcMessage,
DWORD* pdwStubPhase);
HRESULT STDMETHODCALLTYPE IScheduledWorkItem_GetRunTimes_Proxy(
IScheduledWorkItem* This,
const LPSYSTEMTIME pstBegin,
const LPSYSTEMTIME pstEnd,
WORD *pCount,
LPSYSTEMTIME *rgstTaskTimes);
void __RPC_STUB IScheduledWorkItem_GetRunTimes_Stub(
IRpcStubBuffer* This,
IRpcChannelBuffer* pRpcChannelBuffer,
PRPC_MESSAGE pRpcMessage,
DWORD* pdwStubPhase);
HRESULT STDMETHODCALLTYPE IScheduledWorkItem_GetNextRunTime_Proxy(
IScheduledWorkItem* This,
SYSTEMTIME *pstNextRun);
void __RPC_STUB IScheduledWorkItem_GetNextRunTime_Stub(
IRpcStubBuffer* This,
IRpcChannelBuffer* pRpcChannelBuffer,
PRPC_MESSAGE pRpcMessage,
DWORD* pdwStubPhase);
HRESULT STDMETHODCALLTYPE IScheduledWorkItem_SetIdleWait_Proxy(
IScheduledWorkItem* This,
WORD wIdleMinutes,
WORD wDeadlineMinutes);
void __RPC_STUB IScheduledWorkItem_SetIdleWait_Stub(
IRpcStubBuffer* This,
IRpcChannelBuffer* pRpcChannelBuffer,
PRPC_MESSAGE pRpcMessage,
DWORD* pdwStubPhase);
HRESULT STDMETHODCALLTYPE IScheduledWorkItem_GetIdleWait_Proxy(
IScheduledWorkItem* This,
WORD *pwIdleMinutes,
WORD *pwDeadlineMinutes);
void __RPC_STUB IScheduledWorkItem_GetIdleWait_Stub(
IRpcStubBuffer* This,
IRpcChannelBuffer* pRpcChannelBuffer,
PRPC_MESSAGE pRpcMessage,
DWORD* pdwStubPhase);
HRESULT STDMETHODCALLTYPE IScheduledWorkItem_Run_Proxy(
IScheduledWorkItem* This);
void __RPC_STUB IScheduledWorkItem_Run_Stub(
IRpcStubBuffer* This,
IRpcChannelBuffer* pRpcChannelBuffer,
PRPC_MESSAGE pRpcMessage,
DWORD* pdwStubPhase);
HRESULT STDMETHODCALLTYPE IScheduledWorkItem_Terminate_Proxy(
IScheduledWorkItem* This);
void __RPC_STUB IScheduledWorkItem_Terminate_Stub(
IRpcStubBuffer* This,
IRpcChannelBuffer* pRpcChannelBuffer,
PRPC_MESSAGE pRpcMessage,
DWORD* pdwStubPhase);
HRESULT STDMETHODCALLTYPE IScheduledWorkItem_EditWorkItem_Proxy(
IScheduledWorkItem* This,
HWND hParent,
DWORD dwReserved);
void __RPC_STUB IScheduledWorkItem_EditWorkItem_Stub(
IRpcStubBuffer* This,
IRpcChannelBuffer* pRpcChannelBuffer,
PRPC_MESSAGE pRpcMessage,
DWORD* pdwStubPhase);
HRESULT STDMETHODCALLTYPE IScheduledWorkItem_GetMostRecentRunTime_Proxy(
IScheduledWorkItem* This,
SYSTEMTIME *pstLastRun);
void __RPC_STUB IScheduledWorkItem_GetMostRecentRunTime_Stub(
IRpcStubBuffer* This,
IRpcChannelBuffer* pRpcChannelBuffer,
PRPC_MESSAGE pRpcMessage,
DWORD* pdwStubPhase);
HRESULT STDMETHODCALLTYPE IScheduledWorkItem_GetStatus_Proxy(
IScheduledWorkItem* This,
HRESULT *phrStatus);
void __RPC_STUB IScheduledWorkItem_GetStatus_Stub(
IRpcStubBuffer* This,
IRpcChannelBuffer* pRpcChannelBuffer,
PRPC_MESSAGE pRpcMessage,
DWORD* pdwStubPhase);
HRESULT STDMETHODCALLTYPE IScheduledWorkItem_GetExitCode_Proxy(
IScheduledWorkItem* This,
DWORD *pdwExitCode);
void __RPC_STUB IScheduledWorkItem_GetExitCode_Stub(
IRpcStubBuffer* This,
IRpcChannelBuffer* pRpcChannelBuffer,
PRPC_MESSAGE pRpcMessage,
DWORD* pdwStubPhase);
HRESULT STDMETHODCALLTYPE IScheduledWorkItem_SetComment_Proxy(
IScheduledWorkItem* This,
LPCWSTR pwszComment);
void __RPC_STUB IScheduledWorkItem_SetComment_Stub(
IRpcStubBuffer* This,
IRpcChannelBuffer* pRpcChannelBuffer,
PRPC_MESSAGE pRpcMessage,
DWORD* pdwStubPhase);
HRESULT STDMETHODCALLTYPE IScheduledWorkItem_GetComment_Proxy(
IScheduledWorkItem* This,
LPWSTR *ppwszComment);
void __RPC_STUB IScheduledWorkItem_GetComment_Stub(
IRpcStubBuffer* This,
IRpcChannelBuffer* pRpcChannelBuffer,
PRPC_MESSAGE pRpcMessage,
DWORD* pdwStubPhase);
HRESULT STDMETHODCALLTYPE IScheduledWorkItem_SetCreator_Proxy(
IScheduledWorkItem* This,
LPCWSTR pwszCreator);
void __RPC_STUB IScheduledWorkItem_SetCreator_Stub(
IRpcStubBuffer* This,
IRpcChannelBuffer* pRpcChannelBuffer,
PRPC_MESSAGE pRpcMessage,
DWORD* pdwStubPhase);
HRESULT STDMETHODCALLTYPE IScheduledWorkItem_GetCreator_Proxy(
IScheduledWorkItem* This,
LPWSTR *ppwszCreator);
void __RPC_STUB IScheduledWorkItem_GetCreator_Stub(
IRpcStubBuffer* This,
IRpcChannelBuffer* pRpcChannelBuffer,
PRPC_MESSAGE pRpcMessage,
DWORD* pdwStubPhase);
HRESULT STDMETHODCALLTYPE IScheduledWorkItem_SetWorkItemData_Proxy(
IScheduledWorkItem* This,
WORD cBytes,
BYTE rgbData[]);
void __RPC_STUB IScheduledWorkItem_SetWorkItemData_Stub(
IRpcStubBuffer* This,
IRpcChannelBuffer* pRpcChannelBuffer,
PRPC_MESSAGE pRpcMessage,
DWORD* pdwStubPhase);
HRESULT STDMETHODCALLTYPE IScheduledWorkItem_GetWorkItemData_Proxy(
IScheduledWorkItem* This,
WORD *pcBytes,
BYTE **ppBytes);
void __RPC_STUB IScheduledWorkItem_GetWorkItemData_Stub(
IRpcStubBuffer* This,
IRpcChannelBuffer* pRpcChannelBuffer,
PRPC_MESSAGE pRpcMessage,
DWORD* pdwStubPhase);
HRESULT STDMETHODCALLTYPE IScheduledWorkItem_SetErrorRetryCount_Proxy(
IScheduledWorkItem* This,
WORD wRetryCount);
void __RPC_STUB IScheduledWorkItem_SetErrorRetryCount_Stub(
IRpcStubBuffer* This,
IRpcChannelBuffer* pRpcChannelBuffer,
PRPC_MESSAGE pRpcMessage,
DWORD* pdwStubPhase);
HRESULT STDMETHODCALLTYPE IScheduledWorkItem_GetErrorRetryCount_Proxy(
IScheduledWorkItem* This,
WORD *pwRetryCount);
void __RPC_STUB IScheduledWorkItem_GetErrorRetryCount_Stub(
IRpcStubBuffer* This,
IRpcChannelBuffer* pRpcChannelBuffer,
PRPC_MESSAGE pRpcMessage,
DWORD* pdwStubPhase);
HRESULT STDMETHODCALLTYPE IScheduledWorkItem_SetErrorRetryInterval_Proxy(
IScheduledWorkItem* This,
WORD wRetryInterval);
void __RPC_STUB IScheduledWorkItem_SetErrorRetryInterval_Stub(
IRpcStubBuffer* This,
IRpcChannelBuffer* pRpcChannelBuffer,
PRPC_MESSAGE pRpcMessage,
DWORD* pdwStubPhase);
HRESULT STDMETHODCALLTYPE IScheduledWorkItem_GetErrorRetryInterval_Proxy(
IScheduledWorkItem* This,
WORD *pwRetryInterval);
void __RPC_STUB IScheduledWorkItem_GetErrorRetryInterval_Stub(
IRpcStubBuffer* This,
IRpcChannelBuffer* pRpcChannelBuffer,
PRPC_MESSAGE pRpcMessage,
DWORD* pdwStubPhase);
HRESULT STDMETHODCALLTYPE IScheduledWorkItem_SetFlags_Proxy(
IScheduledWorkItem* This,
DWORD dwFlags);
void __RPC_STUB IScheduledWorkItem_SetFlags_Stub(
IRpcStubBuffer* This,
IRpcChannelBuffer* pRpcChannelBuffer,
PRPC_MESSAGE pRpcMessage,
DWORD* pdwStubPhase);
HRESULT STDMETHODCALLTYPE IScheduledWorkItem_GetFlags_Proxy(
IScheduledWorkItem* This,
DWORD *pdwFlags);
void __RPC_STUB IScheduledWorkItem_GetFlags_Stub(
IRpcStubBuffer* This,
IRpcChannelBuffer* pRpcChannelBuffer,
PRPC_MESSAGE pRpcMessage,
DWORD* pdwStubPhase);
HRESULT STDMETHODCALLTYPE IScheduledWorkItem_SetAccountInformation_Proxy(
IScheduledWorkItem* This,
LPCWSTR pwszAccountName,
LPCWSTR pwszPassword);
void __RPC_STUB IScheduledWorkItem_SetAccountInformation_Stub(
IRpcStubBuffer* This,
IRpcChannelBuffer* pRpcChannelBuffer,
PRPC_MESSAGE pRpcMessage,
DWORD* pdwStubPhase);
HRESULT STDMETHODCALLTYPE IScheduledWorkItem_GetAccountInformation_Proxy(
IScheduledWorkItem* This,
LPWSTR *ppwszAccountName);
void __RPC_STUB IScheduledWorkItem_GetAccountInformation_Stub(
IRpcStubBuffer* This,
IRpcChannelBuffer* pRpcChannelBuffer,
PRPC_MESSAGE pRpcMessage,
DWORD* pdwStubPhase);
#endif /* __IScheduledWorkItem_INTERFACE_DEFINED__ */
/*****************************************************************************
* ITask interface
*/
#ifndef __ITask_INTERFACE_DEFINED__
#define __ITask_INTERFACE_DEFINED__
DEFINE_GUID(IID_ITask, 0x148bd524, 0xa2ab, 0x11ce, 0xb1,0x1f, 0x00,0xaa,0x00,0x53,0x05,0x03);
#if defined(__cplusplus) && !defined(CINTERFACE)
MIDL_INTERFACE("148bd524-a2ab-11ce-b11f-00aa00530503")
ITask : public IScheduledWorkItem
{
virtual HRESULT STDMETHODCALLTYPE SetApplicationName(
LPCWSTR pwszApplicationName) = 0;
virtual HRESULT STDMETHODCALLTYPE GetApplicationName(
LPWSTR *ppwszApplicationName) = 0;
virtual HRESULT STDMETHODCALLTYPE SetParameters(
LPCWSTR pwszParameters) = 0;
virtual HRESULT STDMETHODCALLTYPE GetParameters(
LPWSTR *ppwszParameters) = 0;
virtual HRESULT STDMETHODCALLTYPE SetWorkingDirectory(
LPCWSTR pwszWorkingDirectory) = 0;
virtual HRESULT STDMETHODCALLTYPE GetWorkingDirectory(
LPWSTR *ppwszWorkingDirectory) = 0;
virtual HRESULT STDMETHODCALLTYPE SetPriority(
DWORD dwPriority) = 0;
virtual HRESULT STDMETHODCALLTYPE GetPriority(
DWORD *pdwPriority) = 0;
virtual HRESULT STDMETHODCALLTYPE SetTaskFlags(
DWORD dwFlags) = 0;
virtual HRESULT STDMETHODCALLTYPE GetTaskFlags(
DWORD *pdwFlags) = 0;
virtual HRESULT STDMETHODCALLTYPE SetMaxRunTime(
DWORD dwMaxRunTime) = 0;
virtual HRESULT STDMETHODCALLTYPE GetMaxRunTime(
DWORD *pdwMaxRunTime) = 0;
};
#ifdef __CRT_UUID_DECL
__CRT_UUID_DECL(ITask, 0x148bd524, 0xa2ab, 0x11ce, 0xb1,0x1f, 0x00,0xaa,0x00,0x53,0x05,0x03)
#endif
#else
typedef struct ITaskVtbl {
BEGIN_INTERFACE
/*** IUnknown methods ***/
HRESULT (STDMETHODCALLTYPE *QueryInterface)(
ITask* This,
REFIID riid,
void **ppvObject);
ULONG (STDMETHODCALLTYPE *AddRef)(
ITask* This);
ULONG (STDMETHODCALLTYPE *Release)(
ITask* This);
/*** IScheduledWorkItem methods ***/
HRESULT (STDMETHODCALLTYPE *CreateTrigger)(
ITask* This,
WORD *piNewTrigger,
ITaskTrigger **ppTrigger);
HRESULT (STDMETHODCALLTYPE *DeleteTrigger)(
ITask* This,
WORD iTrigger);
HRESULT (STDMETHODCALLTYPE *GetTriggerCount)(
ITask* This,
WORD *plCount);
HRESULT (STDMETHODCALLTYPE *GetTrigger)(
ITask* This,
WORD iTrigger,
ITaskTrigger **ppTrigger);
HRESULT (STDMETHODCALLTYPE *GetTriggerString)(
ITask* This,
WORD iTrigger,
LPWSTR *ppwszTrigger);
HRESULT (STDMETHODCALLTYPE *GetRunTimes)(
ITask* This,
const LPSYSTEMTIME pstBegin,
const LPSYSTEMTIME pstEnd,
WORD *pCount,
LPSYSTEMTIME *rgstTaskTimes);
HRESULT (STDMETHODCALLTYPE *GetNextRunTime)(
ITask* This,
SYSTEMTIME *pstNextRun);
HRESULT (STDMETHODCALLTYPE *SetIdleWait)(
ITask* This,
WORD wIdleMinutes,
WORD wDeadlineMinutes);
HRESULT (STDMETHODCALLTYPE *GetIdleWait)(
ITask* This,
WORD *pwIdleMinutes,
WORD *pwDeadlineMinutes);
HRESULT (STDMETHODCALLTYPE *Run)(
ITask* This);
HRESULT (STDMETHODCALLTYPE *Terminate)(
ITask* This);
HRESULT (STDMETHODCALLTYPE *EditWorkItem)(
ITask* This,
HWND hParent,
DWORD dwReserved);
HRESULT (STDMETHODCALLTYPE *GetMostRecentRunTime)(
ITask* This,
SYSTEMTIME *pstLastRun);
HRESULT (STDMETHODCALLTYPE *GetStatus)(
ITask* This,
HRESULT *phrStatus);
HRESULT (STDMETHODCALLTYPE *GetExitCode)(
ITask* This,
DWORD *pdwExitCode);
HRESULT (STDMETHODCALLTYPE *SetComment)(
ITask* This,
LPCWSTR pwszComment);
HRESULT (STDMETHODCALLTYPE *GetComment)(
ITask* This,
LPWSTR *ppwszComment);
HRESULT (STDMETHODCALLTYPE *SetCreator)(
ITask* This,
LPCWSTR pwszCreator);
HRESULT (STDMETHODCALLTYPE *GetCreator)(
ITask* This,
LPWSTR *ppwszCreator);
HRESULT (STDMETHODCALLTYPE *SetWorkItemData)(
ITask* This,
WORD cBytes,
BYTE rgbData[]);
HRESULT (STDMETHODCALLTYPE *GetWorkItemData)(
ITask* This,
WORD *pcBytes,
BYTE **ppBytes);
HRESULT (STDMETHODCALLTYPE *SetErrorRetryCount)(
ITask* This,
WORD wRetryCount);
HRESULT (STDMETHODCALLTYPE *GetErrorRetryCount)(
ITask* This,
WORD *pwRetryCount);
HRESULT (STDMETHODCALLTYPE *SetErrorRetryInterval)(
ITask* This,
WORD wRetryInterval);
HRESULT (STDMETHODCALLTYPE *GetErrorRetryInterval)(
ITask* This,
WORD *pwRetryInterval);
HRESULT (STDMETHODCALLTYPE *SetFlags)(
ITask* This,
DWORD dwFlags);
HRESULT (STDMETHODCALLTYPE *GetFlags)(
ITask* This,
DWORD *pdwFlags);
HRESULT (STDMETHODCALLTYPE *SetAccountInformation)(
ITask* This,
LPCWSTR pwszAccountName,
LPCWSTR pwszPassword);
HRESULT (STDMETHODCALLTYPE *GetAccountInformation)(
ITask* This,
LPWSTR *ppwszAccountName);
/*** ITask methods ***/
HRESULT (STDMETHODCALLTYPE *SetApplicationName)(
ITask* This,
LPCWSTR pwszApplicationName);
HRESULT (STDMETHODCALLTYPE *GetApplicationName)(
ITask* This,
LPWSTR *ppwszApplicationName);
HRESULT (STDMETHODCALLTYPE *SetParameters)(
ITask* This,
LPCWSTR pwszParameters);
HRESULT (STDMETHODCALLTYPE *GetParameters)(
ITask* This,
LPWSTR *ppwszParameters);
HRESULT (STDMETHODCALLTYPE *SetWorkingDirectory)(
ITask* This,
LPCWSTR pwszWorkingDirectory);
HRESULT (STDMETHODCALLTYPE *GetWorkingDirectory)(
ITask* This,
LPWSTR *ppwszWorkingDirectory);
HRESULT (STDMETHODCALLTYPE *SetPriority)(
ITask* This,
DWORD dwPriority);
HRESULT (STDMETHODCALLTYPE *GetPriority)(
ITask* This,
DWORD *pdwPriority);
HRESULT (STDMETHODCALLTYPE *SetTaskFlags)(
ITask* This,
DWORD dwFlags);
HRESULT (STDMETHODCALLTYPE *GetTaskFlags)(
ITask* This,
DWORD *pdwFlags);
HRESULT (STDMETHODCALLTYPE *SetMaxRunTime)(
ITask* This,
DWORD dwMaxRunTime);
HRESULT (STDMETHODCALLTYPE *GetMaxRunTime)(
ITask* This,
DWORD *pdwMaxRunTime);
END_INTERFACE
} ITaskVtbl;
interface ITask {
CONST_VTBL ITaskVtbl* lpVtbl;
};
#ifdef COBJMACROS
#ifndef WIDL_C_INLINE_WRAPPERS
/*** IUnknown methods ***/
#define ITask_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
#define ITask_AddRef(This) (This)->lpVtbl->AddRef(This)
#define ITask_Release(This) (This)->lpVtbl->Release(This)
/*** IScheduledWorkItem methods ***/
#define ITask_CreateTrigger(This,piNewTrigger,ppTrigger) (This)->lpVtbl->CreateTrigger(This,piNewTrigger,ppTrigger)
#define ITask_DeleteTrigger(This,iTrigger) (This)->lpVtbl->DeleteTrigger(This,iTrigger)
#define ITask_GetTriggerCount(This,plCount) (This)->lpVtbl->GetTriggerCount(This,plCount)
#define ITask_GetTrigger(This,iTrigger,ppTrigger) (This)->lpVtbl->GetTrigger(This,iTrigger,ppTrigger)
#define ITask_GetTriggerString(This,iTrigger,ppwszTrigger) (This)->lpVtbl->GetTriggerString(This,iTrigger,ppwszTrigger)
#define ITask_GetRunTimes(This,pstBegin,pstEnd,pCount,rgstTaskTimes) (This)->lpVtbl->GetRunTimes(This,pstBegin,pstEnd,pCount,rgstTaskTimes)
#define ITask_GetNextRunTime(This,pstNextRun) (This)->lpVtbl->GetNextRunTime(This,pstNextRun)
#define ITask_SetIdleWait(This,wIdleMinutes,wDeadlineMinutes) (This)->lpVtbl->SetIdleWait(This,wIdleMinutes,wDeadlineMinutes)
#define ITask_GetIdleWait(This,pwIdleMinutes,pwDeadlineMinutes) (This)->lpVtbl->GetIdleWait(This,pwIdleMinutes,pwDeadlineMinutes)
#define ITask_Run(This) (This)->lpVtbl->Run(This)
#define ITask_Terminate(This) (This)->lpVtbl->Terminate(This)
#define ITask_EditWorkItem(This,hParent,dwReserved) (This)->lpVtbl->EditWorkItem(This,hParent,dwReserved)
#define ITask_GetMostRecentRunTime(This,pstLastRun) (This)->lpVtbl->GetMostRecentRunTime(This,pstLastRun)
#define ITask_GetStatus(This,phrStatus) (This)->lpVtbl->GetStatus(This,phrStatus)
#define ITask_GetExitCode(This,pdwExitCode) (This)->lpVtbl->GetExitCode(This,pdwExitCode)
#define ITask_SetComment(This,pwszComment) (This)->lpVtbl->SetComment(This,pwszComment)
#define ITask_GetComment(This,ppwszComment) (This)->lpVtbl->GetComment(This,ppwszComment)
#define ITask_SetCreator(This,pwszCreator) (This)->lpVtbl->SetCreator(This,pwszCreator)
#define ITask_GetCreator(This,ppwszCreator) (This)->lpVtbl->GetCreator(This,ppwszCreator)
#define ITask_SetWorkItemData(This,cBytes,rgbData) (This)->lpVtbl->SetWorkItemData(This,cBytes,rgbData)
#define ITask_GetWorkItemData(This,pcBytes,ppBytes) (This)->lpVtbl->GetWorkItemData(This,pcBytes,ppBytes)
#define ITask_SetErrorRetryCount(This,wRetryCount) (This)->lpVtbl->SetErrorRetryCount(This,wRetryCount)
#define ITask_GetErrorRetryCount(This,pwRetryCount) (This)->lpVtbl->GetErrorRetryCount(This,pwRetryCount)
#define ITask_SetErrorRetryInterval(This,wRetryInterval) (This)->lpVtbl->SetErrorRetryInterval(This,wRetryInterval)
#define ITask_GetErrorRetryInterval(This,pwRetryInterval) (This)->lpVtbl->GetErrorRetryInterval(This,pwRetryInterval)
#define ITask_SetFlags(This,dwFlags) (This)->lpVtbl->SetFlags(This,dwFlags)
#define ITask_GetFlags(This,pdwFlags) (This)->lpVtbl->GetFlags(This,pdwFlags)
#define ITask_SetAccountInformation(This,pwszAccountName,pwszPassword) (This)->lpVtbl->SetAccountInformation(This,pwszAccountName,pwszPassword)
#define ITask_GetAccountInformation(This,ppwszAccountName) (This)->lpVtbl->GetAccountInformation(This,ppwszAccountName)
/*** ITask methods ***/
#define ITask_SetApplicationName(This,pwszApplicationName) (This)->lpVtbl->SetApplicationName(This,pwszApplicationName)
#define ITask_GetApplicationName(This,ppwszApplicationName) (This)->lpVtbl->GetApplicationName(This,ppwszApplicationName)
#define ITask_SetParameters(This,pwszParameters) (This)->lpVtbl->SetParameters(This,pwszParameters)
#define ITask_GetParameters(This,ppwszParameters) (This)->lpVtbl->GetParameters(This,ppwszParameters)
#define ITask_SetWorkingDirectory(This,pwszWorkingDirectory) (This)->lpVtbl->SetWorkingDirectory(This,pwszWorkingDirectory)
#define ITask_GetWorkingDirectory(This,ppwszWorkingDirectory) (This)->lpVtbl->GetWorkingDirectory(This,ppwszWorkingDirectory)
#define ITask_SetPriority(This,dwPriority) (This)->lpVtbl->SetPriority(This,dwPriority)
#define ITask_GetPriority(This,pdwPriority) (This)->lpVtbl->GetPriority(This,pdwPriority)
#define ITask_SetTaskFlags(This,dwFlags) (This)->lpVtbl->SetTaskFlags(This,dwFlags)
#define ITask_GetTaskFlags(This,pdwFlags) (This)->lpVtbl->GetTaskFlags(This,pdwFlags)
#define ITask_SetMaxRunTime(This,dwMaxRunTime) (This)->lpVtbl->SetMaxRunTime(This,dwMaxRunTime)
#define ITask_GetMaxRunTime(This,pdwMaxRunTime) (This)->lpVtbl->GetMaxRunTime(This,pdwMaxRunTime)
#else
/*** IUnknown methods ***/
static FORCEINLINE HRESULT ITask_QueryInterface(ITask* This,REFIID riid,void **ppvObject) {
return This->lpVtbl->QueryInterface(This,riid,ppvObject);
}
static FORCEINLINE ULONG ITask_AddRef(ITask* This) {
return This->lpVtbl->AddRef(This);
}
static FORCEINLINE ULONG ITask_Release(ITask* This) {
return This->lpVtbl->Release(This);
}
/*** IScheduledWorkItem methods ***/
static FORCEINLINE HRESULT ITask_CreateTrigger(ITask* This,WORD *piNewTrigger,ITaskTrigger **ppTrigger) {
return This->lpVtbl->CreateTrigger(This,piNewTrigger,ppTrigger);
}
static FORCEINLINE HRESULT ITask_DeleteTrigger(ITask* This,WORD iTrigger) {
return This->lpVtbl->DeleteTrigger(This,iTrigger);
}
static FORCEINLINE HRESULT ITask_GetTriggerCount(ITask* This,WORD *plCount) {
return This->lpVtbl->GetTriggerCount(This,plCount);
}
static FORCEINLINE HRESULT ITask_GetTrigger(ITask* This,WORD iTrigger,ITaskTrigger **ppTrigger) {
return This->lpVtbl->GetTrigger(This,iTrigger,ppTrigger);
}
static FORCEINLINE HRESULT ITask_GetTriggerString(ITask* This,WORD iTrigger,LPWSTR *ppwszTrigger) {
return This->lpVtbl->GetTriggerString(This,iTrigger,ppwszTrigger);
}
static FORCEINLINE HRESULT ITask_GetRunTimes(ITask* This,const LPSYSTEMTIME pstBegin,const LPSYSTEMTIME pstEnd,WORD *pCount,LPSYSTEMTIME *rgstTaskTimes) {
return This->lpVtbl->GetRunTimes(This,pstBegin,pstEnd,pCount,rgstTaskTimes);
}
static FORCEINLINE HRESULT ITask_GetNextRunTime(ITask* This,SYSTEMTIME *pstNextRun) {
return This->lpVtbl->GetNextRunTime(This,pstNextRun);
}
static FORCEINLINE HRESULT ITask_SetIdleWait(ITask* This,WORD wIdleMinutes,WORD wDeadlineMinutes) {
return This->lpVtbl->SetIdleWait(This,wIdleMinutes,wDeadlineMinutes);
}
static FORCEINLINE HRESULT ITask_GetIdleWait(ITask* This,WORD *pwIdleMinutes,WORD *pwDeadlineMinutes) {
return This->lpVtbl->GetIdleWait(This,pwIdleMinutes,pwDeadlineMinutes);
}
static FORCEINLINE HRESULT ITask_Run(ITask* This) {
return This->lpVtbl->Run(This);
}
static FORCEINLINE HRESULT ITask_Terminate(ITask* This) {
return This->lpVtbl->Terminate(This);
}
static FORCEINLINE HRESULT ITask_EditWorkItem(ITask* This,HWND hParent,DWORD dwReserved) {
return This->lpVtbl->EditWorkItem(This,hParent,dwReserved);
}
static FORCEINLINE HRESULT ITask_GetMostRecentRunTime(ITask* This,SYSTEMTIME *pstLastRun) {
return This->lpVtbl->GetMostRecentRunTime(This,pstLastRun);
}
static FORCEINLINE HRESULT ITask_GetStatus(ITask* This,HRESULT *phrStatus) {
return This->lpVtbl->GetStatus(This,phrStatus);
}
static FORCEINLINE HRESULT ITask_GetExitCode(ITask* This,DWORD *pdwExitCode) {
return This->lpVtbl->GetExitCode(This,pdwExitCode);
}
static FORCEINLINE HRESULT ITask_SetComment(ITask* This,LPCWSTR pwszComment) {
return This->lpVtbl->SetComment(This,pwszComment);
}
static FORCEINLINE HRESULT ITask_GetComment(ITask* This,LPWSTR *ppwszComment) {
return This->lpVtbl->GetComment(This,ppwszComment);
}
static FORCEINLINE HRESULT ITask_SetCreator(ITask* This,LPCWSTR pwszCreator) {
return This->lpVtbl->SetCreator(This,pwszCreator);
}
static FORCEINLINE HRESULT ITask_GetCreator(ITask* This,LPWSTR *ppwszCreator) {
return This->lpVtbl->GetCreator(This,ppwszCreator);
}
static FORCEINLINE HRESULT ITask_SetWorkItemData(ITask* This,WORD cBytes,BYTE rgbData[]) {
return This->lpVtbl->SetWorkItemData(This,cBytes,rgbData);
}
static FORCEINLINE HRESULT ITask_GetWorkItemData(ITask* This,WORD *pcBytes,BYTE **ppBytes) {
return This->lpVtbl->GetWorkItemData(This,pcBytes,ppBytes);
}
static FORCEINLINE HRESULT ITask_SetErrorRetryCount(ITask* This,WORD wRetryCount) {
return This->lpVtbl->SetErrorRetryCount(This,wRetryCount);
}
static FORCEINLINE HRESULT ITask_GetErrorRetryCount(ITask* This,WORD *pwRetryCount) {
return This->lpVtbl->GetErrorRetryCount(This,pwRetryCount);
}
static FORCEINLINE HRESULT ITask_SetErrorRetryInterval(ITask* This,WORD wRetryInterval) {
return This->lpVtbl->SetErrorRetryInterval(This,wRetryInterval);
}
static FORCEINLINE HRESULT ITask_GetErrorRetryInterval(ITask* This,WORD *pwRetryInterval) {
return This->lpVtbl->GetErrorRetryInterval(This,pwRetryInterval);
}
static FORCEINLINE HRESULT ITask_SetFlags(ITask* This,DWORD dwFlags) {
return This->lpVtbl->SetFlags(This,dwFlags);
}
static FORCEINLINE HRESULT ITask_GetFlags(ITask* This,DWORD *pdwFlags) {
return This->lpVtbl->GetFlags(This,pdwFlags);
}
static FORCEINLINE HRESULT ITask_SetAccountInformation(ITask* This,LPCWSTR pwszAccountName,LPCWSTR pwszPassword) {
return This->lpVtbl->SetAccountInformation(This,pwszAccountName,pwszPassword);
}
static FORCEINLINE HRESULT ITask_GetAccountInformation(ITask* This,LPWSTR *ppwszAccountName) {
return This->lpVtbl->GetAccountInformation(This,ppwszAccountName);
}
/*** ITask methods ***/
static FORCEINLINE HRESULT ITask_SetApplicationName(ITask* This,LPCWSTR pwszApplicationName) {
return This->lpVtbl->SetApplicationName(This,pwszApplicationName);
}
static FORCEINLINE HRESULT ITask_GetApplicationName(ITask* This,LPWSTR *ppwszApplicationName) {
return This->lpVtbl->GetApplicationName(This,ppwszApplicationName);
}
static FORCEINLINE HRESULT ITask_SetParameters(ITask* This,LPCWSTR pwszParameters) {
return This->lpVtbl->SetParameters(This,pwszParameters);
}
static FORCEINLINE HRESULT ITask_GetParameters(ITask* This,LPWSTR *ppwszParameters) {
return This->lpVtbl->GetParameters(This,ppwszParameters);
}
static FORCEINLINE HRESULT ITask_SetWorkingDirectory(ITask* This,LPCWSTR pwszWorkingDirectory) {
return This->lpVtbl->SetWorkingDirectory(This,pwszWorkingDirectory);
}
static FORCEINLINE HRESULT ITask_GetWorkingDirectory(ITask* This,LPWSTR *ppwszWorkingDirectory) {
return This->lpVtbl->GetWorkingDirectory(This,ppwszWorkingDirectory);
}
static FORCEINLINE HRESULT ITask_SetPriority(ITask* This,DWORD dwPriority) {
return This->lpVtbl->SetPriority(This,dwPriority);
}
static FORCEINLINE HRESULT ITask_GetPriority(ITask* This,DWORD *pdwPriority) {
return This->lpVtbl->GetPriority(This,pdwPriority);
}
static FORCEINLINE HRESULT ITask_SetTaskFlags(ITask* This,DWORD dwFlags) {
return This->lpVtbl->SetTaskFlags(This,dwFlags);
}
static FORCEINLINE HRESULT ITask_GetTaskFlags(ITask* This,DWORD *pdwFlags) {
return This->lpVtbl->GetTaskFlags(This,pdwFlags);
}
static FORCEINLINE HRESULT ITask_SetMaxRunTime(ITask* This,DWORD dwMaxRunTime) {
return This->lpVtbl->SetMaxRunTime(This,dwMaxRunTime);
}
static FORCEINLINE HRESULT ITask_GetMaxRunTime(ITask* This,DWORD *pdwMaxRunTime) {
return This->lpVtbl->GetMaxRunTime(This,pdwMaxRunTime);
}
#endif
#endif
#endif
HRESULT STDMETHODCALLTYPE ITask_SetApplicationName_Proxy(
ITask* This,
LPCWSTR pwszApplicationName);
void __RPC_STUB ITask_SetApplicationName_Stub(
IRpcStubBuffer* This,
IRpcChannelBuffer* pRpcChannelBuffer,
PRPC_MESSAGE pRpcMessage,
DWORD* pdwStubPhase);
HRESULT STDMETHODCALLTYPE ITask_GetApplicationName_Proxy(
ITask* This,
LPWSTR *ppwszApplicationName);
void __RPC_STUB ITask_GetApplicationName_Stub(
IRpcStubBuffer* This,
IRpcChannelBuffer* pRpcChannelBuffer,
PRPC_MESSAGE pRpcMessage,
DWORD* pdwStubPhase);
HRESULT STDMETHODCALLTYPE ITask_SetParameters_Proxy(
ITask* This,
LPCWSTR pwszParameters);
void __RPC_STUB ITask_SetParameters_Stub(
IRpcStubBuffer* This,
IRpcChannelBuffer* pRpcChannelBuffer,
PRPC_MESSAGE pRpcMessage,
DWORD* pdwStubPhase);
HRESULT STDMETHODCALLTYPE ITask_GetParameters_Proxy(
ITask* This,
LPWSTR *ppwszParameters);
void __RPC_STUB ITask_GetParameters_Stub(
IRpcStubBuffer* This,
IRpcChannelBuffer* pRpcChannelBuffer,
PRPC_MESSAGE pRpcMessage,
DWORD* pdwStubPhase);
HRESULT STDMETHODCALLTYPE ITask_SetWorkingDirectory_Proxy(
ITask* This,
LPCWSTR pwszWorkingDirectory);
void __RPC_STUB ITask_SetWorkingDirectory_Stub(
IRpcStubBuffer* This,
IRpcChannelBuffer* pRpcChannelBuffer,
PRPC_MESSAGE pRpcMessage,
DWORD* pdwStubPhase);
HRESULT STDMETHODCALLTYPE ITask_GetWorkingDirectory_Proxy(
ITask* This,
LPWSTR *ppwszWorkingDirectory);
void __RPC_STUB ITask_GetWorkingDirectory_Stub(
IRpcStubBuffer* This,
IRpcChannelBuffer* pRpcChannelBuffer,
PRPC_MESSAGE pRpcMessage,
DWORD* pdwStubPhase);
HRESULT STDMETHODCALLTYPE ITask_SetPriority_Proxy(
ITask* This,
DWORD dwPriority);
void __RPC_STUB ITask_SetPriority_Stub(
IRpcStubBuffer* This,
IRpcChannelBuffer* pRpcChannelBuffer,
PRPC_MESSAGE pRpcMessage,
DWORD* pdwStubPhase);
HRESULT STDMETHODCALLTYPE ITask_GetPriority_Proxy(
ITask* This,
DWORD *pdwPriority);
void __RPC_STUB ITask_GetPriority_Stub(
IRpcStubBuffer* This,
IRpcChannelBuffer* pRpcChannelBuffer,
PRPC_MESSAGE pRpcMessage,
DWORD* pdwStubPhase);
HRESULT STDMETHODCALLTYPE ITask_SetTaskFlags_Proxy(
ITask* This,
DWORD dwFlags);
void __RPC_STUB ITask_SetTaskFlags_Stub(
IRpcStubBuffer* This,
IRpcChannelBuffer* pRpcChannelBuffer,
PRPC_MESSAGE pRpcMessage,
DWORD* pdwStubPhase);
HRESULT STDMETHODCALLTYPE ITask_GetTaskFlags_Proxy(
ITask* This,
DWORD *pdwFlags);
void __RPC_STUB ITask_GetTaskFlags_Stub(
IRpcStubBuffer* This,
IRpcChannelBuffer* pRpcChannelBuffer,
PRPC_MESSAGE pRpcMessage,
DWORD* pdwStubPhase);
HRESULT STDMETHODCALLTYPE ITask_SetMaxRunTime_Proxy(
ITask* This,
DWORD dwMaxRunTime);
void __RPC_STUB ITask_SetMaxRunTime_Stub(
IRpcStubBuffer* This,
IRpcChannelBuffer* pRpcChannelBuffer,
PRPC_MESSAGE pRpcMessage,
DWORD* pdwStubPhase);
HRESULT STDMETHODCALLTYPE ITask_GetMaxRunTime_Proxy(
ITask* This,
DWORD *pdwMaxRunTime);
void __RPC_STUB ITask_GetMaxRunTime_Stub(
IRpcStubBuffer* This,
IRpcChannelBuffer* pRpcChannelBuffer,
PRPC_MESSAGE pRpcMessage,
DWORD* pdwStubPhase);
#endif /* __ITask_INTERFACE_DEFINED__ */
/*****************************************************************************
* ITaskScheduler interface
*/
#ifndef __ITaskScheduler_INTERFACE_DEFINED__
#define __ITaskScheduler_INTERFACE_DEFINED__
DEFINE_GUID(IID_ITaskScheduler, 0x148bd527, 0xa2ab, 0x11ce, 0xb1,0x1f, 0x00,0xaa,0x00,0x53,0x05,0x03);
#if defined(__cplusplus) && !defined(CINTERFACE)
MIDL_INTERFACE("148bd527-a2ab-11ce-b11f-00aa00530503")
ITaskScheduler : public IUnknown
{
virtual HRESULT STDMETHODCALLTYPE SetTargetComputer(
LPCWSTR pwszComputer) = 0;
virtual HRESULT STDMETHODCALLTYPE GetTargetComputer(
LPWSTR *ppwszComputer) = 0;
virtual HRESULT STDMETHODCALLTYPE Enum(
IEnumWorkItems **ppEnumTasks) = 0;
virtual HRESULT STDMETHODCALLTYPE Activate(
LPCWSTR pwszName,
REFIID riid,
IUnknown **ppunk) = 0;
virtual HRESULT STDMETHODCALLTYPE Delete(
LPCWSTR pwszName) = 0;
virtual HRESULT STDMETHODCALLTYPE NewWorkItem(
LPCWSTR pwszTaskName,
REFCLSID rclsid,
REFIID riid,
IUnknown **ppunk) = 0;
virtual HRESULT STDMETHODCALLTYPE AddWorkItem(
LPCWSTR pwszTaskName,
IScheduledWorkItem *pWorkItem) = 0;
virtual HRESULT STDMETHODCALLTYPE IsOfType(
LPCWSTR pwszName,
REFIID riid) = 0;
};
#ifdef __CRT_UUID_DECL
__CRT_UUID_DECL(ITaskScheduler, 0x148bd527, 0xa2ab, 0x11ce, 0xb1,0x1f, 0x00,0xaa,0x00,0x53,0x05,0x03)
#endif
#else
typedef struct ITaskSchedulerVtbl {
BEGIN_INTERFACE
/*** IUnknown methods ***/
HRESULT (STDMETHODCALLTYPE *QueryInterface)(
ITaskScheduler* This,
REFIID riid,
void **ppvObject);
ULONG (STDMETHODCALLTYPE *AddRef)(
ITaskScheduler* This);
ULONG (STDMETHODCALLTYPE *Release)(
ITaskScheduler* This);
/*** ITaskScheduler methods ***/
HRESULT (STDMETHODCALLTYPE *SetTargetComputer)(
ITaskScheduler* This,
LPCWSTR pwszComputer);
HRESULT (STDMETHODCALLTYPE *GetTargetComputer)(
ITaskScheduler* This,
LPWSTR *ppwszComputer);
HRESULT (STDMETHODCALLTYPE *Enum)(
ITaskScheduler* This,
IEnumWorkItems **ppEnumTasks);
HRESULT (STDMETHODCALLTYPE *Activate)(
ITaskScheduler* This,
LPCWSTR pwszName,
REFIID riid,
IUnknown **ppunk);
HRESULT (STDMETHODCALLTYPE *Delete)(
ITaskScheduler* This,
LPCWSTR pwszName);
HRESULT (STDMETHODCALLTYPE *NewWorkItem)(
ITaskScheduler* This,
LPCWSTR pwszTaskName,
REFCLSID rclsid,
REFIID riid,
IUnknown **ppunk);
HRESULT (STDMETHODCALLTYPE *AddWorkItem)(
ITaskScheduler* This,
LPCWSTR pwszTaskName,
IScheduledWorkItem *pWorkItem);
HRESULT (STDMETHODCALLTYPE *IsOfType)(
ITaskScheduler* This,
LPCWSTR pwszName,
REFIID riid);
END_INTERFACE
} ITaskSchedulerVtbl;
interface ITaskScheduler {
CONST_VTBL ITaskSchedulerVtbl* lpVtbl;
};
#ifdef COBJMACROS
#ifndef WIDL_C_INLINE_WRAPPERS
/*** IUnknown methods ***/
#define ITaskScheduler_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
#define ITaskScheduler_AddRef(This) (This)->lpVtbl->AddRef(This)
#define ITaskScheduler_Release(This) (This)->lpVtbl->Release(This)
/*** ITaskScheduler methods ***/
#define ITaskScheduler_SetTargetComputer(This,pwszComputer) (This)->lpVtbl->SetTargetComputer(This,pwszComputer)
#define ITaskScheduler_GetTargetComputer(This,ppwszComputer) (This)->lpVtbl->GetTargetComputer(This,ppwszComputer)
#define ITaskScheduler_Enum(This,ppEnumTasks) (This)->lpVtbl->Enum(This,ppEnumTasks)
#define ITaskScheduler_Activate(This,pwszName,riid,ppunk) (This)->lpVtbl->Activate(This,pwszName,riid,ppunk)
#define ITaskScheduler_Delete(This,pwszName) (This)->lpVtbl->Delete(This,pwszName)
#define ITaskScheduler_NewWorkItem(This,pwszTaskName,rclsid,riid,ppunk) (This)->lpVtbl->NewWorkItem(This,pwszTaskName,rclsid,riid,ppunk)
#define ITaskScheduler_AddWorkItem(This,pwszTaskName,pWorkItem) (This)->lpVtbl->AddWorkItem(This,pwszTaskName,pWorkItem)
#define ITaskScheduler_IsOfType(This,pwszName,riid) (This)->lpVtbl->IsOfType(This,pwszName,riid)
#else
/*** IUnknown methods ***/
static FORCEINLINE HRESULT ITaskScheduler_QueryInterface(ITaskScheduler* This,REFIID riid,void **ppvObject) {
return This->lpVtbl->QueryInterface(This,riid,ppvObject);
}
static FORCEINLINE ULONG ITaskScheduler_AddRef(ITaskScheduler* This) {
return This->lpVtbl->AddRef(This);
}
static FORCEINLINE ULONG ITaskScheduler_Release(ITaskScheduler* This) {
return This->lpVtbl->Release(This);
}
/*** ITaskScheduler methods ***/
static FORCEINLINE HRESULT ITaskScheduler_SetTargetComputer(ITaskScheduler* This,LPCWSTR pwszComputer) {
return This->lpVtbl->SetTargetComputer(This,pwszComputer);
}
static FORCEINLINE HRESULT ITaskScheduler_GetTargetComputer(ITaskScheduler* This,LPWSTR *ppwszComputer) {
return This->lpVtbl->GetTargetComputer(This,ppwszComputer);
}
static FORCEINLINE HRESULT ITaskScheduler_Enum(ITaskScheduler* This,IEnumWorkItems **ppEnumTasks) {
return This->lpVtbl->Enum(This,ppEnumTasks);
}
static FORCEINLINE HRESULT ITaskScheduler_Activate(ITaskScheduler* This,LPCWSTR pwszName,REFIID riid,IUnknown **ppunk) {
return This->lpVtbl->Activate(This,pwszName,riid,ppunk);
}
static FORCEINLINE HRESULT ITaskScheduler_Delete(ITaskScheduler* This,LPCWSTR pwszName) {
return This->lpVtbl->Delete(This,pwszName);
}
static FORCEINLINE HRESULT ITaskScheduler_NewWorkItem(ITaskScheduler* This,LPCWSTR pwszTaskName,REFCLSID rclsid,REFIID riid,IUnknown **ppunk) {
return This->lpVtbl->NewWorkItem(This,pwszTaskName,rclsid,riid,ppunk);
}
static FORCEINLINE HRESULT ITaskScheduler_AddWorkItem(ITaskScheduler* This,LPCWSTR pwszTaskName,IScheduledWorkItem *pWorkItem) {
return This->lpVtbl->AddWorkItem(This,pwszTaskName,pWorkItem);
}
static FORCEINLINE HRESULT ITaskScheduler_IsOfType(ITaskScheduler* This,LPCWSTR pwszName,REFIID riid) {
return This->lpVtbl->IsOfType(This,pwszName,riid);
}
#endif
#endif
#endif
HRESULT STDMETHODCALLTYPE ITaskScheduler_SetTargetComputer_Proxy(
ITaskScheduler* This,
LPCWSTR pwszComputer);
void __RPC_STUB ITaskScheduler_SetTargetComputer_Stub(
IRpcStubBuffer* This,
IRpcChannelBuffer* pRpcChannelBuffer,
PRPC_MESSAGE pRpcMessage,
DWORD* pdwStubPhase);
HRESULT STDMETHODCALLTYPE ITaskScheduler_GetTargetComputer_Proxy(
ITaskScheduler* This,
LPWSTR *ppwszComputer);
void __RPC_STUB ITaskScheduler_GetTargetComputer_Stub(
IRpcStubBuffer* This,
IRpcChannelBuffer* pRpcChannelBuffer,
PRPC_MESSAGE pRpcMessage,
DWORD* pdwStubPhase);
HRESULT STDMETHODCALLTYPE ITaskScheduler_Enum_Proxy(
ITaskScheduler* This,
IEnumWorkItems **ppEnumTasks);
void __RPC_STUB ITaskScheduler_Enum_Stub(
IRpcStubBuffer* This,
IRpcChannelBuffer* pRpcChannelBuffer,
PRPC_MESSAGE pRpcMessage,
DWORD* pdwStubPhase);
HRESULT STDMETHODCALLTYPE ITaskScheduler_Activate_Proxy(
ITaskScheduler* This,
LPCWSTR pwszName,
REFIID riid,
IUnknown **ppunk);
void __RPC_STUB ITaskScheduler_Activate_Stub(
IRpcStubBuffer* This,
IRpcChannelBuffer* pRpcChannelBuffer,
PRPC_MESSAGE pRpcMessage,
DWORD* pdwStubPhase);
HRESULT STDMETHODCALLTYPE ITaskScheduler_Delete_Proxy(
ITaskScheduler* This,
LPCWSTR pwszName);
void __RPC_STUB ITaskScheduler_Delete_Stub(
IRpcStubBuffer* This,
IRpcChannelBuffer* pRpcChannelBuffer,
PRPC_MESSAGE pRpcMessage,
DWORD* pdwStubPhase);
HRESULT STDMETHODCALLTYPE ITaskScheduler_NewWorkItem_Proxy(
ITaskScheduler* This,
LPCWSTR pwszTaskName,
REFCLSID rclsid,
REFIID riid,
IUnknown **ppunk);
void __RPC_STUB ITaskScheduler_NewWorkItem_Stub(
IRpcStubBuffer* This,
IRpcChannelBuffer* pRpcChannelBuffer,
PRPC_MESSAGE pRpcMessage,
DWORD* pdwStubPhase);
HRESULT STDMETHODCALLTYPE ITaskScheduler_AddWorkItem_Proxy(
ITaskScheduler* This,
LPCWSTR pwszTaskName,
IScheduledWorkItem *pWorkItem);
void __RPC_STUB ITaskScheduler_AddWorkItem_Stub(
IRpcStubBuffer* This,
IRpcChannelBuffer* pRpcChannelBuffer,
PRPC_MESSAGE pRpcMessage,
DWORD* pdwStubPhase);
HRESULT STDMETHODCALLTYPE ITaskScheduler_IsOfType_Proxy(
ITaskScheduler* This,
LPCWSTR pwszName,
REFIID riid);
void __RPC_STUB ITaskScheduler_IsOfType_Stub(
IRpcStubBuffer* This,
IRpcChannelBuffer* pRpcChannelBuffer,
PRPC_MESSAGE pRpcMessage,
DWORD* pdwStubPhase);
#endif /* __ITaskScheduler_INTERFACE_DEFINED__ */
/*****************************************************************************
* CTaskScheduler coclass
*/
DEFINE_GUID(CLSID_CTaskScheduler, 0x148bd52a, 0xa2ab, 0x11ce, 0xb1,0x1f, 0x00,0xaa,0x00,0x53,0x05,0x03);
#ifdef __cplusplus
class DECLSPEC_UUID("148bd52a-a2ab-11ce-b11f-00aa00530503") CTaskScheduler;
#ifdef __CRT_UUID_DECL
__CRT_UUID_DECL(CTaskScheduler, 0x148bd52a, 0xa2ab, 0x11ce, 0xb1,0x1f, 0x00,0xaa,0x00,0x53,0x05,0x03)
#endif
#endif
/*****************************************************************************
* CTask coclass
*/
DEFINE_GUID(CLSID_CTask, 0x148bd520, 0xa2ab, 0x11ce, 0xb1,0x1f, 0x00,0xaa,0x00,0x53,0x05,0x03);
#ifdef __cplusplus
class DECLSPEC_UUID("148bd520-a2ab-11ce-b11f-00aa00530503") CTask;
#ifdef __CRT_UUID_DECL
__CRT_UUID_DECL(CTask, 0x148bd520, 0xa2ab, 0x11ce, 0xb1,0x1f, 0x00,0xaa,0x00,0x53,0x05,0x03)
#endif
#endif
/* Begin additional prototypes for all interfaces */
/* End additional prototypes */
#ifdef __cplusplus
}
#endif
#endif /* __mstask_h__ */
|