Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

2247 lines
67 KiB

  1. /* this ALWAYS GENERATED file contains the definitions for the interfaces */
  2. /* File created by MIDL compiler version 6.00.0361 */
  3. /* Compiler settings for mstask.idl:
  4. Oicf, W1, Zp8, env=Win32 (32b run)
  5. protocol : dce , ms_ext, c_ext, robust
  6. error checks: allocation ref bounds_check enum stub_data
  7. VC __declspec() decoration level:
  8. __declspec(uuid()), __declspec(selectany), __declspec(novtable)
  9. DECLSPEC_UUID(), MIDL_INTERFACE()
  10. */
  11. //@@MIDL_FILE_HEADING( )
  12. #pragma warning( disable: 4049 ) /* more than 64k source lines */
  13. /* verify that the <rpcndr.h> version is high enough to compile this file*/
  14. #ifndef __REQUIRED_RPCNDR_H_VERSION__
  15. #define __REQUIRED_RPCNDR_H_VERSION__ 475
  16. #endif
  17. #include "rpc.h"
  18. #include "rpcndr.h"
  19. #ifndef __RPCNDR_H_VERSION__
  20. #error this stub requires an updated version of <rpcndr.h>
  21. #endif // __RPCNDR_H_VERSION__
  22. #ifndef COM_NO_WINDOWS_H
  23. #include "windows.h"
  24. #include "ole2.h"
  25. #endif /*COM_NO_WINDOWS_H*/
  26. #ifndef __mstask_h__
  27. #define __mstask_h__
  28. #if defined(_MSC_VER) && (_MSC_VER >= 1020)
  29. #pragma once
  30. #endif
  31. /* Forward Declarations */
  32. #ifndef __ITaskTrigger_FWD_DEFINED__
  33. #define __ITaskTrigger_FWD_DEFINED__
  34. typedef interface ITaskTrigger ITaskTrigger;
  35. #endif /* __ITaskTrigger_FWD_DEFINED__ */
  36. #ifndef __IScheduledWorkItem_FWD_DEFINED__
  37. #define __IScheduledWorkItem_FWD_DEFINED__
  38. typedef interface IScheduledWorkItem IScheduledWorkItem;
  39. #endif /* __IScheduledWorkItem_FWD_DEFINED__ */
  40. #ifndef __ITask_FWD_DEFINED__
  41. #define __ITask_FWD_DEFINED__
  42. typedef interface ITask ITask;
  43. #endif /* __ITask_FWD_DEFINED__ */
  44. #ifndef __IEnumWorkItems_FWD_DEFINED__
  45. #define __IEnumWorkItems_FWD_DEFINED__
  46. typedef interface IEnumWorkItems IEnumWorkItems;
  47. #endif /* __IEnumWorkItems_FWD_DEFINED__ */
  48. #ifndef __ITaskScheduler_FWD_DEFINED__
  49. #define __ITaskScheduler_FWD_DEFINED__
  50. typedef interface ITaskScheduler ITaskScheduler;
  51. #endif /* __ITaskScheduler_FWD_DEFINED__ */
  52. #ifndef __IProvideTaskPage_FWD_DEFINED__
  53. #define __IProvideTaskPage_FWD_DEFINED__
  54. typedef interface IProvideTaskPage IProvideTaskPage;
  55. #endif /* __IProvideTaskPage_FWD_DEFINED__ */
  56. /* header files for imported files */
  57. #include "oaidl.h"
  58. #include "oleidl.h"
  59. #ifdef __cplusplus
  60. extern "C"{
  61. #endif
  62. void * __RPC_USER MIDL_user_allocate(size_t);
  63. void __RPC_USER MIDL_user_free( void * );
  64. /* interface __MIDL_itf_mstask_0000 */
  65. /* [local] */
  66. #define TASK_SUNDAY (0x1)
  67. #define TASK_MONDAY (0x2)
  68. #define TASK_TUESDAY (0x4)
  69. #define TASK_WEDNESDAY (0x8)
  70. #define TASK_THURSDAY (0x10)
  71. #define TASK_FRIDAY (0x20)
  72. #define TASK_SATURDAY (0x40)
  73. #define TASK_FIRST_WEEK (1)
  74. #define TASK_SECOND_WEEK (2)
  75. #define TASK_THIRD_WEEK (3)
  76. #define TASK_FOURTH_WEEK (4)
  77. #define TASK_LAST_WEEK (5)
  78. #define TASK_JANUARY (0x1)
  79. #define TASK_FEBRUARY (0x2)
  80. #define TASK_MARCH (0x4)
  81. #define TASK_APRIL (0x8)
  82. #define TASK_MAY (0x10)
  83. #define TASK_JUNE (0x20)
  84. #define TASK_JULY (0x40)
  85. #define TASK_AUGUST (0x80)
  86. #define TASK_SEPTEMBER (0x100)
  87. #define TASK_OCTOBER (0x200)
  88. #define TASK_NOVEMBER (0x400)
  89. #define TASK_DECEMBER (0x800)
  90. #define TASK_FLAG_INTERACTIVE (0x1)
  91. #define TASK_FLAG_DELETE_WHEN_DONE (0x2)
  92. #define TASK_FLAG_DISABLED (0x4)
  93. #define TASK_FLAG_START_ONLY_IF_IDLE (0x10)
  94. #define TASK_FLAG_KILL_ON_IDLE_END (0x20)
  95. #define TASK_FLAG_DONT_START_IF_ON_BATTERIES (0x40)
  96. #define TASK_FLAG_KILL_IF_GOING_ON_BATTERIES (0x80)
  97. #define TASK_FLAG_RUN_ONLY_IF_DOCKED (0x100)
  98. #define TASK_FLAG_HIDDEN (0x200)
  99. #define TASK_FLAG_RUN_IF_CONNECTED_TO_INTERNET (0x400)
  100. #define TASK_FLAG_RESTART_ON_IDLE_RESUME (0x800)
  101. #define TASK_FLAG_SYSTEM_REQUIRED (0x1000)
  102. #define TASK_FLAG_RUN_ONLY_IF_LOGGED_ON (0x2000)
  103. #define TASK_TRIGGER_FLAG_HAS_END_DATE (0x1)
  104. #define TASK_TRIGGER_FLAG_KILL_AT_DURATION_END (0x2)
  105. #define TASK_TRIGGER_FLAG_DISABLED (0x4)
  106. #define TASK_MAX_RUN_TIMES ( 1440 )
  107. typedef
  108. enum _TASK_TRIGGER_TYPE
  109. { TASK_TIME_TRIGGER_ONCE = 0,
  110. TASK_TIME_TRIGGER_DAILY = 1,
  111. TASK_TIME_TRIGGER_WEEKLY = 2,
  112. TASK_TIME_TRIGGER_MONTHLYDATE = 3,
  113. TASK_TIME_TRIGGER_MONTHLYDOW = 4,
  114. TASK_EVENT_TRIGGER_ON_IDLE = 5,
  115. TASK_EVENT_TRIGGER_AT_SYSTEMSTART = 6,
  116. TASK_EVENT_TRIGGER_AT_LOGON = 7
  117. } TASK_TRIGGER_TYPE;
  118. typedef enum _TASK_TRIGGER_TYPE *PTASK_TRIGGER_TYPE;
  119. typedef struct _DAILY
  120. {
  121. WORD DaysInterval;
  122. } DAILY;
  123. typedef struct _WEEKLY
  124. {
  125. WORD WeeksInterval;
  126. WORD rgfDaysOfTheWeek;
  127. } WEEKLY;
  128. typedef struct _MONTHLYDATE
  129. {
  130. DWORD rgfDays;
  131. WORD rgfMonths;
  132. } MONTHLYDATE;
  133. typedef struct _MONTHLYDOW
  134. {
  135. WORD wWhichWeek;
  136. WORD rgfDaysOfTheWeek;
  137. WORD rgfMonths;
  138. } MONTHLYDOW;
  139. typedef union _TRIGGER_TYPE_UNION
  140. {
  141. DAILY Daily;
  142. WEEKLY Weekly;
  143. MONTHLYDATE MonthlyDate;
  144. MONTHLYDOW MonthlyDOW;
  145. } TRIGGER_TYPE_UNION;
  146. typedef struct _TASK_TRIGGER
  147. {
  148. WORD cbTriggerSize;
  149. WORD Reserved1;
  150. WORD wBeginYear;
  151. WORD wBeginMonth;
  152. WORD wBeginDay;
  153. WORD wEndYear;
  154. WORD wEndMonth;
  155. WORD wEndDay;
  156. WORD wStartHour;
  157. WORD wStartMinute;
  158. DWORD MinutesDuration;
  159. DWORD MinutesInterval;
  160. DWORD rgFlags;
  161. TASK_TRIGGER_TYPE TriggerType;
  162. TRIGGER_TYPE_UNION Type;
  163. WORD Reserved2;
  164. WORD wRandomMinutesInterval;
  165. } TASK_TRIGGER;
  166. typedef struct _TASK_TRIGGER *PTASK_TRIGGER;
  167. // {148BD52B-A2AB-11CE-B11F-00AA00530503}
  168. DEFINE_GUID(IID_ITaskTrigger, 0x148BD52BL, 0xA2AB, 0x11CE, 0xB1, 0x1F, 0x00, 0xAA, 0x00, 0x53, 0x05, 0x03);
  169. extern RPC_IF_HANDLE __MIDL_itf_mstask_0000_v0_0_c_ifspec;
  170. extern RPC_IF_HANDLE __MIDL_itf_mstask_0000_v0_0_s_ifspec;
  171. #ifndef __ITaskTrigger_INTERFACE_DEFINED__
  172. #define __ITaskTrigger_INTERFACE_DEFINED__
  173. /* interface ITaskTrigger */
  174. /* [unique][uuid][object][local] */
  175. EXTERN_C const IID IID_ITaskTrigger;
  176. #if defined(__cplusplus) && !defined(CINTERFACE)
  177. MIDL_INTERFACE("148BD52B-A2AB-11CE-B11F-00AA00530503")
  178. ITaskTrigger : public IUnknown
  179. {
  180. public:
  181. virtual HRESULT STDMETHODCALLTYPE SetTrigger(
  182. /* [in] */ const PTASK_TRIGGER pTrigger) = 0;
  183. virtual HRESULT STDMETHODCALLTYPE GetTrigger(
  184. /* [out] */ PTASK_TRIGGER pTrigger) = 0;
  185. virtual HRESULT STDMETHODCALLTYPE GetTriggerString(
  186. /* [out] */ LPWSTR *ppwszTrigger) = 0;
  187. };
  188. #else /* C style interface */
  189. typedef struct ITaskTriggerVtbl
  190. {
  191. BEGIN_INTERFACE
  192. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  193. ITaskTrigger * This,
  194. /* [in] */ REFIID riid,
  195. /* [iid_is][out] */ void **ppvObject);
  196. ULONG ( STDMETHODCALLTYPE *AddRef )(
  197. ITaskTrigger * This);
  198. ULONG ( STDMETHODCALLTYPE *Release )(
  199. ITaskTrigger * This);
  200. HRESULT ( STDMETHODCALLTYPE *SetTrigger )(
  201. ITaskTrigger * This,
  202. /* [in] */ const PTASK_TRIGGER pTrigger);
  203. HRESULT ( STDMETHODCALLTYPE *GetTrigger )(
  204. ITaskTrigger * This,
  205. /* [out] */ PTASK_TRIGGER pTrigger);
  206. HRESULT ( STDMETHODCALLTYPE *GetTriggerString )(
  207. ITaskTrigger * This,
  208. /* [out] */ LPWSTR *ppwszTrigger);
  209. END_INTERFACE
  210. } ITaskTriggerVtbl;
  211. interface ITaskTrigger
  212. {
  213. CONST_VTBL struct ITaskTriggerVtbl *lpVtbl;
  214. };
  215. #ifdef COBJMACROS
  216. #define ITaskTrigger_QueryInterface(This,riid,ppvObject) \
  217. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  218. #define ITaskTrigger_AddRef(This) \
  219. (This)->lpVtbl -> AddRef(This)
  220. #define ITaskTrigger_Release(This) \
  221. (This)->lpVtbl -> Release(This)
  222. #define ITaskTrigger_SetTrigger(This,pTrigger) \
  223. (This)->lpVtbl -> SetTrigger(This,pTrigger)
  224. #define ITaskTrigger_GetTrigger(This,pTrigger) \
  225. (This)->lpVtbl -> GetTrigger(This,pTrigger)
  226. #define ITaskTrigger_GetTriggerString(This,ppwszTrigger) \
  227. (This)->lpVtbl -> GetTriggerString(This,ppwszTrigger)
  228. #endif /* COBJMACROS */
  229. #endif /* C style interface */
  230. HRESULT STDMETHODCALLTYPE ITaskTrigger_SetTrigger_Proxy(
  231. ITaskTrigger * This,
  232. /* [in] */ const PTASK_TRIGGER pTrigger);
  233. void __RPC_STUB ITaskTrigger_SetTrigger_Stub(
  234. IRpcStubBuffer *This,
  235. IRpcChannelBuffer *_pRpcChannelBuffer,
  236. PRPC_MESSAGE _pRpcMessage,
  237. DWORD *_pdwStubPhase);
  238. HRESULT STDMETHODCALLTYPE ITaskTrigger_GetTrigger_Proxy(
  239. ITaskTrigger * This,
  240. /* [out] */ PTASK_TRIGGER pTrigger);
  241. void __RPC_STUB ITaskTrigger_GetTrigger_Stub(
  242. IRpcStubBuffer *This,
  243. IRpcChannelBuffer *_pRpcChannelBuffer,
  244. PRPC_MESSAGE _pRpcMessage,
  245. DWORD *_pdwStubPhase);
  246. HRESULT STDMETHODCALLTYPE ITaskTrigger_GetTriggerString_Proxy(
  247. ITaskTrigger * This,
  248. /* [out] */ LPWSTR *ppwszTrigger);
  249. void __RPC_STUB ITaskTrigger_GetTriggerString_Stub(
  250. IRpcStubBuffer *This,
  251. IRpcChannelBuffer *_pRpcChannelBuffer,
  252. PRPC_MESSAGE _pRpcMessage,
  253. DWORD *_pdwStubPhase);
  254. #endif /* __ITaskTrigger_INTERFACE_DEFINED__ */
  255. /* interface __MIDL_itf_mstask_0140 */
  256. /* [local] */
  257. // {a6b952f0-a4b1-11d0-997d-00aa006887ec}
  258. DEFINE_GUID(IID_IScheduledWorkItem, 0xa6b952f0L, 0xa4b1, 0x11d0, 0x99, 0x7d, 0x00, 0xaa, 0x00, 0x68, 0x87, 0xec);
  259. extern RPC_IF_HANDLE __MIDL_itf_mstask_0140_v0_0_c_ifspec;
  260. extern RPC_IF_HANDLE __MIDL_itf_mstask_0140_v0_0_s_ifspec;
  261. #ifndef __IScheduledWorkItem_INTERFACE_DEFINED__
  262. #define __IScheduledWorkItem_INTERFACE_DEFINED__
  263. /* interface IScheduledWorkItem */
  264. /* [unique][uuid][object][local] */
  265. EXTERN_C const IID IID_IScheduledWorkItem;
  266. #if defined(__cplusplus) && !defined(CINTERFACE)
  267. MIDL_INTERFACE("a6b952f0-a4b1-11d0-997d-00aa006887ec")
  268. IScheduledWorkItem : public IUnknown
  269. {
  270. public:
  271. virtual HRESULT STDMETHODCALLTYPE CreateTrigger(
  272. /* [out] */ WORD *piNewTrigger,
  273. /* [out] */ ITaskTrigger **ppTrigger) = 0;
  274. virtual HRESULT STDMETHODCALLTYPE DeleteTrigger(
  275. /* [in] */ WORD iTrigger) = 0;
  276. virtual HRESULT STDMETHODCALLTYPE GetTriggerCount(
  277. /* [out] */ WORD *pwCount) = 0;
  278. virtual HRESULT STDMETHODCALLTYPE GetTrigger(
  279. /* [in] */ WORD iTrigger,
  280. /* [out] */ ITaskTrigger **ppTrigger) = 0;
  281. virtual HRESULT STDMETHODCALLTYPE GetTriggerString(
  282. /* [in] */ WORD iTrigger,
  283. /* [out] */ LPWSTR *ppwszTrigger) = 0;
  284. virtual HRESULT STDMETHODCALLTYPE GetRunTimes(
  285. /* [in] */ const LPSYSTEMTIME pstBegin,
  286. /* [in] */ const LPSYSTEMTIME pstEnd,
  287. /* [out][in] */ WORD *pCount,
  288. /* [out] */ LPSYSTEMTIME *rgstTaskTimes) = 0;
  289. virtual HRESULT STDMETHODCALLTYPE GetNextRunTime(
  290. /* [out][in] */ SYSTEMTIME *pstNextRun) = 0;
  291. virtual HRESULT STDMETHODCALLTYPE SetIdleWait(
  292. /* [in] */ WORD wIdleMinutes,
  293. /* [in] */ WORD wDeadlineMinutes) = 0;
  294. virtual HRESULT STDMETHODCALLTYPE GetIdleWait(
  295. /* [out] */ WORD *pwIdleMinutes,
  296. /* [out] */ WORD *pwDeadlineMinutes) = 0;
  297. virtual HRESULT STDMETHODCALLTYPE Run( void) = 0;
  298. virtual HRESULT STDMETHODCALLTYPE Terminate( void) = 0;
  299. virtual HRESULT STDMETHODCALLTYPE EditWorkItem(
  300. /* [in] */ HWND hParent,
  301. /* [in] */ DWORD dwReserved) = 0;
  302. virtual HRESULT STDMETHODCALLTYPE GetMostRecentRunTime(
  303. /* [out] */ SYSTEMTIME *pstLastRun) = 0;
  304. virtual HRESULT STDMETHODCALLTYPE GetStatus(
  305. /* [out] */ HRESULT *phrStatus) = 0;
  306. virtual HRESULT STDMETHODCALLTYPE GetExitCode(
  307. /* [out] */ DWORD *pdwExitCode) = 0;
  308. virtual HRESULT STDMETHODCALLTYPE SetComment(
  309. /* [in] */ LPCWSTR pwszComment) = 0;
  310. virtual HRESULT STDMETHODCALLTYPE GetComment(
  311. /* [out] */ LPWSTR *ppwszComment) = 0;
  312. virtual HRESULT STDMETHODCALLTYPE SetCreator(
  313. /* [in] */ LPCWSTR pwszCreator) = 0;
  314. virtual HRESULT STDMETHODCALLTYPE GetCreator(
  315. /* [out] */ LPWSTR *ppwszCreator) = 0;
  316. virtual HRESULT STDMETHODCALLTYPE SetWorkItemData(
  317. /* [in] */ WORD cbData,
  318. /* [in] */ BYTE rgbData[ ]) = 0;
  319. virtual HRESULT STDMETHODCALLTYPE GetWorkItemData(
  320. /* [out] */ WORD *pcbData,
  321. /* [out] */ BYTE **prgbData) = 0;
  322. virtual HRESULT STDMETHODCALLTYPE SetErrorRetryCount(
  323. /* [in] */ WORD wRetryCount) = 0;
  324. virtual HRESULT STDMETHODCALLTYPE GetErrorRetryCount(
  325. /* [out] */ WORD *pwRetryCount) = 0;
  326. virtual HRESULT STDMETHODCALLTYPE SetErrorRetryInterval(
  327. /* [in] */ WORD wRetryInterval) = 0;
  328. virtual HRESULT STDMETHODCALLTYPE GetErrorRetryInterval(
  329. /* [out] */ WORD *pwRetryInterval) = 0;
  330. virtual HRESULT STDMETHODCALLTYPE SetFlags(
  331. /* [in] */ DWORD dwFlags) = 0;
  332. virtual HRESULT STDMETHODCALLTYPE GetFlags(
  333. /* [out] */ DWORD *pdwFlags) = 0;
  334. virtual HRESULT STDMETHODCALLTYPE SetAccountInformation(
  335. /* [in] */ LPCWSTR pwszAccountName,
  336. /* [in] */ LPCWSTR pwszPassword) = 0;
  337. virtual HRESULT STDMETHODCALLTYPE GetAccountInformation(
  338. /* [out] */ LPWSTR *ppwszAccountName) = 0;
  339. };
  340. #else /* C style interface */
  341. typedef struct IScheduledWorkItemVtbl
  342. {
  343. BEGIN_INTERFACE
  344. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  345. IScheduledWorkItem * This,
  346. /* [in] */ REFIID riid,
  347. /* [iid_is][out] */ void **ppvObject);
  348. ULONG ( STDMETHODCALLTYPE *AddRef )(
  349. IScheduledWorkItem * This);
  350. ULONG ( STDMETHODCALLTYPE *Release )(
  351. IScheduledWorkItem * This);
  352. HRESULT ( STDMETHODCALLTYPE *CreateTrigger )(
  353. IScheduledWorkItem * This,
  354. /* [out] */ WORD *piNewTrigger,
  355. /* [out] */ ITaskTrigger **ppTrigger);
  356. HRESULT ( STDMETHODCALLTYPE *DeleteTrigger )(
  357. IScheduledWorkItem * This,
  358. /* [in] */ WORD iTrigger);
  359. HRESULT ( STDMETHODCALLTYPE *GetTriggerCount )(
  360. IScheduledWorkItem * This,
  361. /* [out] */ WORD *pwCount);
  362. HRESULT ( STDMETHODCALLTYPE *GetTrigger )(
  363. IScheduledWorkItem * This,
  364. /* [in] */ WORD iTrigger,
  365. /* [out] */ ITaskTrigger **ppTrigger);
  366. HRESULT ( STDMETHODCALLTYPE *GetTriggerString )(
  367. IScheduledWorkItem * This,
  368. /* [in] */ WORD iTrigger,
  369. /* [out] */ LPWSTR *ppwszTrigger);
  370. HRESULT ( STDMETHODCALLTYPE *GetRunTimes )(
  371. IScheduledWorkItem * This,
  372. /* [in] */ const LPSYSTEMTIME pstBegin,
  373. /* [in] */ const LPSYSTEMTIME pstEnd,
  374. /* [out][in] */ WORD *pCount,
  375. /* [out] */ LPSYSTEMTIME *rgstTaskTimes);
  376. HRESULT ( STDMETHODCALLTYPE *GetNextRunTime )(
  377. IScheduledWorkItem * This,
  378. /* [out][in] */ SYSTEMTIME *pstNextRun);
  379. HRESULT ( STDMETHODCALLTYPE *SetIdleWait )(
  380. IScheduledWorkItem * This,
  381. /* [in] */ WORD wIdleMinutes,
  382. /* [in] */ WORD wDeadlineMinutes);
  383. HRESULT ( STDMETHODCALLTYPE *GetIdleWait )(
  384. IScheduledWorkItem * This,
  385. /* [out] */ WORD *pwIdleMinutes,
  386. /* [out] */ WORD *pwDeadlineMinutes);
  387. HRESULT ( STDMETHODCALLTYPE *Run )(
  388. IScheduledWorkItem * This);
  389. HRESULT ( STDMETHODCALLTYPE *Terminate )(
  390. IScheduledWorkItem * This);
  391. HRESULT ( STDMETHODCALLTYPE *EditWorkItem )(
  392. IScheduledWorkItem * This,
  393. /* [in] */ HWND hParent,
  394. /* [in] */ DWORD dwReserved);
  395. HRESULT ( STDMETHODCALLTYPE *GetMostRecentRunTime )(
  396. IScheduledWorkItem * This,
  397. /* [out] */ SYSTEMTIME *pstLastRun);
  398. HRESULT ( STDMETHODCALLTYPE *GetStatus )(
  399. IScheduledWorkItem * This,
  400. /* [out] */ HRESULT *phrStatus);
  401. HRESULT ( STDMETHODCALLTYPE *GetExitCode )(
  402. IScheduledWorkItem * This,
  403. /* [out] */ DWORD *pdwExitCode);
  404. HRESULT ( STDMETHODCALLTYPE *SetComment )(
  405. IScheduledWorkItem * This,
  406. /* [in] */ LPCWSTR pwszComment);
  407. HRESULT ( STDMETHODCALLTYPE *GetComment )(
  408. IScheduledWorkItem * This,
  409. /* [out] */ LPWSTR *ppwszComment);
  410. HRESULT ( STDMETHODCALLTYPE *SetCreator )(
  411. IScheduledWorkItem * This,
  412. /* [in] */ LPCWSTR pwszCreator);
  413. HRESULT ( STDMETHODCALLTYPE *GetCreator )(
  414. IScheduledWorkItem * This,
  415. /* [out] */ LPWSTR *ppwszCreator);
  416. HRESULT ( STDMETHODCALLTYPE *SetWorkItemData )(
  417. IScheduledWorkItem * This,
  418. /* [in] */ WORD cbData,
  419. /* [in] */ BYTE rgbData[ ]);
  420. HRESULT ( STDMETHODCALLTYPE *GetWorkItemData )(
  421. IScheduledWorkItem * This,
  422. /* [out] */ WORD *pcbData,
  423. /* [out] */ BYTE **prgbData);
  424. HRESULT ( STDMETHODCALLTYPE *SetErrorRetryCount )(
  425. IScheduledWorkItem * This,
  426. /* [in] */ WORD wRetryCount);
  427. HRESULT ( STDMETHODCALLTYPE *GetErrorRetryCount )(
  428. IScheduledWorkItem * This,
  429. /* [out] */ WORD *pwRetryCount);
  430. HRESULT ( STDMETHODCALLTYPE *SetErrorRetryInterval )(
  431. IScheduledWorkItem * This,
  432. /* [in] */ WORD wRetryInterval);
  433. HRESULT ( STDMETHODCALLTYPE *GetErrorRetryInterval )(
  434. IScheduledWorkItem * This,
  435. /* [out] */ WORD *pwRetryInterval);
  436. HRESULT ( STDMETHODCALLTYPE *SetFlags )(
  437. IScheduledWorkItem * This,
  438. /* [in] */ DWORD dwFlags);
  439. HRESULT ( STDMETHODCALLTYPE *GetFlags )(
  440. IScheduledWorkItem * This,
  441. /* [out] */ DWORD *pdwFlags);
  442. HRESULT ( STDMETHODCALLTYPE *SetAccountInformation )(
  443. IScheduledWorkItem * This,
  444. /* [in] */ LPCWSTR pwszAccountName,
  445. /* [in] */ LPCWSTR pwszPassword);
  446. HRESULT ( STDMETHODCALLTYPE *GetAccountInformation )(
  447. IScheduledWorkItem * This,
  448. /* [out] */ LPWSTR *ppwszAccountName);
  449. END_INTERFACE
  450. } IScheduledWorkItemVtbl;
  451. interface IScheduledWorkItem
  452. {
  453. CONST_VTBL struct IScheduledWorkItemVtbl *lpVtbl;
  454. };
  455. #ifdef COBJMACROS
  456. #define IScheduledWorkItem_QueryInterface(This,riid,ppvObject) \
  457. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  458. #define IScheduledWorkItem_AddRef(This) \
  459. (This)->lpVtbl -> AddRef(This)
  460. #define IScheduledWorkItem_Release(This) \
  461. (This)->lpVtbl -> Release(This)
  462. #define IScheduledWorkItem_CreateTrigger(This,piNewTrigger,ppTrigger) \
  463. (This)->lpVtbl -> CreateTrigger(This,piNewTrigger,ppTrigger)
  464. #define IScheduledWorkItem_DeleteTrigger(This,iTrigger) \
  465. (This)->lpVtbl -> DeleteTrigger(This,iTrigger)
  466. #define IScheduledWorkItem_GetTriggerCount(This,pwCount) \
  467. (This)->lpVtbl -> GetTriggerCount(This,pwCount)
  468. #define IScheduledWorkItem_GetTrigger(This,iTrigger,ppTrigger) \
  469. (This)->lpVtbl -> GetTrigger(This,iTrigger,ppTrigger)
  470. #define IScheduledWorkItem_GetTriggerString(This,iTrigger,ppwszTrigger) \
  471. (This)->lpVtbl -> GetTriggerString(This,iTrigger,ppwszTrigger)
  472. #define IScheduledWorkItem_GetRunTimes(This,pstBegin,pstEnd,pCount,rgstTaskTimes) \
  473. (This)->lpVtbl -> GetRunTimes(This,pstBegin,pstEnd,pCount,rgstTaskTimes)
  474. #define IScheduledWorkItem_GetNextRunTime(This,pstNextRun) \
  475. (This)->lpVtbl -> GetNextRunTime(This,pstNextRun)
  476. #define IScheduledWorkItem_SetIdleWait(This,wIdleMinutes,wDeadlineMinutes) \
  477. (This)->lpVtbl -> SetIdleWait(This,wIdleMinutes,wDeadlineMinutes)
  478. #define IScheduledWorkItem_GetIdleWait(This,pwIdleMinutes,pwDeadlineMinutes) \
  479. (This)->lpVtbl -> GetIdleWait(This,pwIdleMinutes,pwDeadlineMinutes)
  480. #define IScheduledWorkItem_Run(This) \
  481. (This)->lpVtbl -> Run(This)
  482. #define IScheduledWorkItem_Terminate(This) \
  483. (This)->lpVtbl -> Terminate(This)
  484. #define IScheduledWorkItem_EditWorkItem(This,hParent,dwReserved) \
  485. (This)->lpVtbl -> EditWorkItem(This,hParent,dwReserved)
  486. #define IScheduledWorkItem_GetMostRecentRunTime(This,pstLastRun) \
  487. (This)->lpVtbl -> GetMostRecentRunTime(This,pstLastRun)
  488. #define IScheduledWorkItem_GetStatus(This,phrStatus) \
  489. (This)->lpVtbl -> GetStatus(This,phrStatus)
  490. #define IScheduledWorkItem_GetExitCode(This,pdwExitCode) \
  491. (This)->lpVtbl -> GetExitCode(This,pdwExitCode)
  492. #define IScheduledWorkItem_SetComment(This,pwszComment) \
  493. (This)->lpVtbl -> SetComment(This,pwszComment)
  494. #define IScheduledWorkItem_GetComment(This,ppwszComment) \
  495. (This)->lpVtbl -> GetComment(This,ppwszComment)
  496. #define IScheduledWorkItem_SetCreator(This,pwszCreator) \
  497. (This)->lpVtbl -> SetCreator(This,pwszCreator)
  498. #define IScheduledWorkItem_GetCreator(This,ppwszCreator) \
  499. (This)->lpVtbl -> GetCreator(This,ppwszCreator)
  500. #define IScheduledWorkItem_SetWorkItemData(This,cbData,rgbData) \
  501. (This)->lpVtbl -> SetWorkItemData(This,cbData,rgbData)
  502. #define IScheduledWorkItem_GetWorkItemData(This,pcbData,prgbData) \
  503. (This)->lpVtbl -> GetWorkItemData(This,pcbData,prgbData)
  504. #define IScheduledWorkItem_SetErrorRetryCount(This,wRetryCount) \
  505. (This)->lpVtbl -> SetErrorRetryCount(This,wRetryCount)
  506. #define IScheduledWorkItem_GetErrorRetryCount(This,pwRetryCount) \
  507. (This)->lpVtbl -> GetErrorRetryCount(This,pwRetryCount)
  508. #define IScheduledWorkItem_SetErrorRetryInterval(This,wRetryInterval) \
  509. (This)->lpVtbl -> SetErrorRetryInterval(This,wRetryInterval)
  510. #define IScheduledWorkItem_GetErrorRetryInterval(This,pwRetryInterval) \
  511. (This)->lpVtbl -> GetErrorRetryInterval(This,pwRetryInterval)
  512. #define IScheduledWorkItem_SetFlags(This,dwFlags) \
  513. (This)->lpVtbl -> SetFlags(This,dwFlags)
  514. #define IScheduledWorkItem_GetFlags(This,pdwFlags) \
  515. (This)->lpVtbl -> GetFlags(This,pdwFlags)
  516. #define IScheduledWorkItem_SetAccountInformation(This,pwszAccountName,pwszPassword) \
  517. (This)->lpVtbl -> SetAccountInformation(This,pwszAccountName,pwszPassword)
  518. #define IScheduledWorkItem_GetAccountInformation(This,ppwszAccountName) \
  519. (This)->lpVtbl -> GetAccountInformation(This,ppwszAccountName)
  520. #endif /* COBJMACROS */
  521. #endif /* C style interface */
  522. HRESULT STDMETHODCALLTYPE IScheduledWorkItem_CreateTrigger_Proxy(
  523. IScheduledWorkItem * This,
  524. /* [out] */ WORD *piNewTrigger,
  525. /* [out] */ ITaskTrigger **ppTrigger);
  526. void __RPC_STUB IScheduledWorkItem_CreateTrigger_Stub(
  527. IRpcStubBuffer *This,
  528. IRpcChannelBuffer *_pRpcChannelBuffer,
  529. PRPC_MESSAGE _pRpcMessage,
  530. DWORD *_pdwStubPhase);
  531. HRESULT STDMETHODCALLTYPE IScheduledWorkItem_DeleteTrigger_Proxy(
  532. IScheduledWorkItem * This,
  533. /* [in] */ WORD iTrigger);
  534. void __RPC_STUB IScheduledWorkItem_DeleteTrigger_Stub(
  535. IRpcStubBuffer *This,
  536. IRpcChannelBuffer *_pRpcChannelBuffer,
  537. PRPC_MESSAGE _pRpcMessage,
  538. DWORD *_pdwStubPhase);
  539. HRESULT STDMETHODCALLTYPE IScheduledWorkItem_GetTriggerCount_Proxy(
  540. IScheduledWorkItem * This,
  541. /* [out] */ WORD *pwCount);
  542. void __RPC_STUB IScheduledWorkItem_GetTriggerCount_Stub(
  543. IRpcStubBuffer *This,
  544. IRpcChannelBuffer *_pRpcChannelBuffer,
  545. PRPC_MESSAGE _pRpcMessage,
  546. DWORD *_pdwStubPhase);
  547. HRESULT STDMETHODCALLTYPE IScheduledWorkItem_GetTrigger_Proxy(
  548. IScheduledWorkItem * This,
  549. /* [in] */ WORD iTrigger,
  550. /* [out] */ ITaskTrigger **ppTrigger);
  551. void __RPC_STUB IScheduledWorkItem_GetTrigger_Stub(
  552. IRpcStubBuffer *This,
  553. IRpcChannelBuffer *_pRpcChannelBuffer,
  554. PRPC_MESSAGE _pRpcMessage,
  555. DWORD *_pdwStubPhase);
  556. HRESULT STDMETHODCALLTYPE IScheduledWorkItem_GetTriggerString_Proxy(
  557. IScheduledWorkItem * This,
  558. /* [in] */ WORD iTrigger,
  559. /* [out] */ LPWSTR *ppwszTrigger);
  560. void __RPC_STUB IScheduledWorkItem_GetTriggerString_Stub(
  561. IRpcStubBuffer *This,
  562. IRpcChannelBuffer *_pRpcChannelBuffer,
  563. PRPC_MESSAGE _pRpcMessage,
  564. DWORD *_pdwStubPhase);
  565. HRESULT STDMETHODCALLTYPE IScheduledWorkItem_GetRunTimes_Proxy(
  566. IScheduledWorkItem * This,
  567. /* [in] */ const LPSYSTEMTIME pstBegin,
  568. /* [in] */ const LPSYSTEMTIME pstEnd,
  569. /* [out][in] */ WORD *pCount,
  570. /* [out] */ LPSYSTEMTIME *rgstTaskTimes);
  571. void __RPC_STUB IScheduledWorkItem_GetRunTimes_Stub(
  572. IRpcStubBuffer *This,
  573. IRpcChannelBuffer *_pRpcChannelBuffer,
  574. PRPC_MESSAGE _pRpcMessage,
  575. DWORD *_pdwStubPhase);
  576. HRESULT STDMETHODCALLTYPE IScheduledWorkItem_GetNextRunTime_Proxy(
  577. IScheduledWorkItem * This,
  578. /* [out][in] */ SYSTEMTIME *pstNextRun);
  579. void __RPC_STUB IScheduledWorkItem_GetNextRunTime_Stub(
  580. IRpcStubBuffer *This,
  581. IRpcChannelBuffer *_pRpcChannelBuffer,
  582. PRPC_MESSAGE _pRpcMessage,
  583. DWORD *_pdwStubPhase);
  584. HRESULT STDMETHODCALLTYPE IScheduledWorkItem_SetIdleWait_Proxy(
  585. IScheduledWorkItem * This,
  586. /* [in] */ WORD wIdleMinutes,
  587. /* [in] */ WORD wDeadlineMinutes);
  588. void __RPC_STUB IScheduledWorkItem_SetIdleWait_Stub(
  589. IRpcStubBuffer *This,
  590. IRpcChannelBuffer *_pRpcChannelBuffer,
  591. PRPC_MESSAGE _pRpcMessage,
  592. DWORD *_pdwStubPhase);
  593. HRESULT STDMETHODCALLTYPE IScheduledWorkItem_GetIdleWait_Proxy(
  594. IScheduledWorkItem * This,
  595. /* [out] */ WORD *pwIdleMinutes,
  596. /* [out] */ WORD *pwDeadlineMinutes);
  597. void __RPC_STUB IScheduledWorkItem_GetIdleWait_Stub(
  598. IRpcStubBuffer *This,
  599. IRpcChannelBuffer *_pRpcChannelBuffer,
  600. PRPC_MESSAGE _pRpcMessage,
  601. DWORD *_pdwStubPhase);
  602. HRESULT STDMETHODCALLTYPE IScheduledWorkItem_Run_Proxy(
  603. IScheduledWorkItem * This);
  604. void __RPC_STUB IScheduledWorkItem_Run_Stub(
  605. IRpcStubBuffer *This,
  606. IRpcChannelBuffer *_pRpcChannelBuffer,
  607. PRPC_MESSAGE _pRpcMessage,
  608. DWORD *_pdwStubPhase);
  609. HRESULT STDMETHODCALLTYPE IScheduledWorkItem_Terminate_Proxy(
  610. IScheduledWorkItem * This);
  611. void __RPC_STUB IScheduledWorkItem_Terminate_Stub(
  612. IRpcStubBuffer *This,
  613. IRpcChannelBuffer *_pRpcChannelBuffer,
  614. PRPC_MESSAGE _pRpcMessage,
  615. DWORD *_pdwStubPhase);
  616. HRESULT STDMETHODCALLTYPE IScheduledWorkItem_EditWorkItem_Proxy(
  617. IScheduledWorkItem * This,
  618. /* [in] */ HWND hParent,
  619. /* [in] */ DWORD dwReserved);
  620. void __RPC_STUB IScheduledWorkItem_EditWorkItem_Stub(
  621. IRpcStubBuffer *This,
  622. IRpcChannelBuffer *_pRpcChannelBuffer,
  623. PRPC_MESSAGE _pRpcMessage,
  624. DWORD *_pdwStubPhase);
  625. HRESULT STDMETHODCALLTYPE IScheduledWorkItem_GetMostRecentRunTime_Proxy(
  626. IScheduledWorkItem * This,
  627. /* [out] */ SYSTEMTIME *pstLastRun);
  628. void __RPC_STUB IScheduledWorkItem_GetMostRecentRunTime_Stub(
  629. IRpcStubBuffer *This,
  630. IRpcChannelBuffer *_pRpcChannelBuffer,
  631. PRPC_MESSAGE _pRpcMessage,
  632. DWORD *_pdwStubPhase);
  633. HRESULT STDMETHODCALLTYPE IScheduledWorkItem_GetStatus_Proxy(
  634. IScheduledWorkItem * This,
  635. /* [out] */ HRESULT *phrStatus);
  636. void __RPC_STUB IScheduledWorkItem_GetStatus_Stub(
  637. IRpcStubBuffer *This,
  638. IRpcChannelBuffer *_pRpcChannelBuffer,
  639. PRPC_MESSAGE _pRpcMessage,
  640. DWORD *_pdwStubPhase);
  641. HRESULT STDMETHODCALLTYPE IScheduledWorkItem_GetExitCode_Proxy(
  642. IScheduledWorkItem * This,
  643. /* [out] */ DWORD *pdwExitCode);
  644. void __RPC_STUB IScheduledWorkItem_GetExitCode_Stub(
  645. IRpcStubBuffer *This,
  646. IRpcChannelBuffer *_pRpcChannelBuffer,
  647. PRPC_MESSAGE _pRpcMessage,
  648. DWORD *_pdwStubPhase);
  649. HRESULT STDMETHODCALLTYPE IScheduledWorkItem_SetComment_Proxy(
  650. IScheduledWorkItem * This,
  651. /* [in] */ LPCWSTR pwszComment);
  652. void __RPC_STUB IScheduledWorkItem_SetComment_Stub(
  653. IRpcStubBuffer *This,
  654. IRpcChannelBuffer *_pRpcChannelBuffer,
  655. PRPC_MESSAGE _pRpcMessage,
  656. DWORD *_pdwStubPhase);
  657. HRESULT STDMETHODCALLTYPE IScheduledWorkItem_GetComment_Proxy(
  658. IScheduledWorkItem * This,
  659. /* [out] */ LPWSTR *ppwszComment);
  660. void __RPC_STUB IScheduledWorkItem_GetComment_Stub(
  661. IRpcStubBuffer *This,
  662. IRpcChannelBuffer *_pRpcChannelBuffer,
  663. PRPC_MESSAGE _pRpcMessage,
  664. DWORD *_pdwStubPhase);
  665. HRESULT STDMETHODCALLTYPE IScheduledWorkItem_SetCreator_Proxy(
  666. IScheduledWorkItem * This,
  667. /* [in] */ LPCWSTR pwszCreator);
  668. void __RPC_STUB IScheduledWorkItem_SetCreator_Stub(
  669. IRpcStubBuffer *This,
  670. IRpcChannelBuffer *_pRpcChannelBuffer,
  671. PRPC_MESSAGE _pRpcMessage,
  672. DWORD *_pdwStubPhase);
  673. HRESULT STDMETHODCALLTYPE IScheduledWorkItem_GetCreator_Proxy(
  674. IScheduledWorkItem * This,
  675. /* [out] */ LPWSTR *ppwszCreator);
  676. void __RPC_STUB IScheduledWorkItem_GetCreator_Stub(
  677. IRpcStubBuffer *This,
  678. IRpcChannelBuffer *_pRpcChannelBuffer,
  679. PRPC_MESSAGE _pRpcMessage,
  680. DWORD *_pdwStubPhase);
  681. HRESULT STDMETHODCALLTYPE IScheduledWorkItem_SetWorkItemData_Proxy(
  682. IScheduledWorkItem * This,
  683. /* [in] */ WORD cbData,
  684. /* [in] */ BYTE rgbData[ ]);
  685. void __RPC_STUB IScheduledWorkItem_SetWorkItemData_Stub(
  686. IRpcStubBuffer *This,
  687. IRpcChannelBuffer *_pRpcChannelBuffer,
  688. PRPC_MESSAGE _pRpcMessage,
  689. DWORD *_pdwStubPhase);
  690. HRESULT STDMETHODCALLTYPE IScheduledWorkItem_GetWorkItemData_Proxy(
  691. IScheduledWorkItem * This,
  692. /* [out] */ WORD *pcbData,
  693. /* [out] */ BYTE **prgbData);
  694. void __RPC_STUB IScheduledWorkItem_GetWorkItemData_Stub(
  695. IRpcStubBuffer *This,
  696. IRpcChannelBuffer *_pRpcChannelBuffer,
  697. PRPC_MESSAGE _pRpcMessage,
  698. DWORD *_pdwStubPhase);
  699. HRESULT STDMETHODCALLTYPE IScheduledWorkItem_SetErrorRetryCount_Proxy(
  700. IScheduledWorkItem * This,
  701. /* [in] */ WORD wRetryCount);
  702. void __RPC_STUB IScheduledWorkItem_SetErrorRetryCount_Stub(
  703. IRpcStubBuffer *This,
  704. IRpcChannelBuffer *_pRpcChannelBuffer,
  705. PRPC_MESSAGE _pRpcMessage,
  706. DWORD *_pdwStubPhase);
  707. HRESULT STDMETHODCALLTYPE IScheduledWorkItem_GetErrorRetryCount_Proxy(
  708. IScheduledWorkItem * This,
  709. /* [out] */ WORD *pwRetryCount);
  710. void __RPC_STUB IScheduledWorkItem_GetErrorRetryCount_Stub(
  711. IRpcStubBuffer *This,
  712. IRpcChannelBuffer *_pRpcChannelBuffer,
  713. PRPC_MESSAGE _pRpcMessage,
  714. DWORD *_pdwStubPhase);
  715. HRESULT STDMETHODCALLTYPE IScheduledWorkItem_SetErrorRetryInterval_Proxy(
  716. IScheduledWorkItem * This,
  717. /* [in] */ WORD wRetryInterval);
  718. void __RPC_STUB IScheduledWorkItem_SetErrorRetryInterval_Stub(
  719. IRpcStubBuffer *This,
  720. IRpcChannelBuffer *_pRpcChannelBuffer,
  721. PRPC_MESSAGE _pRpcMessage,
  722. DWORD *_pdwStubPhase);
  723. HRESULT STDMETHODCALLTYPE IScheduledWorkItem_GetErrorRetryInterval_Proxy(
  724. IScheduledWorkItem * This,
  725. /* [out] */ WORD *pwRetryInterval);
  726. void __RPC_STUB IScheduledWorkItem_GetErrorRetryInterval_Stub(
  727. IRpcStubBuffer *This,
  728. IRpcChannelBuffer *_pRpcChannelBuffer,
  729. PRPC_MESSAGE _pRpcMessage,
  730. DWORD *_pdwStubPhase);
  731. HRESULT STDMETHODCALLTYPE IScheduledWorkItem_SetFlags_Proxy(
  732. IScheduledWorkItem * This,
  733. /* [in] */ DWORD dwFlags);
  734. void __RPC_STUB IScheduledWorkItem_SetFlags_Stub(
  735. IRpcStubBuffer *This,
  736. IRpcChannelBuffer *_pRpcChannelBuffer,
  737. PRPC_MESSAGE _pRpcMessage,
  738. DWORD *_pdwStubPhase);
  739. HRESULT STDMETHODCALLTYPE IScheduledWorkItem_GetFlags_Proxy(
  740. IScheduledWorkItem * This,
  741. /* [out] */ DWORD *pdwFlags);
  742. void __RPC_STUB IScheduledWorkItem_GetFlags_Stub(
  743. IRpcStubBuffer *This,
  744. IRpcChannelBuffer *_pRpcChannelBuffer,
  745. PRPC_MESSAGE _pRpcMessage,
  746. DWORD *_pdwStubPhase);
  747. HRESULT STDMETHODCALLTYPE IScheduledWorkItem_SetAccountInformation_Proxy(
  748. IScheduledWorkItem * This,
  749. /* [in] */ LPCWSTR pwszAccountName,
  750. /* [in] */ LPCWSTR pwszPassword);
  751. void __RPC_STUB IScheduledWorkItem_SetAccountInformation_Stub(
  752. IRpcStubBuffer *This,
  753. IRpcChannelBuffer *_pRpcChannelBuffer,
  754. PRPC_MESSAGE _pRpcMessage,
  755. DWORD *_pdwStubPhase);
  756. HRESULT STDMETHODCALLTYPE IScheduledWorkItem_GetAccountInformation_Proxy(
  757. IScheduledWorkItem * This,
  758. /* [out] */ LPWSTR *ppwszAccountName);
  759. void __RPC_STUB IScheduledWorkItem_GetAccountInformation_Stub(
  760. IRpcStubBuffer *This,
  761. IRpcChannelBuffer *_pRpcChannelBuffer,
  762. PRPC_MESSAGE _pRpcMessage,
  763. DWORD *_pdwStubPhase);
  764. #endif /* __IScheduledWorkItem_INTERFACE_DEFINED__ */
  765. /* interface __MIDL_itf_mstask_0141 */
  766. /* [local] */
  767. // {148BD524-A2AB-11CE-B11F-00AA00530503}
  768. DEFINE_GUID(IID_ITask, 0x148BD524L, 0xA2AB, 0x11CE, 0xB1, 0x1F, 0x00, 0xAA, 0x00, 0x53, 0x05, 0x03);
  769. extern RPC_IF_HANDLE __MIDL_itf_mstask_0141_v0_0_c_ifspec;
  770. extern RPC_IF_HANDLE __MIDL_itf_mstask_0141_v0_0_s_ifspec;
  771. #ifndef __ITask_INTERFACE_DEFINED__
  772. #define __ITask_INTERFACE_DEFINED__
  773. /* interface ITask */
  774. /* [unique][uuid][object][local] */
  775. EXTERN_C const IID IID_ITask;
  776. #if defined(__cplusplus) && !defined(CINTERFACE)
  777. MIDL_INTERFACE("148BD524-A2AB-11CE-B11F-00AA00530503")
  778. ITask : public IScheduledWorkItem
  779. {
  780. public:
  781. virtual HRESULT STDMETHODCALLTYPE SetApplicationName(
  782. /* [in] */ LPCWSTR pwszApplicationName) = 0;
  783. virtual HRESULT STDMETHODCALLTYPE GetApplicationName(
  784. /* [out] */ LPWSTR *ppwszApplicationName) = 0;
  785. virtual HRESULT STDMETHODCALLTYPE SetParameters(
  786. /* [in] */ LPCWSTR pwszParameters) = 0;
  787. virtual HRESULT STDMETHODCALLTYPE GetParameters(
  788. /* [out] */ LPWSTR *ppwszParameters) = 0;
  789. virtual HRESULT STDMETHODCALLTYPE SetWorkingDirectory(
  790. /* [in] */ LPCWSTR pwszWorkingDirectory) = 0;
  791. virtual HRESULT STDMETHODCALLTYPE GetWorkingDirectory(
  792. /* [out] */ LPWSTR *ppwszWorkingDirectory) = 0;
  793. virtual HRESULT STDMETHODCALLTYPE SetPriority(
  794. /* [in] */ DWORD dwPriority) = 0;
  795. virtual HRESULT STDMETHODCALLTYPE GetPriority(
  796. /* [out] */ DWORD *pdwPriority) = 0;
  797. virtual HRESULT STDMETHODCALLTYPE SetTaskFlags(
  798. /* [in] */ DWORD dwFlags) = 0;
  799. virtual HRESULT STDMETHODCALLTYPE GetTaskFlags(
  800. /* [out] */ DWORD *pdwFlags) = 0;
  801. virtual HRESULT STDMETHODCALLTYPE SetMaxRunTime(
  802. /* [in] */ DWORD dwMaxRunTimeMS) = 0;
  803. virtual HRESULT STDMETHODCALLTYPE GetMaxRunTime(
  804. /* [out] */ DWORD *pdwMaxRunTimeMS) = 0;
  805. };
  806. #else /* C style interface */
  807. typedef struct ITaskVtbl
  808. {
  809. BEGIN_INTERFACE
  810. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  811. ITask * This,
  812. /* [in] */ REFIID riid,
  813. /* [iid_is][out] */ void **ppvObject);
  814. ULONG ( STDMETHODCALLTYPE *AddRef )(
  815. ITask * This);
  816. ULONG ( STDMETHODCALLTYPE *Release )(
  817. ITask * This);
  818. HRESULT ( STDMETHODCALLTYPE *CreateTrigger )(
  819. ITask * This,
  820. /* [out] */ WORD *piNewTrigger,
  821. /* [out] */ ITaskTrigger **ppTrigger);
  822. HRESULT ( STDMETHODCALLTYPE *DeleteTrigger )(
  823. ITask * This,
  824. /* [in] */ WORD iTrigger);
  825. HRESULT ( STDMETHODCALLTYPE *GetTriggerCount )(
  826. ITask * This,
  827. /* [out] */ WORD *pwCount);
  828. HRESULT ( STDMETHODCALLTYPE *GetTrigger )(
  829. ITask * This,
  830. /* [in] */ WORD iTrigger,
  831. /* [out] */ ITaskTrigger **ppTrigger);
  832. HRESULT ( STDMETHODCALLTYPE *GetTriggerString )(
  833. ITask * This,
  834. /* [in] */ WORD iTrigger,
  835. /* [out] */ LPWSTR *ppwszTrigger);
  836. HRESULT ( STDMETHODCALLTYPE *GetRunTimes )(
  837. ITask * This,
  838. /* [in] */ const LPSYSTEMTIME pstBegin,
  839. /* [in] */ const LPSYSTEMTIME pstEnd,
  840. /* [out][in] */ WORD *pCount,
  841. /* [out] */ LPSYSTEMTIME *rgstTaskTimes);
  842. HRESULT ( STDMETHODCALLTYPE *GetNextRunTime )(
  843. ITask * This,
  844. /* [out][in] */ SYSTEMTIME *pstNextRun);
  845. HRESULT ( STDMETHODCALLTYPE *SetIdleWait )(
  846. ITask * This,
  847. /* [in] */ WORD wIdleMinutes,
  848. /* [in] */ WORD wDeadlineMinutes);
  849. HRESULT ( STDMETHODCALLTYPE *GetIdleWait )(
  850. ITask * This,
  851. /* [out] */ WORD *pwIdleMinutes,
  852. /* [out] */ WORD *pwDeadlineMinutes);
  853. HRESULT ( STDMETHODCALLTYPE *Run )(
  854. ITask * This);
  855. HRESULT ( STDMETHODCALLTYPE *Terminate )(
  856. ITask * This);
  857. HRESULT ( STDMETHODCALLTYPE *EditWorkItem )(
  858. ITask * This,
  859. /* [in] */ HWND hParent,
  860. /* [in] */ DWORD dwReserved);
  861. HRESULT ( STDMETHODCALLTYPE *GetMostRecentRunTime )(
  862. ITask * This,
  863. /* [out] */ SYSTEMTIME *pstLastRun);
  864. HRESULT ( STDMETHODCALLTYPE *GetStatus )(
  865. ITask * This,
  866. /* [out] */ HRESULT *phrStatus);
  867. HRESULT ( STDMETHODCALLTYPE *GetExitCode )(
  868. ITask * This,
  869. /* [out] */ DWORD *pdwExitCode);
  870. HRESULT ( STDMETHODCALLTYPE *SetComment )(
  871. ITask * This,
  872. /* [in] */ LPCWSTR pwszComment);
  873. HRESULT ( STDMETHODCALLTYPE *GetComment )(
  874. ITask * This,
  875. /* [out] */ LPWSTR *ppwszComment);
  876. HRESULT ( STDMETHODCALLTYPE *SetCreator )(
  877. ITask * This,
  878. /* [in] */ LPCWSTR pwszCreator);
  879. HRESULT ( STDMETHODCALLTYPE *GetCreator )(
  880. ITask * This,
  881. /* [out] */ LPWSTR *ppwszCreator);
  882. HRESULT ( STDMETHODCALLTYPE *SetWorkItemData )(
  883. ITask * This,
  884. /* [in] */ WORD cbData,
  885. /* [in] */ BYTE rgbData[ ]);
  886. HRESULT ( STDMETHODCALLTYPE *GetWorkItemData )(
  887. ITask * This,
  888. /* [out] */ WORD *pcbData,
  889. /* [out] */ BYTE **prgbData);
  890. HRESULT ( STDMETHODCALLTYPE *SetErrorRetryCount )(
  891. ITask * This,
  892. /* [in] */ WORD wRetryCount);
  893. HRESULT ( STDMETHODCALLTYPE *GetErrorRetryCount )(
  894. ITask * This,
  895. /* [out] */ WORD *pwRetryCount);
  896. HRESULT ( STDMETHODCALLTYPE *SetErrorRetryInterval )(
  897. ITask * This,
  898. /* [in] */ WORD wRetryInterval);
  899. HRESULT ( STDMETHODCALLTYPE *GetErrorRetryInterval )(
  900. ITask * This,
  901. /* [out] */ WORD *pwRetryInterval);
  902. HRESULT ( STDMETHODCALLTYPE *SetFlags )(
  903. ITask * This,
  904. /* [in] */ DWORD dwFlags);
  905. HRESULT ( STDMETHODCALLTYPE *GetFlags )(
  906. ITask * This,
  907. /* [out] */ DWORD *pdwFlags);
  908. HRESULT ( STDMETHODCALLTYPE *SetAccountInformation )(
  909. ITask * This,
  910. /* [in] */ LPCWSTR pwszAccountName,
  911. /* [in] */ LPCWSTR pwszPassword);
  912. HRESULT ( STDMETHODCALLTYPE *GetAccountInformation )(
  913. ITask * This,
  914. /* [out] */ LPWSTR *ppwszAccountName);
  915. HRESULT ( STDMETHODCALLTYPE *SetApplicationName )(
  916. ITask * This,
  917. /* [in] */ LPCWSTR pwszApplicationName);
  918. HRESULT ( STDMETHODCALLTYPE *GetApplicationName )(
  919. ITask * This,
  920. /* [out] */ LPWSTR *ppwszApplicationName);
  921. HRESULT ( STDMETHODCALLTYPE *SetParameters )(
  922. ITask * This,
  923. /* [in] */ LPCWSTR pwszParameters);
  924. HRESULT ( STDMETHODCALLTYPE *GetParameters )(
  925. ITask * This,
  926. /* [out] */ LPWSTR *ppwszParameters);
  927. HRESULT ( STDMETHODCALLTYPE *SetWorkingDirectory )(
  928. ITask * This,
  929. /* [in] */ LPCWSTR pwszWorkingDirectory);
  930. HRESULT ( STDMETHODCALLTYPE *GetWorkingDirectory )(
  931. ITask * This,
  932. /* [out] */ LPWSTR *ppwszWorkingDirectory);
  933. HRESULT ( STDMETHODCALLTYPE *SetPriority )(
  934. ITask * This,
  935. /* [in] */ DWORD dwPriority);
  936. HRESULT ( STDMETHODCALLTYPE *GetPriority )(
  937. ITask * This,
  938. /* [out] */ DWORD *pdwPriority);
  939. HRESULT ( STDMETHODCALLTYPE *SetTaskFlags )(
  940. ITask * This,
  941. /* [in] */ DWORD dwFlags);
  942. HRESULT ( STDMETHODCALLTYPE *GetTaskFlags )(
  943. ITask * This,
  944. /* [out] */ DWORD *pdwFlags);
  945. HRESULT ( STDMETHODCALLTYPE *SetMaxRunTime )(
  946. ITask * This,
  947. /* [in] */ DWORD dwMaxRunTimeMS);
  948. HRESULT ( STDMETHODCALLTYPE *GetMaxRunTime )(
  949. ITask * This,
  950. /* [out] */ DWORD *pdwMaxRunTimeMS);
  951. END_INTERFACE
  952. } ITaskVtbl;
  953. interface ITask
  954. {
  955. CONST_VTBL struct ITaskVtbl *lpVtbl;
  956. };
  957. #ifdef COBJMACROS
  958. #define ITask_QueryInterface(This,riid,ppvObject) \
  959. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  960. #define ITask_AddRef(This) \
  961. (This)->lpVtbl -> AddRef(This)
  962. #define ITask_Release(This) \
  963. (This)->lpVtbl -> Release(This)
  964. #define ITask_CreateTrigger(This,piNewTrigger,ppTrigger) \
  965. (This)->lpVtbl -> CreateTrigger(This,piNewTrigger,ppTrigger)
  966. #define ITask_DeleteTrigger(This,iTrigger) \
  967. (This)->lpVtbl -> DeleteTrigger(This,iTrigger)
  968. #define ITask_GetTriggerCount(This,pwCount) \
  969. (This)->lpVtbl -> GetTriggerCount(This,pwCount)
  970. #define ITask_GetTrigger(This,iTrigger,ppTrigger) \
  971. (This)->lpVtbl -> GetTrigger(This,iTrigger,ppTrigger)
  972. #define ITask_GetTriggerString(This,iTrigger,ppwszTrigger) \
  973. (This)->lpVtbl -> GetTriggerString(This,iTrigger,ppwszTrigger)
  974. #define ITask_GetRunTimes(This,pstBegin,pstEnd,pCount,rgstTaskTimes) \
  975. (This)->lpVtbl -> GetRunTimes(This,pstBegin,pstEnd,pCount,rgstTaskTimes)
  976. #define ITask_GetNextRunTime(This,pstNextRun) \
  977. (This)->lpVtbl -> GetNextRunTime(This,pstNextRun)
  978. #define ITask_SetIdleWait(This,wIdleMinutes,wDeadlineMinutes) \
  979. (This)->lpVtbl -> SetIdleWait(This,wIdleMinutes,wDeadlineMinutes)
  980. #define ITask_GetIdleWait(This,pwIdleMinutes,pwDeadlineMinutes) \
  981. (This)->lpVtbl -> GetIdleWait(This,pwIdleMinutes,pwDeadlineMinutes)
  982. #define ITask_Run(This) \
  983. (This)->lpVtbl -> Run(This)
  984. #define ITask_Terminate(This) \
  985. (This)->lpVtbl -> Terminate(This)
  986. #define ITask_EditWorkItem(This,hParent,dwReserved) \
  987. (This)->lpVtbl -> EditWorkItem(This,hParent,dwReserved)
  988. #define ITask_GetMostRecentRunTime(This,pstLastRun) \
  989. (This)->lpVtbl -> GetMostRecentRunTime(This,pstLastRun)
  990. #define ITask_GetStatus(This,phrStatus) \
  991. (This)->lpVtbl -> GetStatus(This,phrStatus)
  992. #define ITask_GetExitCode(This,pdwExitCode) \
  993. (This)->lpVtbl -> GetExitCode(This,pdwExitCode)
  994. #define ITask_SetComment(This,pwszComment) \
  995. (This)->lpVtbl -> SetComment(This,pwszComment)
  996. #define ITask_GetComment(This,ppwszComment) \
  997. (This)->lpVtbl -> GetComment(This,ppwszComment)
  998. #define ITask_SetCreator(This,pwszCreator) \
  999. (This)->lpVtbl -> SetCreator(This,pwszCreator)
  1000. #define ITask_GetCreator(This,ppwszCreator) \
  1001. (This)->lpVtbl -> GetCreator(This,ppwszCreator)
  1002. #define ITask_SetWorkItemData(This,cbData,rgbData) \
  1003. (This)->lpVtbl -> SetWorkItemData(This,cbData,rgbData)
  1004. #define ITask_GetWorkItemData(This,pcbData,prgbData) \
  1005. (This)->lpVtbl -> GetWorkItemData(This,pcbData,prgbData)
  1006. #define ITask_SetErrorRetryCount(This,wRetryCount) \
  1007. (This)->lpVtbl -> SetErrorRetryCount(This,wRetryCount)
  1008. #define ITask_GetErrorRetryCount(This,pwRetryCount) \
  1009. (This)->lpVtbl -> GetErrorRetryCount(This,pwRetryCount)
  1010. #define ITask_SetErrorRetryInterval(This,wRetryInterval) \
  1011. (This)->lpVtbl -> SetErrorRetryInterval(This,wRetryInterval)
  1012. #define ITask_GetErrorRetryInterval(This,pwRetryInterval) \
  1013. (This)->lpVtbl -> GetErrorRetryInterval(This,pwRetryInterval)
  1014. #define ITask_SetFlags(This,dwFlags) \
  1015. (This)->lpVtbl -> SetFlags(This,dwFlags)
  1016. #define ITask_GetFlags(This,pdwFlags) \
  1017. (This)->lpVtbl -> GetFlags(This,pdwFlags)
  1018. #define ITask_SetAccountInformation(This,pwszAccountName,pwszPassword) \
  1019. (This)->lpVtbl -> SetAccountInformation(This,pwszAccountName,pwszPassword)
  1020. #define ITask_GetAccountInformation(This,ppwszAccountName) \
  1021. (This)->lpVtbl -> GetAccountInformation(This,ppwszAccountName)
  1022. #define ITask_SetApplicationName(This,pwszApplicationName) \
  1023. (This)->lpVtbl -> SetApplicationName(This,pwszApplicationName)
  1024. #define ITask_GetApplicationName(This,ppwszApplicationName) \
  1025. (This)->lpVtbl -> GetApplicationName(This,ppwszApplicationName)
  1026. #define ITask_SetParameters(This,pwszParameters) \
  1027. (This)->lpVtbl -> SetParameters(This,pwszParameters)
  1028. #define ITask_GetParameters(This,ppwszParameters) \
  1029. (This)->lpVtbl -> GetParameters(This,ppwszParameters)
  1030. #define ITask_SetWorkingDirectory(This,pwszWorkingDirectory) \
  1031. (This)->lpVtbl -> SetWorkingDirectory(This,pwszWorkingDirectory)
  1032. #define ITask_GetWorkingDirectory(This,ppwszWorkingDirectory) \
  1033. (This)->lpVtbl -> GetWorkingDirectory(This,ppwszWorkingDirectory)
  1034. #define ITask_SetPriority(This,dwPriority) \
  1035. (This)->lpVtbl -> SetPriority(This,dwPriority)
  1036. #define ITask_GetPriority(This,pdwPriority) \
  1037. (This)->lpVtbl -> GetPriority(This,pdwPriority)
  1038. #define ITask_SetTaskFlags(This,dwFlags) \
  1039. (This)->lpVtbl -> SetTaskFlags(This,dwFlags)
  1040. #define ITask_GetTaskFlags(This,pdwFlags) \
  1041. (This)->lpVtbl -> GetTaskFlags(This,pdwFlags)
  1042. #define ITask_SetMaxRunTime(This,dwMaxRunTimeMS) \
  1043. (This)->lpVtbl -> SetMaxRunTime(This,dwMaxRunTimeMS)
  1044. #define ITask_GetMaxRunTime(This,pdwMaxRunTimeMS) \
  1045. (This)->lpVtbl -> GetMaxRunTime(This,pdwMaxRunTimeMS)
  1046. #endif /* COBJMACROS */
  1047. #endif /* C style interface */
  1048. HRESULT STDMETHODCALLTYPE ITask_SetApplicationName_Proxy(
  1049. ITask * This,
  1050. /* [in] */ LPCWSTR pwszApplicationName);
  1051. void __RPC_STUB ITask_SetApplicationName_Stub(
  1052. IRpcStubBuffer *This,
  1053. IRpcChannelBuffer *_pRpcChannelBuffer,
  1054. PRPC_MESSAGE _pRpcMessage,
  1055. DWORD *_pdwStubPhase);
  1056. HRESULT STDMETHODCALLTYPE ITask_GetApplicationName_Proxy(
  1057. ITask * This,
  1058. /* [out] */ LPWSTR *ppwszApplicationName);
  1059. void __RPC_STUB ITask_GetApplicationName_Stub(
  1060. IRpcStubBuffer *This,
  1061. IRpcChannelBuffer *_pRpcChannelBuffer,
  1062. PRPC_MESSAGE _pRpcMessage,
  1063. DWORD *_pdwStubPhase);
  1064. HRESULT STDMETHODCALLTYPE ITask_SetParameters_Proxy(
  1065. ITask * This,
  1066. /* [in] */ LPCWSTR pwszParameters);
  1067. void __RPC_STUB ITask_SetParameters_Stub(
  1068. IRpcStubBuffer *This,
  1069. IRpcChannelBuffer *_pRpcChannelBuffer,
  1070. PRPC_MESSAGE _pRpcMessage,
  1071. DWORD *_pdwStubPhase);
  1072. HRESULT STDMETHODCALLTYPE ITask_GetParameters_Proxy(
  1073. ITask * This,
  1074. /* [out] */ LPWSTR *ppwszParameters);
  1075. void __RPC_STUB ITask_GetParameters_Stub(
  1076. IRpcStubBuffer *This,
  1077. IRpcChannelBuffer *_pRpcChannelBuffer,
  1078. PRPC_MESSAGE _pRpcMessage,
  1079. DWORD *_pdwStubPhase);
  1080. HRESULT STDMETHODCALLTYPE ITask_SetWorkingDirectory_Proxy(
  1081. ITask * This,
  1082. /* [in] */ LPCWSTR pwszWorkingDirectory);
  1083. void __RPC_STUB ITask_SetWorkingDirectory_Stub(
  1084. IRpcStubBuffer *This,
  1085. IRpcChannelBuffer *_pRpcChannelBuffer,
  1086. PRPC_MESSAGE _pRpcMessage,
  1087. DWORD *_pdwStubPhase);
  1088. HRESULT STDMETHODCALLTYPE ITask_GetWorkingDirectory_Proxy(
  1089. ITask * This,
  1090. /* [out] */ LPWSTR *ppwszWorkingDirectory);
  1091. void __RPC_STUB ITask_GetWorkingDirectory_Stub(
  1092. IRpcStubBuffer *This,
  1093. IRpcChannelBuffer *_pRpcChannelBuffer,
  1094. PRPC_MESSAGE _pRpcMessage,
  1095. DWORD *_pdwStubPhase);
  1096. HRESULT STDMETHODCALLTYPE ITask_SetPriority_Proxy(
  1097. ITask * This,
  1098. /* [in] */ DWORD dwPriority);
  1099. void __RPC_STUB ITask_SetPriority_Stub(
  1100. IRpcStubBuffer *This,
  1101. IRpcChannelBuffer *_pRpcChannelBuffer,
  1102. PRPC_MESSAGE _pRpcMessage,
  1103. DWORD *_pdwStubPhase);
  1104. HRESULT STDMETHODCALLTYPE ITask_GetPriority_Proxy(
  1105. ITask * This,
  1106. /* [out] */ DWORD *pdwPriority);
  1107. void __RPC_STUB ITask_GetPriority_Stub(
  1108. IRpcStubBuffer *This,
  1109. IRpcChannelBuffer *_pRpcChannelBuffer,
  1110. PRPC_MESSAGE _pRpcMessage,
  1111. DWORD *_pdwStubPhase);
  1112. HRESULT STDMETHODCALLTYPE ITask_SetTaskFlags_Proxy(
  1113. ITask * This,
  1114. /* [in] */ DWORD dwFlags);
  1115. void __RPC_STUB ITask_SetTaskFlags_Stub(
  1116. IRpcStubBuffer *This,
  1117. IRpcChannelBuffer *_pRpcChannelBuffer,
  1118. PRPC_MESSAGE _pRpcMessage,
  1119. DWORD *_pdwStubPhase);
  1120. HRESULT STDMETHODCALLTYPE ITask_GetTaskFlags_Proxy(
  1121. ITask * This,
  1122. /* [out] */ DWORD *pdwFlags);
  1123. void __RPC_STUB ITask_GetTaskFlags_Stub(
  1124. IRpcStubBuffer *This,
  1125. IRpcChannelBuffer *_pRpcChannelBuffer,
  1126. PRPC_MESSAGE _pRpcMessage,
  1127. DWORD *_pdwStubPhase);
  1128. HRESULT STDMETHODCALLTYPE ITask_SetMaxRunTime_Proxy(
  1129. ITask * This,
  1130. /* [in] */ DWORD dwMaxRunTimeMS);
  1131. void __RPC_STUB ITask_SetMaxRunTime_Stub(
  1132. IRpcStubBuffer *This,
  1133. IRpcChannelBuffer *_pRpcChannelBuffer,
  1134. PRPC_MESSAGE _pRpcMessage,
  1135. DWORD *_pdwStubPhase);
  1136. HRESULT STDMETHODCALLTYPE ITask_GetMaxRunTime_Proxy(
  1137. ITask * This,
  1138. /* [out] */ DWORD *pdwMaxRunTimeMS);
  1139. void __RPC_STUB ITask_GetMaxRunTime_Stub(
  1140. IRpcStubBuffer *This,
  1141. IRpcChannelBuffer *_pRpcChannelBuffer,
  1142. PRPC_MESSAGE _pRpcMessage,
  1143. DWORD *_pdwStubPhase);
  1144. #endif /* __ITask_INTERFACE_DEFINED__ */
  1145. /* interface __MIDL_itf_mstask_0142 */
  1146. /* [local] */
  1147. // {148BD528-A2AB-11CE-B11F-00AA00530503}
  1148. DEFINE_GUID(IID_IEnumWorkItems, 0x148BD528L, 0xA2AB, 0x11CE, 0xB1, 0x1F, 0x00, 0xAA, 0x00, 0x53, 0x05, 0x03);
  1149. extern RPC_IF_HANDLE __MIDL_itf_mstask_0142_v0_0_c_ifspec;
  1150. extern RPC_IF_HANDLE __MIDL_itf_mstask_0142_v0_0_s_ifspec;
  1151. #ifndef __IEnumWorkItems_INTERFACE_DEFINED__
  1152. #define __IEnumWorkItems_INTERFACE_DEFINED__
  1153. /* interface IEnumWorkItems */
  1154. /* [unique][uuid][object][local] */
  1155. EXTERN_C const IID IID_IEnumWorkItems;
  1156. #if defined(__cplusplus) && !defined(CINTERFACE)
  1157. MIDL_INTERFACE("148BD528-A2AB-11CE-B11F-00AA00530503")
  1158. IEnumWorkItems : public IUnknown
  1159. {
  1160. public:
  1161. virtual HRESULT STDMETHODCALLTYPE Next(
  1162. /* [in] */ ULONG celt,
  1163. /* [out] */ LPWSTR **rgpwszNames,
  1164. /* [out] */ ULONG *pceltFetched) = 0;
  1165. virtual HRESULT STDMETHODCALLTYPE Skip(
  1166. /* [in] */ ULONG celt) = 0;
  1167. virtual HRESULT STDMETHODCALLTYPE Reset( void) = 0;
  1168. virtual HRESULT STDMETHODCALLTYPE Clone(
  1169. /* [out] */ IEnumWorkItems **ppEnumWorkItems) = 0;
  1170. };
  1171. #else /* C style interface */
  1172. typedef struct IEnumWorkItemsVtbl
  1173. {
  1174. BEGIN_INTERFACE
  1175. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  1176. IEnumWorkItems * This,
  1177. /* [in] */ REFIID riid,
  1178. /* [iid_is][out] */ void **ppvObject);
  1179. ULONG ( STDMETHODCALLTYPE *AddRef )(
  1180. IEnumWorkItems * This);
  1181. ULONG ( STDMETHODCALLTYPE *Release )(
  1182. IEnumWorkItems * This);
  1183. HRESULT ( STDMETHODCALLTYPE *Next )(
  1184. IEnumWorkItems * This,
  1185. /* [in] */ ULONG celt,
  1186. /* [out] */ LPWSTR **rgpwszNames,
  1187. /* [out] */ ULONG *pceltFetched);
  1188. HRESULT ( STDMETHODCALLTYPE *Skip )(
  1189. IEnumWorkItems * This,
  1190. /* [in] */ ULONG celt);
  1191. HRESULT ( STDMETHODCALLTYPE *Reset )(
  1192. IEnumWorkItems * This);
  1193. HRESULT ( STDMETHODCALLTYPE *Clone )(
  1194. IEnumWorkItems * This,
  1195. /* [out] */ IEnumWorkItems **ppEnumWorkItems);
  1196. END_INTERFACE
  1197. } IEnumWorkItemsVtbl;
  1198. interface IEnumWorkItems
  1199. {
  1200. CONST_VTBL struct IEnumWorkItemsVtbl *lpVtbl;
  1201. };
  1202. #ifdef COBJMACROS
  1203. #define IEnumWorkItems_QueryInterface(This,riid,ppvObject) \
  1204. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  1205. #define IEnumWorkItems_AddRef(This) \
  1206. (This)->lpVtbl -> AddRef(This)
  1207. #define IEnumWorkItems_Release(This) \
  1208. (This)->lpVtbl -> Release(This)
  1209. #define IEnumWorkItems_Next(This,celt,rgpwszNames,pceltFetched) \
  1210. (This)->lpVtbl -> Next(This,celt,rgpwszNames,pceltFetched)
  1211. #define IEnumWorkItems_Skip(This,celt) \
  1212. (This)->lpVtbl -> Skip(This,celt)
  1213. #define IEnumWorkItems_Reset(This) \
  1214. (This)->lpVtbl -> Reset(This)
  1215. #define IEnumWorkItems_Clone(This,ppEnumWorkItems) \
  1216. (This)->lpVtbl -> Clone(This,ppEnumWorkItems)
  1217. #endif /* COBJMACROS */
  1218. #endif /* C style interface */
  1219. HRESULT STDMETHODCALLTYPE IEnumWorkItems_Next_Proxy(
  1220. IEnumWorkItems * This,
  1221. /* [in] */ ULONG celt,
  1222. /* [out] */ LPWSTR **rgpwszNames,
  1223. /* [out] */ ULONG *pceltFetched);
  1224. void __RPC_STUB IEnumWorkItems_Next_Stub(
  1225. IRpcStubBuffer *This,
  1226. IRpcChannelBuffer *_pRpcChannelBuffer,
  1227. PRPC_MESSAGE _pRpcMessage,
  1228. DWORD *_pdwStubPhase);
  1229. HRESULT STDMETHODCALLTYPE IEnumWorkItems_Skip_Proxy(
  1230. IEnumWorkItems * This,
  1231. /* [in] */ ULONG celt);
  1232. void __RPC_STUB IEnumWorkItems_Skip_Stub(
  1233. IRpcStubBuffer *This,
  1234. IRpcChannelBuffer *_pRpcChannelBuffer,
  1235. PRPC_MESSAGE _pRpcMessage,
  1236. DWORD *_pdwStubPhase);
  1237. HRESULT STDMETHODCALLTYPE IEnumWorkItems_Reset_Proxy(
  1238. IEnumWorkItems * This);
  1239. void __RPC_STUB IEnumWorkItems_Reset_Stub(
  1240. IRpcStubBuffer *This,
  1241. IRpcChannelBuffer *_pRpcChannelBuffer,
  1242. PRPC_MESSAGE _pRpcMessage,
  1243. DWORD *_pdwStubPhase);
  1244. HRESULT STDMETHODCALLTYPE IEnumWorkItems_Clone_Proxy(
  1245. IEnumWorkItems * This,
  1246. /* [out] */ IEnumWorkItems **ppEnumWorkItems);
  1247. void __RPC_STUB IEnumWorkItems_Clone_Stub(
  1248. IRpcStubBuffer *This,
  1249. IRpcChannelBuffer *_pRpcChannelBuffer,
  1250. PRPC_MESSAGE _pRpcMessage,
  1251. DWORD *_pdwStubPhase);
  1252. #endif /* __IEnumWorkItems_INTERFACE_DEFINED__ */
  1253. /* interface __MIDL_itf_mstask_0143 */
  1254. /* [local] */
  1255. // {148BD527-A2AB-11CE-B11F-00AA00530503}
  1256. DEFINE_GUID(IID_ITaskScheduler, 0x148BD527L, 0xA2AB, 0x11CE, 0xB1, 0x1F, 0x00, 0xAA, 0x00, 0x53, 0x05, 0x03);
  1257. extern RPC_IF_HANDLE __MIDL_itf_mstask_0143_v0_0_c_ifspec;
  1258. extern RPC_IF_HANDLE __MIDL_itf_mstask_0143_v0_0_s_ifspec;
  1259. #ifndef __ITaskScheduler_INTERFACE_DEFINED__
  1260. #define __ITaskScheduler_INTERFACE_DEFINED__
  1261. /* interface ITaskScheduler */
  1262. /* [unique][uuid][object][local] */
  1263. EXTERN_C const IID IID_ITaskScheduler;
  1264. #if defined(__cplusplus) && !defined(CINTERFACE)
  1265. MIDL_INTERFACE("148BD527-A2AB-11CE-B11F-00AA00530503")
  1266. ITaskScheduler : public IUnknown
  1267. {
  1268. public:
  1269. virtual HRESULT STDMETHODCALLTYPE SetTargetComputer(
  1270. /* [in] */ LPCWSTR pwszComputer) = 0;
  1271. virtual HRESULT STDMETHODCALLTYPE GetTargetComputer(
  1272. /* [out] */ LPWSTR *ppwszComputer) = 0;
  1273. virtual HRESULT STDMETHODCALLTYPE Enum(
  1274. /* [out] */ IEnumWorkItems **ppEnumWorkItems) = 0;
  1275. virtual HRESULT STDMETHODCALLTYPE Activate(
  1276. /* [in] */ LPCWSTR pwszName,
  1277. /* [in] */ REFIID riid,
  1278. /* [out] */ IUnknown **ppUnk) = 0;
  1279. virtual HRESULT STDMETHODCALLTYPE Delete(
  1280. /* [in] */ LPCWSTR pwszName) = 0;
  1281. virtual HRESULT STDMETHODCALLTYPE NewWorkItem(
  1282. /* [in] */ LPCWSTR pwszTaskName,
  1283. /* [in] */ REFCLSID rclsid,
  1284. /* [in] */ REFIID riid,
  1285. /* [out] */ IUnknown **ppUnk) = 0;
  1286. virtual HRESULT STDMETHODCALLTYPE AddWorkItem(
  1287. /* [in] */ LPCWSTR pwszTaskName,
  1288. /* [in] */ IScheduledWorkItem *pWorkItem) = 0;
  1289. virtual HRESULT STDMETHODCALLTYPE IsOfType(
  1290. /* [in] */ LPCWSTR pwszName,
  1291. /* [in] */ REFIID riid) = 0;
  1292. };
  1293. #else /* C style interface */
  1294. typedef struct ITaskSchedulerVtbl
  1295. {
  1296. BEGIN_INTERFACE
  1297. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  1298. ITaskScheduler * This,
  1299. /* [in] */ REFIID riid,
  1300. /* [iid_is][out] */ void **ppvObject);
  1301. ULONG ( STDMETHODCALLTYPE *AddRef )(
  1302. ITaskScheduler * This);
  1303. ULONG ( STDMETHODCALLTYPE *Release )(
  1304. ITaskScheduler * This);
  1305. HRESULT ( STDMETHODCALLTYPE *SetTargetComputer )(
  1306. ITaskScheduler * This,
  1307. /* [in] */ LPCWSTR pwszComputer);
  1308. HRESULT ( STDMETHODCALLTYPE *GetTargetComputer )(
  1309. ITaskScheduler * This,
  1310. /* [out] */ LPWSTR *ppwszComputer);
  1311. HRESULT ( STDMETHODCALLTYPE *Enum )(
  1312. ITaskScheduler * This,
  1313. /* [out] */ IEnumWorkItems **ppEnumWorkItems);
  1314. HRESULT ( STDMETHODCALLTYPE *Activate )(
  1315. ITaskScheduler * This,
  1316. /* [in] */ LPCWSTR pwszName,
  1317. /* [in] */ REFIID riid,
  1318. /* [out] */ IUnknown **ppUnk);
  1319. HRESULT ( STDMETHODCALLTYPE *Delete )(
  1320. ITaskScheduler * This,
  1321. /* [in] */ LPCWSTR pwszName);
  1322. HRESULT ( STDMETHODCALLTYPE *NewWorkItem )(
  1323. ITaskScheduler * This,
  1324. /* [in] */ LPCWSTR pwszTaskName,
  1325. /* [in] */ REFCLSID rclsid,
  1326. /* [in] */ REFIID riid,
  1327. /* [out] */ IUnknown **ppUnk);
  1328. HRESULT ( STDMETHODCALLTYPE *AddWorkItem )(
  1329. ITaskScheduler * This,
  1330. /* [in] */ LPCWSTR pwszTaskName,
  1331. /* [in] */ IScheduledWorkItem *pWorkItem);
  1332. HRESULT ( STDMETHODCALLTYPE *IsOfType )(
  1333. ITaskScheduler * This,
  1334. /* [in] */ LPCWSTR pwszName,
  1335. /* [in] */ REFIID riid);
  1336. END_INTERFACE
  1337. } ITaskSchedulerVtbl;
  1338. interface ITaskScheduler
  1339. {
  1340. CONST_VTBL struct ITaskSchedulerVtbl *lpVtbl;
  1341. };
  1342. #ifdef COBJMACROS
  1343. #define ITaskScheduler_QueryInterface(This,riid,ppvObject) \
  1344. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  1345. #define ITaskScheduler_AddRef(This) \
  1346. (This)->lpVtbl -> AddRef(This)
  1347. #define ITaskScheduler_Release(This) \
  1348. (This)->lpVtbl -> Release(This)
  1349. #define ITaskScheduler_SetTargetComputer(This,pwszComputer) \
  1350. (This)->lpVtbl -> SetTargetComputer(This,pwszComputer)
  1351. #define ITaskScheduler_GetTargetComputer(This,ppwszComputer) \
  1352. (This)->lpVtbl -> GetTargetComputer(This,ppwszComputer)
  1353. #define ITaskScheduler_Enum(This,ppEnumWorkItems) \
  1354. (This)->lpVtbl -> Enum(This,ppEnumWorkItems)
  1355. #define ITaskScheduler_Activate(This,pwszName,riid,ppUnk) \
  1356. (This)->lpVtbl -> Activate(This,pwszName,riid,ppUnk)
  1357. #define ITaskScheduler_Delete(This,pwszName) \
  1358. (This)->lpVtbl -> Delete(This,pwszName)
  1359. #define ITaskScheduler_NewWorkItem(This,pwszTaskName,rclsid,riid,ppUnk) \
  1360. (This)->lpVtbl -> NewWorkItem(This,pwszTaskName,rclsid,riid,ppUnk)
  1361. #define ITaskScheduler_AddWorkItem(This,pwszTaskName,pWorkItem) \
  1362. (This)->lpVtbl -> AddWorkItem(This,pwszTaskName,pWorkItem)
  1363. #define ITaskScheduler_IsOfType(This,pwszName,riid) \
  1364. (This)->lpVtbl -> IsOfType(This,pwszName,riid)
  1365. #endif /* COBJMACROS */
  1366. #endif /* C style interface */
  1367. HRESULT STDMETHODCALLTYPE ITaskScheduler_SetTargetComputer_Proxy(
  1368. ITaskScheduler * This,
  1369. /* [in] */ LPCWSTR pwszComputer);
  1370. void __RPC_STUB ITaskScheduler_SetTargetComputer_Stub(
  1371. IRpcStubBuffer *This,
  1372. IRpcChannelBuffer *_pRpcChannelBuffer,
  1373. PRPC_MESSAGE _pRpcMessage,
  1374. DWORD *_pdwStubPhase);
  1375. HRESULT STDMETHODCALLTYPE ITaskScheduler_GetTargetComputer_Proxy(
  1376. ITaskScheduler * This,
  1377. /* [out] */ LPWSTR *ppwszComputer);
  1378. void __RPC_STUB ITaskScheduler_GetTargetComputer_Stub(
  1379. IRpcStubBuffer *This,
  1380. IRpcChannelBuffer *_pRpcChannelBuffer,
  1381. PRPC_MESSAGE _pRpcMessage,
  1382. DWORD *_pdwStubPhase);
  1383. HRESULT STDMETHODCALLTYPE ITaskScheduler_Enum_Proxy(
  1384. ITaskScheduler * This,
  1385. /* [out] */ IEnumWorkItems **ppEnumWorkItems);
  1386. void __RPC_STUB ITaskScheduler_Enum_Stub(
  1387. IRpcStubBuffer *This,
  1388. IRpcChannelBuffer *_pRpcChannelBuffer,
  1389. PRPC_MESSAGE _pRpcMessage,
  1390. DWORD *_pdwStubPhase);
  1391. HRESULT STDMETHODCALLTYPE ITaskScheduler_Activate_Proxy(
  1392. ITaskScheduler * This,
  1393. /* [in] */ LPCWSTR pwszName,
  1394. /* [in] */ REFIID riid,
  1395. /* [out] */ IUnknown **ppUnk);
  1396. void __RPC_STUB ITaskScheduler_Activate_Stub(
  1397. IRpcStubBuffer *This,
  1398. IRpcChannelBuffer *_pRpcChannelBuffer,
  1399. PRPC_MESSAGE _pRpcMessage,
  1400. DWORD *_pdwStubPhase);
  1401. HRESULT STDMETHODCALLTYPE ITaskScheduler_Delete_Proxy(
  1402. ITaskScheduler * This,
  1403. /* [in] */ LPCWSTR pwszName);
  1404. void __RPC_STUB ITaskScheduler_Delete_Stub(
  1405. IRpcStubBuffer *This,
  1406. IRpcChannelBuffer *_pRpcChannelBuffer,
  1407. PRPC_MESSAGE _pRpcMessage,
  1408. DWORD *_pdwStubPhase);
  1409. HRESULT STDMETHODCALLTYPE ITaskScheduler_NewWorkItem_Proxy(
  1410. ITaskScheduler * This,
  1411. /* [in] */ LPCWSTR pwszTaskName,
  1412. /* [in] */ REFCLSID rclsid,
  1413. /* [in] */ REFIID riid,
  1414. /* [out] */ IUnknown **ppUnk);
  1415. void __RPC_STUB ITaskScheduler_NewWorkItem_Stub(
  1416. IRpcStubBuffer *This,
  1417. IRpcChannelBuffer *_pRpcChannelBuffer,
  1418. PRPC_MESSAGE _pRpcMessage,
  1419. DWORD *_pdwStubPhase);
  1420. HRESULT STDMETHODCALLTYPE ITaskScheduler_AddWorkItem_Proxy(
  1421. ITaskScheduler * This,
  1422. /* [in] */ LPCWSTR pwszTaskName,
  1423. /* [in] */ IScheduledWorkItem *pWorkItem);
  1424. void __RPC_STUB ITaskScheduler_AddWorkItem_Stub(
  1425. IRpcStubBuffer *This,
  1426. IRpcChannelBuffer *_pRpcChannelBuffer,
  1427. PRPC_MESSAGE _pRpcMessage,
  1428. DWORD *_pdwStubPhase);
  1429. HRESULT STDMETHODCALLTYPE ITaskScheduler_IsOfType_Proxy(
  1430. ITaskScheduler * This,
  1431. /* [in] */ LPCWSTR pwszName,
  1432. /* [in] */ REFIID riid);
  1433. void __RPC_STUB ITaskScheduler_IsOfType_Stub(
  1434. IRpcStubBuffer *This,
  1435. IRpcChannelBuffer *_pRpcChannelBuffer,
  1436. PRPC_MESSAGE _pRpcMessage,
  1437. DWORD *_pdwStubPhase);
  1438. #endif /* __ITaskScheduler_INTERFACE_DEFINED__ */
  1439. /* interface __MIDL_itf_mstask_0144 */
  1440. /* [local] */
  1441. EXTERN_C const CLSID CLSID_CTask;
  1442. EXTERN_C const CLSID CLSID_CTaskScheduler;
  1443. // {148BD520-A2AB-11CE-B11F-00AA00530503}
  1444. DEFINE_GUID(CLSID_CTask, 0x148BD520, 0xA2AB, 0x11CE, 0xB1, 0x1F, 0x00, 0xAA, 0x00, 0x53, 0x05, 0x03);
  1445. // {148BD52A-A2AB-11CE-B11F-00AA00530503}
  1446. DEFINE_GUID(CLSID_CTaskScheduler, 0x148BD52A, 0xA2AB, 0x11CE, 0xB1, 0x1F, 0x00, 0xAA, 0x00, 0x53, 0x05, 0x03);
  1447. typedef struct _PSP *HPROPSHEETPAGE;
  1448. typedef
  1449. enum _TASKPAGE
  1450. { TASKPAGE_TASK = 0,
  1451. TASKPAGE_SCHEDULE = 1,
  1452. TASKPAGE_SETTINGS = 2
  1453. } TASKPAGE;
  1454. // {4086658a-cbbb-11cf-b604-00c04fd8d565}
  1455. DEFINE_GUID(IID_IProvideTaskPage, 0x4086658aL, 0xcbbb, 0x11cf, 0xb6, 0x04, 0x00, 0xc0, 0x4f, 0xd8, 0xd5, 0x65);
  1456. extern RPC_IF_HANDLE __MIDL_itf_mstask_0144_v0_0_c_ifspec;
  1457. extern RPC_IF_HANDLE __MIDL_itf_mstask_0144_v0_0_s_ifspec;
  1458. #ifndef __IProvideTaskPage_INTERFACE_DEFINED__
  1459. #define __IProvideTaskPage_INTERFACE_DEFINED__
  1460. /* interface IProvideTaskPage */
  1461. /* [unique][uuid][object][local] */
  1462. EXTERN_C const IID IID_IProvideTaskPage;
  1463. #if defined(__cplusplus) && !defined(CINTERFACE)
  1464. MIDL_INTERFACE("4086658a-cbbb-11cf-b604-00c04fd8d565")
  1465. IProvideTaskPage : public IUnknown
  1466. {
  1467. public:
  1468. virtual HRESULT STDMETHODCALLTYPE GetPage(
  1469. /* [in] */ TASKPAGE tpType,
  1470. /* [in] */ BOOL fPersistChanges,
  1471. /* [out] */ HPROPSHEETPAGE *phPage) = 0;
  1472. };
  1473. #else /* C style interface */
  1474. typedef struct IProvideTaskPageVtbl
  1475. {
  1476. BEGIN_INTERFACE
  1477. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  1478. IProvideTaskPage * This,
  1479. /* [in] */ REFIID riid,
  1480. /* [iid_is][out] */ void **ppvObject);
  1481. ULONG ( STDMETHODCALLTYPE *AddRef )(
  1482. IProvideTaskPage * This);
  1483. ULONG ( STDMETHODCALLTYPE *Release )(
  1484. IProvideTaskPage * This);
  1485. HRESULT ( STDMETHODCALLTYPE *GetPage )(
  1486. IProvideTaskPage * This,
  1487. /* [in] */ TASKPAGE tpType,
  1488. /* [in] */ BOOL fPersistChanges,
  1489. /* [out] */ HPROPSHEETPAGE *phPage);
  1490. END_INTERFACE
  1491. } IProvideTaskPageVtbl;
  1492. interface IProvideTaskPage
  1493. {
  1494. CONST_VTBL struct IProvideTaskPageVtbl *lpVtbl;
  1495. };
  1496. #ifdef COBJMACROS
  1497. #define IProvideTaskPage_QueryInterface(This,riid,ppvObject) \
  1498. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  1499. #define IProvideTaskPage_AddRef(This) \
  1500. (This)->lpVtbl -> AddRef(This)
  1501. #define IProvideTaskPage_Release(This) \
  1502. (This)->lpVtbl -> Release(This)
  1503. #define IProvideTaskPage_GetPage(This,tpType,fPersistChanges,phPage) \
  1504. (This)->lpVtbl -> GetPage(This,tpType,fPersistChanges,phPage)
  1505. #endif /* COBJMACROS */
  1506. #endif /* C style interface */
  1507. HRESULT STDMETHODCALLTYPE IProvideTaskPage_GetPage_Proxy(
  1508. IProvideTaskPage * This,
  1509. /* [in] */ TASKPAGE tpType,
  1510. /* [in] */ BOOL fPersistChanges,
  1511. /* [out] */ HPROPSHEETPAGE *phPage);
  1512. void __RPC_STUB IProvideTaskPage_GetPage_Stub(
  1513. IRpcStubBuffer *This,
  1514. IRpcChannelBuffer *_pRpcChannelBuffer,
  1515. PRPC_MESSAGE _pRpcMessage,
  1516. DWORD *_pdwStubPhase);
  1517. #endif /* __IProvideTaskPage_INTERFACE_DEFINED__ */
  1518. /* interface __MIDL_itf_mstask_0145 */
  1519. /* [local] */
  1520. #define ISchedulingAgent ITaskScheduler
  1521. #define IEnumTasks IEnumWorkItems
  1522. #define IID_ISchedulingAgent IID_ITaskScheduler
  1523. #define CLSID_CSchedulingAgent CLSID_CTaskScheduler
  1524. extern RPC_IF_HANDLE __MIDL_itf_mstask_0145_v0_0_c_ifspec;
  1525. extern RPC_IF_HANDLE __MIDL_itf_mstask_0145_v0_0_s_ifspec;
  1526. /* Additional Prototypes for ALL interfaces */
  1527. /* end of Additional Prototypes */
  1528. #ifdef __cplusplus
  1529. }
  1530. #endif
  1531. #endif