-
Notifications
You must be signed in to change notification settings - Fork 20
/
Copy pathSchRpc.h
238 lines (186 loc) · 6.58 KB
/
SchRpc.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
/* this ALWAYS GENERATED file contains the definitions for the interfaces */
/* File created by MIDL compiler version 8.01.0622 */
/* at Tue Jan 19 11:14:07 2038
*/
/* Compiler settings for .\SchRpc.idl:
Oicf, W1, Zp8, env=Win32 (32b run), target_arch=X86 8.01.0622
protocol : dce , ms_ext, c_ext, robust
error checks: allocation ref bounds_check enum stub_data
VC __declspec() decoration level:
__declspec(uuid()), __declspec(selectany), __declspec(novtable)
DECLSPEC_UUID(), MIDL_INTERFACE()
*/
/* @@MIDL_FILE_HEADING( ) */
#pragma warning( disable: 4049 ) /* more than 64k source lines */
/* verify that the <rpcndr.h> version is high enough to compile this file*/
#ifndef __REQUIRED_RPCNDR_H_VERSION__
#define __REQUIRED_RPCNDR_H_VERSION__ 475
#endif
#include "rpc.h"
#include "rpcndr.h"
#ifndef __RPCNDR_H_VERSION__
#error this stub requires an updated version of <rpcndr.h>
#endif /* __RPCNDR_H_VERSION__ */
#ifndef __SchRpc_h__
#define __SchRpc_h__
#if defined(_MSC_VER) && (_MSC_VER >= 1020)
#pragma once
#endif
/* Forward Declarations */
/* header files for imported files */
#ifdef __cplusplus
extern "C"{
#endif
#ifndef __ITaskSchedulerService_INTERFACE_DEFINED__
#define __ITaskSchedulerService_INTERFACE_DEFINED__
/* interface ITaskSchedulerService */
/* [unique][version][uuid] */
enum credFlag
{
credFlagDefault = 0x1
} ;
typedef struct _TASK_USER_CRED
{
/* [string] */ const wchar_t *userId;
/* [string] */ const wchar_t *password;
DWORD flags;
} TASK_USER_CRED;
typedef struct _TASK_XML_ERROR_INFO
{
DWORD line;
DWORD column;
/* [string] */ wchar_t *node;
/* [string] */ wchar_t *value;
} TASK_XML_ERROR_INFO;
typedef struct _TASK_XML_ERROR_INFO *PTASK_XML_ERROR_INFO;
typedef /* [string] */ wchar_t **TASK_NAMES;
HRESULT SchRpcHighestVersion(
/* [in] */ handle_t IDL_handle,
/* [out] */ DWORD *pVersion);
HRESULT SchRpcRegisterTask(
/* [in] */ handle_t IDL_handle,
/* [unique][string][in] */ const wchar_t *path,
/* [string][in] */ const wchar_t *xml,
/* [in] */ DWORD flags,
/* [unique][string][in] */ const wchar_t *sddl,
/* [in] */ DWORD logonType,
/* [in] */ DWORD cCreds,
/* [unique][size_is][in] */ const TASK_USER_CRED *pCreds,
/* [string][out] */ wchar_t **pActualPath,
/* [out] */ PTASK_XML_ERROR_INFO *pErrorInfo);
HRESULT SchRpcRetrieveTask(
/* [in] */ handle_t IDL_handle,
/* [string][in] */ const wchar_t *path,
/* [string][in] */ const wchar_t *lpcwszLanguagesBuffer,
/* [in] */ unsigned long *pulNumLanguages,
/* [string][out] */ wchar_t **pXml);
HRESULT SchRpcCreateFolder(
/* [in] */ handle_t IDL_handle,
/* [string][in] */ const wchar_t *path,
/* [unique][string][in] */ const wchar_t *sddl,
/* [in] */ DWORD flags);
HRESULT SchRpcSetSecurity(
/* [in] */ handle_t IDL_handle,
/* [string][in] */ const wchar_t *path,
/* [string][in] */ const wchar_t *sddl,
/* [in] */ DWORD flags);
HRESULT SchRpcGetSecurity(
/* [in] */ handle_t IDL_handle,
/* [string][in] */ const wchar_t *path,
/* [in] */ DWORD securityInformation,
/* [string][out] */ wchar_t **sddl);
HRESULT SchRpcEnumFolders(
/* [in] */ handle_t IDL_handle,
/* [string][in] */ const wchar_t *path,
/* [in] */ DWORD flags,
/* [out][in] */ DWORD *pStartIndex,
/* [in] */ DWORD cRequested,
/* [out] */ DWORD *pcNames,
/* [size_is][size_is][string][out] */ TASK_NAMES *pNames);
HRESULT SchRpcEnumTasks(
/* [in] */ handle_t IDL_handle,
/* [string][in] */ const wchar_t *path,
/* [in] */ DWORD flags,
/* [out][in] */ DWORD *startIndex,
/* [in] */ DWORD cRequested,
/* [out] */ DWORD *pcNames,
/* [size_is][size_is][string][out] */ TASK_NAMES *pNames);
HRESULT SchRpcEnumInstances(
/* [in] */ handle_t IDL_handle,
/* [unique][string][in] */ const wchar_t *path,
/* [in] */ DWORD flags,
/* [out] */ DWORD *pcGuids,
/* [size_is][size_is][out] */ GUID **pGuids);
HRESULT SchRpcGetInstanceInfo(
/* [in] */ handle_t IDL_handle,
/* [in] */ GUID guid,
/* [string][out] */ wchar_t **pPath,
/* [out] */ DWORD *pState,
/* [string][out] */ wchar_t **pCurrentAction,
/* [string][out] */ wchar_t **pInfo,
/* [out] */ DWORD *pcGroupInstances,
/* [size_is][size_is][out] */ GUID **pGroupInstances,
/* [out] */ DWORD *pEnginePID);
HRESULT SchRpcStopInstance(
/* [in] */ handle_t IDL_handle,
/* [in] */ GUID guid,
/* [in] */ DWORD flags);
HRESULT SchRpcStop(
/* [in] */ handle_t IDL_handle,
/* [unique][string][in] */ const wchar_t *path,
/* [in] */ DWORD flags);
HRESULT SchRpcRun(
/* [in] */ handle_t IDL_handle,
/* [string][in] */ const wchar_t *path,
/* [in] */ DWORD cArgs,
/* [unique][size_is][string][in] */ const wchar_t **pArgs,
/* [in] */ DWORD flags,
/* [in] */ DWORD sessionId,
/* [string][unique][in] */ const wchar_t *user,
/* [out] */ GUID *pGuid);
HRESULT SchRpcDelete(
/* [in] */ handle_t IDL_handle,
/* [string][in] */ const wchar_t *path,
/* [in] */ DWORD flags);
HRESULT SchRpcRename(
/* [in] */ handle_t IDL_handle,
/* [string][in] */ const wchar_t *path,
/* [string][in] */ const wchar_t *newName,
/* [in] */ DWORD flags);
HRESULT SchRpcScheduledRuntimes(
/* [in] */ handle_t IDL_handle,
/* [string][in] */ const wchar_t *path,
/* [unique][in] */ PSYSTEMTIME start,
/* [unique][in] */ PSYSTEMTIME end,
/* [in] */ DWORD flags,
/* [in] */ DWORD cRequested,
/* [out] */ DWORD *pcRuntimes,
/* [size_is][size_is][out] */ PSYSTEMTIME *pRuntimes);
HRESULT SchRpcGetLastRunInfo(
/* [in] */ handle_t IDL_handle,
/* [string][in] */ const wchar_t *path,
/* [out] */ PSYSTEMTIME pLastRuntime,
/* [out] */ DWORD *pLastReturnCode);
HRESULT SchRpcGetTaskInfo(
/* [in] */ handle_t IDL_handle,
/* [string][in] */ const wchar_t *path,
/* [in] */ DWORD flags,
/* [out] */ DWORD *pEnabled,
/* [out] */ DWORD *pState);
HRESULT SchRpcGetNumberOfMissedRuns(
/* [in] */ handle_t IDL_handle,
/* [string][in] */ const wchar_t *path,
/* [out] */ DWORD *pNumberOfMissedRuns);
HRESULT SchRpcEnableTask(
/* [in] */ handle_t IDL_handle,
/* [string][in] */ const wchar_t *path,
/* [in] */ DWORD enabled);
extern RPC_IF_HANDLE ITaskSchedulerService_v1_0_c_ifspec;
extern RPC_IF_HANDLE ITaskSchedulerService_v1_0_s_ifspec;
#endif /* __ITaskSchedulerService_INTERFACE_DEFINED__ */
/* Additional Prototypes for ALL interfaces */
/* end of Additional Prototypes */
#ifdef __cplusplus
}
#endif
#endif