Source code of Windows XP (NT5)
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.

2299 lines
70 KiB

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