Server/TaskScheduler.cs
author Stephane Lenclud
Fri, 19 Aug 2016 17:12:54 +0200
changeset 243 cc2251d065db
permissions -rw-r--r--
Optical drive eject action now functional.
sl@92
     1
/*
sl@92
     2
sl@92
     3
  This Source Code Form is subject to the terms of the Mozilla Public
sl@92
     4
  License, v. 2.0. If a copy of the MPL was not distributed with this
sl@92
     5
  file, You can obtain one at http://mozilla.org/MPL/2.0/.
sl@92
     6
sl@92
     7
  Copyright (C) 2009-2010 Michael Möller <mmoeller@openhardwaremonitor.org>
sl@92
     8
sl@92
     9
*/
sl@92
    10
sl@92
    11
using System;
sl@92
    12
using System.Collections;
sl@92
    13
using System.Reflection;
sl@92
    14
using System.Runtime.CompilerServices;
sl@92
    15
using System.Runtime.InteropServices;
sl@92
    16
sl@92
    17
namespace SharpDisplayManager.TaskScheduler
sl@92
    18
{
sl@92
    19
	[StructLayout(LayoutKind.Sequential, Pack = 2)]
sl@92
    20
	public struct SYSTEMTIME
sl@92
    21
	{
sl@92
    22
		public ushort wYear;
sl@92
    23
		public ushort wMonth;
sl@92
    24
		public ushort wDayOfWeek;
sl@92
    25
		public ushort wDay;
sl@92
    26
		public ushort wHour;
sl@92
    27
		public ushort wMinute;
sl@92
    28
		public ushort wSecond;
sl@92
    29
		public ushort wMilliseconds;
sl@92
    30
	}
sl@92
    31
sl@92
    32
	public enum TASK_ACTION_TYPE
sl@92
    33
	{
sl@92
    34
		TASK_ACTION_COM_HANDLER = 5,
sl@92
    35
		TASK_ACTION_EXEC = 0,
sl@92
    36
		TASK_ACTION_SEND_EMAIL = 6,
sl@92
    37
		TASK_ACTION_SHOW_MESSAGE = 7
sl@92
    38
	}
sl@92
    39
sl@92
    40
	public enum TASK_COMPATIBILITY
sl@92
    41
	{
sl@92
    42
		TASK_COMPATIBILITY_AT,
sl@92
    43
		TASK_COMPATIBILITY_V1,
sl@92
    44
		TASK_COMPATIBILITY_V2,
sl@92
    45
		TASK_COMPATIBILITY_V2_1
sl@92
    46
	}
sl@92
    47
sl@92
    48
	public enum TASK_CREATION
sl@92
    49
	{
sl@92
    50
		TASK_CREATE = 2,
sl@92
    51
		TASK_CREATE_OR_UPDATE = 6,
sl@92
    52
		TASK_DISABLE = 8,
sl@92
    53
		TASK_DONT_ADD_PRINCIPAL_ACE = 0x10,
sl@92
    54
		TASK_IGNORE_REGISTRATION_TRIGGERS = 0x20,
sl@92
    55
		TASK_UPDATE = 4,
sl@92
    56
		TASK_VALIDATE_ONLY = 1
sl@92
    57
	}
sl@92
    58
sl@92
    59
	public enum TASK_ENUM_FLAGS
sl@92
    60
	{
sl@92
    61
		TASK_ENUM_HIDDEN = 1
sl@92
    62
	}
sl@92
    63
sl@92
    64
	public enum TASK_INSTANCES_POLICY
sl@92
    65
	{
sl@92
    66
		TASK_INSTANCES_PARALLEL,
sl@92
    67
		TASK_INSTANCES_QUEUE,
sl@92
    68
		TASK_INSTANCES_IGNORE_NEW,
sl@92
    69
		TASK_INSTANCES_STOP_EXISTING
sl@92
    70
	}
sl@92
    71
sl@92
    72
	public enum TASK_LOGON_TYPE
sl@92
    73
	{
sl@92
    74
		TASK_LOGON_NONE,
sl@92
    75
		TASK_LOGON_PASSWORD,
sl@92
    76
		TASK_LOGON_S4U,
sl@92
    77
		TASK_LOGON_INTERACTIVE_TOKEN,
sl@92
    78
		TASK_LOGON_GROUP,
sl@92
    79
		TASK_LOGON_SERVICE_ACCOUNT,
sl@92
    80
		TASK_LOGON_INTERACTIVE_TOKEN_OR_PASSWORD
sl@92
    81
	}
sl@92
    82
sl@92
    83
	public enum TASK_RUN_FLAGS
sl@92
    84
	{
sl@92
    85
		TASK_RUN_AS_SELF = 1,
sl@92
    86
		TASK_RUN_IGNORE_CONSTRAINTS = 2,
sl@92
    87
		TASK_RUN_NO_FLAGS = 0,
sl@92
    88
		TASK_RUN_USE_SESSION_ID = 4,
sl@92
    89
		TASK_RUN_USER_SID = 8
sl@92
    90
	}
sl@92
    91
sl@92
    92
	public enum TASK_RUNLEVEL
sl@92
    93
	{
sl@92
    94
		TASK_RUNLEVEL_LUA,
sl@92
    95
		TASK_RUNLEVEL_HIGHEST
sl@92
    96
	}
sl@92
    97
sl@92
    98
	public enum TASK_SESSION_STATE_CHANGE_TYPE
sl@92
    99
	{
sl@92
   100
		TASK_CONSOLE_CONNECT = 1,
sl@92
   101
		TASK_CONSOLE_DISCONNECT = 2,
sl@92
   102
		TASK_REMOTE_CONNECT = 3,
sl@92
   103
		TASK_REMOTE_DISCONNECT = 4,
sl@92
   104
		TASK_SESSION_LOCK = 7,
sl@92
   105
		TASK_SESSION_UNLOCK = 8
sl@92
   106
	}
sl@92
   107
sl@92
   108
	public enum TASK_STATE
sl@92
   109
	{
sl@92
   110
		TASK_STATE_UNKNOWN,
sl@92
   111
		TASK_STATE_DISABLED,
sl@92
   112
		TASK_STATE_QUEUED,
sl@92
   113
		TASK_STATE_READY,
sl@92
   114
		TASK_STATE_RUNNING
sl@92
   115
	}
sl@92
   116
sl@92
   117
	public enum TASK_TRIGGER_TYPE2
sl@92
   118
	{
sl@92
   119
		TASK_TRIGGER_BOOT = 8,
sl@92
   120
		TASK_TRIGGER_DAILY = 2,
sl@92
   121
		TASK_TRIGGER_EVENT = 0,
sl@92
   122
		TASK_TRIGGER_IDLE = 6,
sl@92
   123
		TASK_TRIGGER_LOGON = 9,
sl@92
   124
		TASK_TRIGGER_MONTHLY = 4,
sl@92
   125
		TASK_TRIGGER_MONTHLYDOW = 5,
sl@92
   126
		TASK_TRIGGER_REGISTRATION = 7,
sl@92
   127
		TASK_TRIGGER_SESSION_STATE_CHANGE = 11,
sl@92
   128
		TASK_TRIGGER_TIME = 1,
sl@92
   129
		TASK_TRIGGER_WEEKLY = 3
sl@92
   130
	}
sl@92
   131
sl@92
   132
	[ComImport, TypeLibType((short)0x10c0), Guid("BAE54997-48B1-4CBE-9965-D6BE263EBEA4")]
sl@92
   133
	public interface IAction
sl@92
   134
	{
sl@92
   135
		[DispId(1)]
sl@92
   136
		string Id { [return: MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(1)] get; [param: In, MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(1)] set; }
sl@92
   137
sl@92
   138
		[DispId(2)]
sl@92
   139
		TASK_ACTION_TYPE Type { [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(2)] get; }
sl@92
   140
	}
sl@92
   141
sl@92
   142
	[ComImport, TypeLibType((short)0x10c0), Guid("02820E19-7B98-4ED2-B2E8-FDCCCEFF619B")]
sl@92
   143
	public interface IActionCollection : IEnumerable
sl@92
   144
	{
sl@92
   145
		[DispId(1)]
sl@92
   146
		int Count { [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(1)] get; }
sl@92
   147
sl@92
   148
		[DispId(0)]
sl@92
   149
		IAction this[int index] { [return: MarshalAs(UnmanagedType.Interface)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(0)] get; }
sl@92
   150
sl@92
   151
		[return: MarshalAs(UnmanagedType.Interface)]
sl@92
   152
		[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(-4)]
sl@92
   153
		new IEnumerator GetEnumerator();
sl@92
   154
sl@92
   155
		[DispId(2)]
sl@92
   156
		string XmlText { [return: MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(2)] get; [param: In, MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(2)] set; }
sl@92
   157
sl@92
   158
		[return: MarshalAs(UnmanagedType.Interface)]
sl@92
   159
		[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(3)]
sl@92
   160
		IAction Create([In] TASK_ACTION_TYPE Type);
sl@92
   161
sl@92
   162
		[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(4)]
sl@92
   163
		void Remove([In, MarshalAs(UnmanagedType.Struct)] object index);
sl@92
   164
sl@92
   165
		[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(5)]
sl@92
   166
		void Clear();
sl@92
   167
sl@92
   168
		[DispId(6)]
sl@92
   169
		string Context { [return: MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(6)] get; [param: In, MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(6)] set; }
sl@92
   170
	}
sl@92
   171
sl@92
   172
	[ComImport, Guid("2A9C35DA-D357-41F4-BBC1-207AC1B1F3CB"), TypeLibType((short)0x10c0)]
sl@92
   173
	public interface IBootTrigger : ITrigger
sl@92
   174
	{
sl@92
   175
		[DispId(1)]
sl@92
   176
		new TASK_TRIGGER_TYPE2 Type { [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(1)] get; }
sl@92
   177
sl@92
   178
		[DispId(2)]
sl@92
   179
		new string Id { [return: MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(2)] get; [param: In, MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(2)] set; }
sl@92
   180
sl@92
   181
		[DispId(3)]
sl@92
   182
		new IRepetitionPattern Repetition { [return: MarshalAs(UnmanagedType.Interface)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(3)] get; [param: In, MarshalAs(UnmanagedType.Interface)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(3)] set; }
sl@92
   183
sl@92
   184
		[DispId(4)]
sl@92
   185
		new string ExecutionTimeLimit { [return: MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(4)] get; [param: In, MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(4)] set; }
sl@92
   186
sl@92
   187
		[DispId(5)]
sl@92
   188
		new string StartBoundary { [return: MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(5)] get; [param: In, MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(5)] set; }
sl@92
   189
sl@92
   190
		[DispId(6)]
sl@92
   191
		new string EndBoundary { [return: MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(6)] get; [param: In, MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(6)] set; }
sl@92
   192
sl@92
   193
		[DispId(7)]
sl@92
   194
		new bool Enabled { [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(7)] get; [param: In] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(7)] set; }
sl@92
   195
sl@92
   196
		[DispId(20)]
sl@92
   197
		string Delay { [return: MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(20)] get; [param: In, MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(20)] set; }
sl@92
   198
	}
sl@92
   199
sl@92
   200
	[ComImport, TypeLibType((short)0x10c0), Guid("6D2FD252-75C5-4F66-90BA-2A7D8CC3039F")]
sl@92
   201
	public interface IComHandlerAction : IAction
sl@92
   202
	{
sl@92
   203
		[DispId(1)]
sl@92
   204
		new string Id { [return: MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(1)] get; [param: In, MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(1)] set; }
sl@92
   205
sl@92
   206
		[DispId(2)]
sl@92
   207
		new TASK_ACTION_TYPE Type { [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(2)] get; }
sl@92
   208
sl@92
   209
		[DispId(10)]
sl@92
   210
		string ClassId { [return: MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(10)] get; [param: In, MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(10)] set; }
sl@92
   211
sl@92
   212
		[DispId(11)]
sl@92
   213
		string Data { [return: MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(11)] get; [param: In, MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(11)] set; }
sl@92
   214
	}
sl@92
   215
sl@92
   216
	[ComImport, TypeLibType((short)0x10c0), Guid("126C5CD8-B288-41D5-8DBF-E491446ADC5C")]
sl@92
   217
	public interface IDailyTrigger : ITrigger
sl@92
   218
	{
sl@92
   219
		[DispId(1)]
sl@92
   220
		new TASK_TRIGGER_TYPE2 Type { [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(1)] get; }
sl@92
   221
sl@92
   222
		[DispId(2)]
sl@92
   223
		new string Id { [return: MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(2)] get; [param: In, MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(2)] set; }
sl@92
   224
sl@92
   225
		[DispId(3)]
sl@92
   226
		new IRepetitionPattern Repetition { [return: MarshalAs(UnmanagedType.Interface)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(3)] get; [param: In, MarshalAs(UnmanagedType.Interface)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(3)] set; }
sl@92
   227
sl@92
   228
		[DispId(4)]
sl@92
   229
		new string ExecutionTimeLimit { [return: MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(4)] get; [param: In, MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(4)] set; }
sl@92
   230
sl@92
   231
		[DispId(5)]
sl@92
   232
		new string StartBoundary { [return: MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(5)] get; [param: In, MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(5)] set; }
sl@92
   233
sl@92
   234
		[DispId(6)]
sl@92
   235
		new string EndBoundary { [return: MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(6)] get; [param: In, MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(6)] set; }
sl@92
   236
sl@92
   237
		[DispId(7)]
sl@92
   238
		new bool Enabled { [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(7)] get; [param: In] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(7)] set; }
sl@92
   239
sl@92
   240
		[DispId(0x19)]
sl@92
   241
		short DaysInterval { [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(0x19)] get; [param: In] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(0x19)] set; }
sl@92
   242
sl@92
   243
		[DispId(20)]
sl@92
   244
		string RandomDelay { [return: MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(20)] get; [param: In, MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(20)] set; }
sl@92
   245
	}
sl@92
   246
sl@92
   247
	[ComImport, TypeLibType((short)0x10c0), Guid("10F62C64-7E16-4314-A0C2-0C3683F99D40")]
sl@92
   248
	public interface IEmailAction : IAction
sl@92
   249
	{
sl@92
   250
		[DispId(1)]
sl@92
   251
		new string Id { [return: MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(1)] get; [param: In, MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(1)] set; }
sl@92
   252
sl@92
   253
		[DispId(2)]
sl@92
   254
		new TASK_ACTION_TYPE Type { [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(2)] get; }
sl@92
   255
sl@92
   256
		[DispId(10)]
sl@92
   257
		string Server { [return: MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(10)] get; [param: In, MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(10)] set; }
sl@92
   258
sl@92
   259
		[DispId(11)]
sl@92
   260
		string Subject { [return: MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(11)] get; [param: In, MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(11)] set; }
sl@92
   261
sl@92
   262
		[DispId(12)]
sl@92
   263
		string To { [return: MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(12)] get; [param: In, MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(12)] set; }
sl@92
   264
sl@92
   265
		[DispId(13)]
sl@92
   266
		string Cc { [return: MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(13)] get; [param: In, MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(13)] set; }
sl@92
   267
sl@92
   268
		[DispId(14)]
sl@92
   269
		string Bcc { [return: MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(14)] get; [param: In, MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(14)] set; }
sl@92
   270
sl@92
   271
		[DispId(15)]
sl@92
   272
		string ReplyTo { [return: MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(15)] get; [param: In, MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(15)] set; }
sl@92
   273
sl@92
   274
		[DispId(0x10)]
sl@92
   275
		string From { [return: MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(0x10)] get; [param: In, MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(0x10)] set; }
sl@92
   276
sl@92
   277
		[DispId(0x11)]
sl@92
   278
		ITaskNamedValueCollection HeaderFields { [return: MarshalAs(UnmanagedType.Interface)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(0x11)] get; [param: In, MarshalAs(UnmanagedType.Interface)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(0x11)] set; }
sl@92
   279
sl@92
   280
		[DispId(0x12)]
sl@92
   281
		string Body { [return: MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(0x12)] get; [param: In, MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(0x12)] set; }
sl@92
   282
sl@92
   283
		[DispId(0x13)]
sl@92
   284
		Array Attachments { [return: MarshalAs(UnmanagedType.SafeArray, SafeArraySubType = VarEnum.VT_VARIANT)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(0x13)] get; [param: In, MarshalAs(UnmanagedType.SafeArray, SafeArraySubType = VarEnum.VT_VARIANT)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(0x13)] set; }
sl@92
   285
	}
sl@92
   286
sl@92
   287
	[ComImport, TypeLibType((short)0x10c0), Guid("D45B0167-9653-4EEF-B94F-0732CA7AF251")]
sl@92
   288
	public interface IEventTrigger : ITrigger
sl@92
   289
	{
sl@92
   290
		[DispId(1)]
sl@92
   291
		new TASK_TRIGGER_TYPE2 Type { [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(1)] get; }
sl@92
   292
sl@92
   293
		[DispId(2)]
sl@92
   294
		new string Id { [return: MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(2)] get; [param: In, MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(2)] set; }
sl@92
   295
sl@92
   296
		[DispId(3)]
sl@92
   297
		new IRepetitionPattern Repetition { [return: MarshalAs(UnmanagedType.Interface)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(3)] get; [param: In, MarshalAs(UnmanagedType.Interface)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(3)] set; }
sl@92
   298
sl@92
   299
		[DispId(4)]
sl@92
   300
		new string ExecutionTimeLimit { [return: MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(4)] get; [param: In, MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(4)] set; }
sl@92
   301
sl@92
   302
		[DispId(5)]
sl@92
   303
		new string StartBoundary { [return: MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(5)] get; [param: In, MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(5)] set; }
sl@92
   304
sl@92
   305
		[DispId(6)]
sl@92
   306
		new string EndBoundary { [return: MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(6)] get; [param: In, MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(6)] set; }
sl@92
   307
sl@92
   308
		[DispId(7)]
sl@92
   309
		new bool Enabled { [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(7)] get; [param: In] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(7)] set; }
sl@92
   310
sl@92
   311
		[DispId(20)]
sl@92
   312
		string Subscription { [return: MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(20)] get; [param: In, MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(20)] set; }
sl@92
   313
sl@92
   314
		[DispId(0x15)]
sl@92
   315
		string Delay { [return: MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(0x15)] get; [param: In, MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(0x15)] set; }
sl@92
   316
sl@92
   317
		[DispId(0x16)]
sl@92
   318
		ITaskNamedValueCollection ValueQueries { [return: MarshalAs(UnmanagedType.Interface)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(0x16)] get; [param: In, MarshalAs(UnmanagedType.Interface)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(0x16)] set; }
sl@92
   319
	}
sl@92
   320
sl@92
   321
	[ComImport, Guid("4C3D624D-FD6B-49A3-B9B7-09CB3CD3F047"), TypeLibType((short)0x10c0)]
sl@92
   322
	public interface IExecAction : IAction
sl@92
   323
	{
sl@92
   324
		[DispId(1)]
sl@92
   325
		new string Id { [return: MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(1)] get; [param: In, MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(1)] set; }
sl@92
   326
sl@92
   327
		[DispId(2)]
sl@92
   328
		new TASK_ACTION_TYPE Type { [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(2)] get; }
sl@92
   329
sl@92
   330
		[DispId(10)]
sl@92
   331
		string Path { [return: MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(10)] get; [param: In, MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(10)] set; }
sl@92
   332
sl@92
   333
		[DispId(11)]
sl@92
   334
		string Arguments { [return: MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(11)] get; [param: In, MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(11)] set; }
sl@92
   335
sl@92
   336
		[DispId(12)]
sl@92
   337
		string WorkingDirectory { [return: MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(12)] get; [param: In, MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(12)] set; }
sl@92
   338
	}
sl@92
   339
sl@92
   340
	[ComImport, Guid("84594461-0053-4342-A8FD-088FABF11F32"), TypeLibType((short)0x10c0)]
sl@92
   341
	public interface IIdleSettings
sl@92
   342
	{
sl@92
   343
		[DispId(1)]
sl@92
   344
		string IdleDuration { [return: MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(1)] get; [param: In, MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(1)] set; }
sl@92
   345
sl@92
   346
		[DispId(2)]
sl@92
   347
		string WaitTimeout { [return: MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(2)] get; [param: In, MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(2)] set; }
sl@92
   348
sl@92
   349
		[DispId(3)]
sl@92
   350
		bool StopOnIdleEnd { [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(3)] get; [param: In] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(3)] set; }
sl@92
   351
sl@92
   352
		[DispId(4)]
sl@92
   353
		bool RestartOnIdle { [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(4)] get; [param: In] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(4)] set; }
sl@92
   354
	}
sl@92
   355
sl@92
   356
	[ComImport, Guid("D537D2B0-9FB3-4D34-9739-1FF5CE7B1EF3"), TypeLibType((short)0x10c0)]
sl@92
   357
	public interface IIdleTrigger : ITrigger
sl@92
   358
	{
sl@92
   359
		[DispId(1)]
sl@92
   360
		new TASK_TRIGGER_TYPE2 Type { [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(1)] get; }
sl@92
   361
sl@92
   362
		[DispId(2)]
sl@92
   363
		new string Id { [return: MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(2)] get; [param: In, MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(2)] set; }
sl@92
   364
sl@92
   365
		[DispId(3)]
sl@92
   366
		new IRepetitionPattern Repetition { [return: MarshalAs(UnmanagedType.Interface)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(3)] get; [param: In, MarshalAs(UnmanagedType.Interface)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(3)] set; }
sl@92
   367
sl@92
   368
		[DispId(4)]
sl@92
   369
		new string ExecutionTimeLimit { [return: MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(4)] get; [param: In, MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(4)] set; }
sl@92
   370
sl@92
   371
		[DispId(5)]
sl@92
   372
		new string StartBoundary { [return: MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(5)] get; [param: In, MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(5)] set; }
sl@92
   373
sl@92
   374
		[DispId(6)]
sl@92
   375
		new string EndBoundary { [return: MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(6)] get; [param: In, MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(6)] set; }
sl@92
   376
sl@92
   377
		[DispId(7)]
sl@92
   378
		new bool Enabled { [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(7)] get; [param: In] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(7)] set; }
sl@92
   379
	}
sl@92
   380
sl@92
   381
	[ComImport, Guid("72DADE38-FAE4-4B3E-BAF4-5D009AF02B1C"), TypeLibType((short)0x10c0)]
sl@92
   382
	public interface ILogonTrigger : ITrigger
sl@92
   383
	{
sl@92
   384
		[DispId(1)]
sl@92
   385
		new TASK_TRIGGER_TYPE2 Type { [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(1)] get; }
sl@92
   386
sl@92
   387
		[DispId(2)]
sl@92
   388
		new string Id { [return: MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(2)] get; [param: In, MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(2)] set; }
sl@92
   389
sl@92
   390
		[DispId(3)]
sl@92
   391
		new IRepetitionPattern Repetition { [return: MarshalAs(UnmanagedType.Interface)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(3)] get; [param: In, MarshalAs(UnmanagedType.Interface)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(3)] set; }
sl@92
   392
sl@92
   393
		[DispId(4)]
sl@92
   394
		new string ExecutionTimeLimit { [return: MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(4)] get; [param: In, MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(4)] set; }
sl@92
   395
sl@92
   396
		[DispId(5)]
sl@92
   397
		new string StartBoundary { [return: MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(5)] get; [param: In, MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(5)] set; }
sl@92
   398
sl@92
   399
		[DispId(6)]
sl@92
   400
		new string EndBoundary { [return: MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(6)] get; [param: In, MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(6)] set; }
sl@92
   401
sl@92
   402
		[DispId(7)]
sl@92
   403
		new bool Enabled { [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(7)] get; [param: In] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(7)] set; }
sl@92
   404
sl@92
   405
		[DispId(20)]
sl@92
   406
		string Delay { [return: MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(20)] get; [param: In, MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(20)] set; }
sl@92
   407
sl@92
   408
		[DispId(0x15)]
sl@92
   409
		string UserId { [return: MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(0x15)] get; [param: In, MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(0x15)] set; }
sl@92
   410
	}
sl@92
   411
sl@92
   412
	[ComImport, Guid("77D025A3-90FA-43AA-B52E-CDA5499B946A"), TypeLibType((short)0x10c0)]
sl@92
   413
	public interface IMonthlyDOWTrigger : ITrigger
sl@92
   414
	{
sl@92
   415
		[DispId(1)]
sl@92
   416
		new TASK_TRIGGER_TYPE2 Type { [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(1)] get; }
sl@92
   417
sl@92
   418
		[DispId(2)]
sl@92
   419
		new string Id { [return: MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(2)] get; [param: In, MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(2)] set; }
sl@92
   420
sl@92
   421
		[DispId(3)]
sl@92
   422
		new IRepetitionPattern Repetition { [return: MarshalAs(UnmanagedType.Interface)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(3)] get; [param: In, MarshalAs(UnmanagedType.Interface)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(3)] set; }
sl@92
   423
sl@92
   424
		[DispId(4)]
sl@92
   425
		new string ExecutionTimeLimit { [return: MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(4)] get; [param: In, MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(4)] set; }
sl@92
   426
sl@92
   427
		[DispId(5)]
sl@92
   428
		new string StartBoundary { [return: MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(5)] get; [param: In, MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(5)] set; }
sl@92
   429
sl@92
   430
		[DispId(6)]
sl@92
   431
		new string EndBoundary { [return: MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(6)] get; [param: In, MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(6)] set; }
sl@92
   432
sl@92
   433
		[DispId(7)]
sl@92
   434
		new bool Enabled { [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(7)] get; [param: In] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(7)] set; }
sl@92
   435
sl@92
   436
		[DispId(0x19)]
sl@92
   437
		short DaysOfWeek { [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(0x19)] get; [param: In] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(0x19)] set; }
sl@92
   438
sl@92
   439
		[DispId(0x1a)]
sl@92
   440
		short WeeksOfMonth { [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(0x1a)] get; [param: In] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(0x1a)] set; }
sl@92
   441
sl@92
   442
		[DispId(0x1b)]
sl@92
   443
		short MonthsOfYear { [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(0x1b)] get; [param: In] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(0x1b)] set; }
sl@92
   444
sl@92
   445
		[DispId(0x1c)]
sl@92
   446
		bool RunOnLastWeekOfMonth { [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(0x1c)] get; [param: In] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(0x1c)] set; }
sl@92
   447
sl@92
   448
		[DispId(20)]
sl@92
   449
		string RandomDelay { [return: MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(20)] get; [param: In, MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(20)] set; }
sl@92
   450
	}
sl@92
   451
sl@92
   452
	[ComImport, Guid("97C45EF1-6B02-4A1A-9C0E-1EBFBA1500AC"), TypeLibType((short)0x10c0)]
sl@92
   453
	public interface IMonthlyTrigger : ITrigger
sl@92
   454
	{
sl@92
   455
		[DispId(1)]
sl@92
   456
		new TASK_TRIGGER_TYPE2 Type { [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(1)] get; }
sl@92
   457
sl@92
   458
		[DispId(2)]
sl@92
   459
		new string Id { [return: MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(2)] get; [param: In, MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(2)] set; }
sl@92
   460
sl@92
   461
		[DispId(3)]
sl@92
   462
		new IRepetitionPattern Repetition { [return: MarshalAs(UnmanagedType.Interface)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(3)] get; [param: In, MarshalAs(UnmanagedType.Interface)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(3)] set; }
sl@92
   463
sl@92
   464
		[DispId(4)]
sl@92
   465
		new string ExecutionTimeLimit { [return: MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(4)] get; [param: In, MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(4)] set; }
sl@92
   466
sl@92
   467
		[DispId(5)]
sl@92
   468
		new string StartBoundary { [return: MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(5)] get; [param: In, MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(5)] set; }
sl@92
   469
sl@92
   470
		[DispId(6)]
sl@92
   471
		new string EndBoundary { [return: MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(6)] get; [param: In, MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(6)] set; }
sl@92
   472
sl@92
   473
		[DispId(7)]
sl@92
   474
		new bool Enabled { [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(7)] get; [param: In] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(7)] set; }
sl@92
   475
sl@92
   476
		[DispId(0x19)]
sl@92
   477
		int DaysOfMonth { [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(0x19)] get; [param: In] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(0x19)] set; }
sl@92
   478
sl@92
   479
		[DispId(0x1a)]
sl@92
   480
		short MonthsOfYear { [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(0x1a)] get; [param: In] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(0x1a)] set; }
sl@92
   481
sl@92
   482
		[DispId(0x1b)]
sl@92
   483
		bool RunOnLastDayOfMonth { [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(0x1b)] get; [param: In] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(0x1b)] set; }
sl@92
   484
sl@92
   485
		[DispId(20)]
sl@92
   486
		string RandomDelay { [return: MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(20)] get; [param: In, MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(20)] set; }
sl@92
   487
	}
sl@92
   488
sl@92
   489
	[ComImport, Guid("9F7DEA84-C30B-4245-80B6-00E9F646F1B4"), TypeLibType((short)0x10c0)]
sl@92
   490
	public interface INetworkSettings
sl@92
   491
	{
sl@92
   492
		[DispId(1)]
sl@92
   493
		string Name { [return: MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(1)] get; [param: In, MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(1)] set; }
sl@92
   494
sl@92
   495
		[DispId(2)]
sl@92
   496
		string Id { [return: MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(2)] get; [param: In, MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(2)] set; }
sl@92
   497
	}
sl@92
   498
sl@92
   499
	[ComImport, Guid("D98D51E5-C9B4-496A-A9C1-18980261CF0F"), TypeLibType((short)0x10c0)]
sl@92
   500
	public interface IPrincipal
sl@92
   501
	{
sl@92
   502
		[DispId(1)]
sl@92
   503
		string Id { [return: MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(1)] get; [param: In, MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(1)] set; }
sl@92
   504
sl@92
   505
		[DispId(2)]
sl@92
   506
		string DisplayName { [return: MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(2)] get; [param: In, MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(2)] set; }
sl@92
   507
sl@92
   508
		[DispId(3)]
sl@92
   509
		string UserId { [return: MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(3)] get; [param: In, MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(3)] set; }
sl@92
   510
sl@92
   511
		[DispId(4)]
sl@92
   512
		TASK_LOGON_TYPE LogonType { [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(4)] get; [param: In] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(4)] set; }
sl@92
   513
sl@92
   514
		[DispId(5)]
sl@92
   515
		string GroupId { [return: MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(5)] get; [param: In, MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(5)] set; }
sl@92
   516
sl@92
   517
		[DispId(6)]
sl@92
   518
		TASK_RUNLEVEL RunLevel { [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(6)] get; [param: In] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(6)] set; }
sl@92
   519
	}
sl@92
   520
sl@92
   521
	[ComImport, DefaultMember("Path"), Guid("9C86F320-DEE3-4DD1-B972-A303F26B061E"), TypeLibType((short)0x10c0), ComConversionLoss]
sl@92
   522
	public interface IRegisteredTask
sl@92
   523
	{
sl@92
   524
		[DispId(1)]
sl@92
   525
		string Name { [return: MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(1)] get; }
sl@92
   526
sl@92
   527
		[DispId(0)]
sl@92
   528
		string Path { [return: MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(0)] get; }
sl@92
   529
sl@92
   530
		[DispId(2)]
sl@92
   531
		TASK_STATE State { [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(2)] get; }
sl@92
   532
sl@92
   533
		[DispId(3)]
sl@92
   534
		bool Enabled { [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(3)] get; [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(3)] set; }
sl@92
   535
sl@92
   536
		[return: MarshalAs(UnmanagedType.Interface)]
sl@92
   537
		[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(5)]
sl@92
   538
		IRunningTask Run([In, MarshalAs(UnmanagedType.Struct)] object parameters);
sl@92
   539
sl@92
   540
		[return: MarshalAs(UnmanagedType.Interface)]
sl@92
   541
		[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(6)]
sl@92
   542
		IRunningTask RunEx([In, MarshalAs(UnmanagedType.Struct)] object parameters, [In] int flags, [In] int sessionID, [In, MarshalAs(UnmanagedType.BStr)] string user);
sl@92
   543
sl@92
   544
		[return: MarshalAs(UnmanagedType.Interface)]
sl@92
   545
		[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(7)]
sl@92
   546
		IRunningTaskCollection GetInstances([In] int flags);
sl@92
   547
sl@92
   548
		[DispId(8)]
sl@92
   549
		DateTime LastRunTime { [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(8)] get; }
sl@92
   550
sl@92
   551
		[DispId(9)]
sl@92
   552
		int LastTaskResult { [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(9)] get; }
sl@92
   553
sl@92
   554
		[DispId(11)]
sl@92
   555
		int NumberOfMissedRuns { [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(11)] get; }
sl@92
   556
sl@92
   557
		[DispId(12)]
sl@92
   558
		DateTime NextRunTime { [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(12)] get; }
sl@92
   559
sl@92
   560
		[DispId(13)]
sl@92
   561
		ITaskDefinition Definition { [return: MarshalAs(UnmanagedType.Interface)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(13)] get; }
sl@92
   562
sl@92
   563
		[DispId(14)]
sl@92
   564
		string Xml { [return: MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(14)] get; }
sl@92
   565
sl@92
   566
		[return: MarshalAs(UnmanagedType.BStr)]
sl@92
   567
		[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(15)]
sl@92
   568
		string GetSecurityDescriptor([In] int securityInformation);
sl@92
   569
sl@92
   570
		[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(0x10)]
sl@92
   571
		void SetSecurityDescriptor([In, MarshalAs(UnmanagedType.BStr)] string sddl, [In] int flags);
sl@92
   572
sl@92
   573
		[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(0x11)]
sl@92
   574
		void Stop([In] int flags);
sl@92
   575
sl@92
   576
		[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), TypeLibFunc((short)0x41), DispId(0x60020011)]
sl@92
   577
		void GetRunTimes([In] ref SYSTEMTIME pstStart, [In] ref SYSTEMTIME pstEnd, [In, Out] ref uint pCount, [Out] IntPtr pRunTimes);
sl@92
   578
	}
sl@92
   579
sl@92
   580
	[ComImport, TypeLibType((short)0x10c0), Guid("86627EB4-42A7-41E4-A4D9-AC33A72F2D52")]
sl@92
   581
	public interface IRegisteredTaskCollection : IEnumerable
sl@92
   582
	{
sl@92
   583
		[DispId(0x60020000)]
sl@92
   584
		int Count { [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(0x60020000)] get; }
sl@92
   585
sl@92
   586
		[DispId(0)]
sl@92
   587
		IRegisteredTask this[object index] { [return: MarshalAs(UnmanagedType.Interface)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(0)] get; }
sl@92
   588
sl@92
   589
		[return: MarshalAs(UnmanagedType.Interface)]
sl@92
   590
		[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(-4)]
sl@92
   591
		new IEnumerator GetEnumerator();
sl@92
   592
	}
sl@92
   593
sl@92
   594
	[ComImport, Guid("416D8B73-CB41-4EA1-805C-9BE9A5AC4A74"), TypeLibType((short)0x10c0)]
sl@92
   595
	public interface IRegistrationInfo
sl@92
   596
	{
sl@92
   597
		[DispId(1)]
sl@92
   598
		string Description { [return: MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(1)] get; [param: In, MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(1)] set; }
sl@92
   599
sl@92
   600
		[DispId(2)]
sl@92
   601
		string Author { [return: MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(2)] get; [param: In, MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(2)] set; }
sl@92
   602
sl@92
   603
		[DispId(4)]
sl@92
   604
		string Version { [return: MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(4)] get; [param: In, MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(4)] set; }
sl@92
   605
sl@92
   606
		[DispId(5)]
sl@92
   607
		string Date { [return: MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(5)] get; [param: In, MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(5)] set; }
sl@92
   608
sl@92
   609
		[DispId(6)]
sl@92
   610
		string Documentation { [return: MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(6)] get; [param: In, MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(6)] set; }
sl@92
   611
sl@92
   612
		[DispId(9)]
sl@92
   613
		string XmlText { [return: MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(9)] get; [param: In, MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(9)] set; }
sl@92
   614
sl@92
   615
		[DispId(10)]
sl@92
   616
		string URI { [return: MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(10)] get; [param: In, MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(10)] set; }
sl@92
   617
sl@92
   618
		[DispId(11)]
sl@92
   619
		object SecurityDescriptor { [return: MarshalAs(UnmanagedType.Struct)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(11)] get; [param: In, MarshalAs(UnmanagedType.Struct)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(11)] set; }
sl@92
   620
sl@92
   621
		[DispId(12)]
sl@92
   622
		string Source { [return: MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(12)] get; [param: In, MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(12)] set; }
sl@92
   623
	}
sl@92
   624
sl@92
   625
	[ComImport, Guid("4C8FEC3A-C218-4E0C-B23D-629024DB91A2"), TypeLibType((short)0x10c0)]
sl@92
   626
	public interface IRegistrationTrigger : ITrigger
sl@92
   627
	{
sl@92
   628
		[DispId(1)]
sl@92
   629
		new TASK_TRIGGER_TYPE2 Type { [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(1)] get; }
sl@92
   630
sl@92
   631
		[DispId(2)]
sl@92
   632
		new string Id { [return: MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(2)] get; [param: In, MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(2)] set; }
sl@92
   633
sl@92
   634
		[DispId(3)]
sl@92
   635
		new IRepetitionPattern Repetition { [return: MarshalAs(UnmanagedType.Interface)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(3)] get; [param: In, MarshalAs(UnmanagedType.Interface)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(3)] set; }
sl@92
   636
sl@92
   637
		[DispId(4)]
sl@92
   638
		new string ExecutionTimeLimit { [return: MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(4)] get; [param: In, MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(4)] set; }
sl@92
   639
sl@92
   640
		[DispId(5)]
sl@92
   641
		new string StartBoundary { [return: MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(5)] get; [param: In, MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(5)] set; }
sl@92
   642
sl@92
   643
		[DispId(6)]
sl@92
   644
		new string EndBoundary { [return: MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(6)] get; [param: In, MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(6)] set; }
sl@92
   645
sl@92
   646
		[DispId(7)]
sl@92
   647
		new bool Enabled { [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(7)] get; [param: In] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(7)] set; }
sl@92
   648
sl@92
   649
		[DispId(20)]
sl@92
   650
		string Delay { [return: MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(20)] get; [param: In, MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(20)] set; }
sl@92
   651
	}
sl@92
   652
sl@92
   653
	[ComImport, TypeLibType((short)0x10c0), Guid("7FB9ACF1-26BE-400E-85B5-294B9C75DFD6")]
sl@92
   654
	public interface IRepetitionPattern
sl@92
   655
	{
sl@92
   656
		[DispId(1)]
sl@92
   657
		string Interval { [return: MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(1)] get; [param: In, MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(1)] set; }
sl@92
   658
sl@92
   659
		[DispId(2)]
sl@92
   660
		string Duration { [return: MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(2)] get; [param: In, MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(2)] set; }
sl@92
   661
sl@92
   662
		[DispId(3)]
sl@92
   663
		bool StopAtDurationEnd { [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(3)] get; [param: In] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(3)] set; }
sl@92
   664
	}
sl@92
   665
sl@92
   666
	[ComImport, Guid("653758FB-7B9A-4F1E-A471-BEEB8E9B834E"), TypeLibType((short)0x10c0), DefaultMember("InstanceGuid")]
sl@92
   667
	public interface IRunningTask
sl@92
   668
	{
sl@92
   669
		[DispId(1)]
sl@92
   670
		string Name { [return: MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(1)] get; }
sl@92
   671
sl@92
   672
		[DispId(0)]
sl@92
   673
		string InstanceGuid { [return: MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(0)] get; }
sl@92
   674
sl@92
   675
		[DispId(2)]
sl@92
   676
		string Path { [return: MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(2)] get; }
sl@92
   677
sl@92
   678
		[DispId(3)]
sl@92
   679
		TASK_STATE State { [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(3)] get; }
sl@92
   680
sl@92
   681
		[DispId(4)]
sl@92
   682
		string CurrentAction { [return: MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(4)] get; }
sl@92
   683
sl@92
   684
		[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(5)]
sl@92
   685
		void Stop();
sl@92
   686
sl@92
   687
		[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(6)]
sl@92
   688
		void Refresh();
sl@92
   689
sl@92
   690
		[DispId(7)]
sl@92
   691
		uint EnginePID { [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(7)] get; }
sl@92
   692
	}
sl@92
   693
sl@92
   694
	[ComImport, Guid("6A67614B-6828-4FEC-AA54-6D52E8F1F2DB"), TypeLibType((short)0x10c0)]
sl@92
   695
	public interface IRunningTaskCollection : IEnumerable
sl@92
   696
	{
sl@92
   697
		[DispId(1)]
sl@92
   698
		int Count { [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(1)] get; }
sl@92
   699
sl@92
   700
		[DispId(0)]
sl@92
   701
		IRunningTask this[object index] { [return: MarshalAs(UnmanagedType.Interface)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(0)] get; }
sl@92
   702
sl@92
   703
		[return: MarshalAs(UnmanagedType.Interface)]
sl@92
   704
		[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(-4)]
sl@92
   705
		new IEnumerator GetEnumerator();
sl@92
   706
	}
sl@92
   707
sl@92
   708
	[ComImport, Guid("754DA71B-4385-4475-9DD9-598294FA3641"), TypeLibType((short)0x10c0)]
sl@92
   709
	public interface ISessionStateChangeTrigger : ITrigger
sl@92
   710
	{
sl@92
   711
		[DispId(1)]
sl@92
   712
		new TASK_TRIGGER_TYPE2 Type { [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(1)] get; }
sl@92
   713
sl@92
   714
		[DispId(2)]
sl@92
   715
		new string Id { [return: MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(2)] get; [param: In, MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(2)] set; }
sl@92
   716
sl@92
   717
		[DispId(3)]
sl@92
   718
		new IRepetitionPattern Repetition { [return: MarshalAs(UnmanagedType.Interface)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(3)] get; [param: In, MarshalAs(UnmanagedType.Interface)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(3)] set; }
sl@92
   719
sl@92
   720
		[DispId(4)]
sl@92
   721
		new string ExecutionTimeLimit { [return: MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(4)] get; [param: In, MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(4)] set; }
sl@92
   722
sl@92
   723
		[DispId(5)]
sl@92
   724
		new string StartBoundary { [return: MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(5)] get; [param: In, MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(5)] set; }
sl@92
   725
sl@92
   726
		[DispId(6)]
sl@92
   727
		new string EndBoundary { [return: MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(6)] get; [param: In, MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(6)] set; }
sl@92
   728
sl@92
   729
		[DispId(7)]
sl@92
   730
		new bool Enabled { [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(7)] get; [param: In] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(7)] set; }
sl@92
   731
sl@92
   732
		[DispId(20)]
sl@92
   733
		string Delay { [return: MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(20)] get; [param: In, MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(20)] set; }
sl@92
   734
sl@92
   735
		[DispId(0x15)]
sl@92
   736
		string UserId { [return: MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(0x15)] get; [param: In, MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(0x15)] set; }
sl@92
   737
sl@92
   738
		[DispId(0x16)]
sl@92
   739
		TASK_SESSION_STATE_CHANGE_TYPE StateChange { [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(0x16)] get; [param: In] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(0x16)] set; }
sl@92
   740
	}
sl@92
   741
sl@92
   742
	[ComImport, TypeLibType((short)0x10c0), Guid("505E9E68-AF89-46B8-A30F-56162A83D537")]
sl@92
   743
	public interface IShowMessageAction : IAction
sl@92
   744
	{
sl@92
   745
		[DispId(1)]
sl@92
   746
		new string Id { [return: MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(1)] get; [param: In, MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(1)] set; }
sl@92
   747
sl@92
   748
		[DispId(2)]
sl@92
   749
		new TASK_ACTION_TYPE Type { [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(2)] get; }
sl@92
   750
sl@92
   751
		[DispId(10)]
sl@92
   752
		string Title { [return: MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(10)] get; [param: In, MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(10)] set; }
sl@92
   753
sl@92
   754
		[DispId(11)]
sl@92
   755
		string MessageBody { [return: MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(11)] get; [param: In, MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(11)] set; }
sl@92
   756
	}
sl@92
   757
sl@92
   758
	[ComImport, TypeLibType((short)0x10c0), Guid("F5BC8FC5-536D-4F77-B852-FBC1356FDEB6")]
sl@92
   759
	public interface ITaskDefinition
sl@92
   760
	{
sl@92
   761
		[DispId(1)]
sl@92
   762
		IRegistrationInfo RegistrationInfo { [return: MarshalAs(UnmanagedType.Interface)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(1)] get; [param: In, MarshalAs(UnmanagedType.Interface)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(1)] set; }
sl@92
   763
sl@92
   764
		[DispId(2)]
sl@92
   765
		ITriggerCollection Triggers { [return: MarshalAs(UnmanagedType.Interface)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(2)] get; [param: In, MarshalAs(UnmanagedType.Interface)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(2)] set; }
sl@92
   766
sl@92
   767
		[DispId(7)]
sl@92
   768
		ITaskSettings Settings { [return: MarshalAs(UnmanagedType.Interface)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(7)] get; [param: In, MarshalAs(UnmanagedType.Interface)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(7)] set; }
sl@92
   769
sl@92
   770
		[DispId(11)]
sl@92
   771
		string Data { [return: MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(11)] get; [param: In, MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(11)] set; }
sl@92
   772
sl@92
   773
		[DispId(12)]
sl@92
   774
		IPrincipal Principal { [return: MarshalAs(UnmanagedType.Interface)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(12)] get; [param: In, MarshalAs(UnmanagedType.Interface)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(12)] set; }
sl@92
   775
sl@92
   776
		[DispId(13)]
sl@92
   777
		IActionCollection Actions { [return: MarshalAs(UnmanagedType.Interface)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(13)] get; [param: In, MarshalAs(UnmanagedType.Interface)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(13)] set; }
sl@92
   778
sl@92
   779
		[DispId(14)]
sl@92
   780
		string XmlText { [return: MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(14)] get; [param: In, MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(14)] set; }
sl@92
   781
	}
sl@92
   782
sl@92
   783
	[ComImport, DefaultMember("Path"), Guid("8CFAC062-A080-4C15-9A88-AA7C2AF80DFC"), TypeLibType((short)0x10c0)]
sl@92
   784
	public interface ITaskFolder
sl@92
   785
	{
sl@92
   786
		[DispId(1)]
sl@92
   787
		string Name { [return: MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(1)] get; }
sl@92
   788
sl@92
   789
		[DispId(0)]
sl@92
   790
		string Path { [return: MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(0)] get; }
sl@92
   791
sl@92
   792
		[return: MarshalAs(UnmanagedType.Interface)]
sl@92
   793
		[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(3)]
sl@92
   794
		ITaskFolder GetFolder([MarshalAs(UnmanagedType.BStr)] string Path);
sl@92
   795
sl@92
   796
		[return: MarshalAs(UnmanagedType.Interface)]
sl@92
   797
		[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(4)]
sl@92
   798
		ITaskFolderCollection GetFolders([In] int flags);
sl@92
   799
sl@92
   800
		[return: MarshalAs(UnmanagedType.Interface)]
sl@92
   801
		[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(5)]
sl@92
   802
		ITaskFolder CreateFolder([In, MarshalAs(UnmanagedType.BStr)] string subFolderName, [In, Optional, MarshalAs(UnmanagedType.Struct)] object sddl);
sl@92
   803
sl@92
   804
		[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(6)]
sl@92
   805
		void DeleteFolder([MarshalAs(UnmanagedType.BStr)] string subFolderName, [In] int flags);
sl@92
   806
sl@92
   807
		[return: MarshalAs(UnmanagedType.Interface)]
sl@92
   808
		[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(7)]
sl@92
   809
		IRegisteredTask GetTask([In, MarshalAs(UnmanagedType.BStr)] string Path);
sl@92
   810
sl@92
   811
		[return: MarshalAs(UnmanagedType.Interface)]
sl@92
   812
		[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(8)]
sl@92
   813
		IRegisteredTaskCollection GetTasks([In] int flags);
sl@92
   814
sl@92
   815
		[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(9)]
sl@92
   816
		void DeleteTask([In, MarshalAs(UnmanagedType.BStr)] string Name, [In] int flags);
sl@92
   817
sl@92
   818
		[return: MarshalAs(UnmanagedType.Interface)]
sl@92
   819
		[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(10)]
sl@92
   820
		IRegisteredTask RegisterTask([In, MarshalAs(UnmanagedType.BStr)] string Path, [In, MarshalAs(UnmanagedType.BStr)] string XmlText, [In] int flags, [In, MarshalAs(UnmanagedType.Struct)] object UserId, [In, MarshalAs(UnmanagedType.Struct)] object password, [In] TASK_LOGON_TYPE LogonType, [In, Optional, MarshalAs(UnmanagedType.Struct)] object sddl);
sl@92
   821
sl@92
   822
		[return: MarshalAs(UnmanagedType.Interface)]
sl@92
   823
		[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(11)]
sl@92
   824
		IRegisteredTask RegisterTaskDefinition([In, MarshalAs(UnmanagedType.BStr)] string Path, [In, MarshalAs(UnmanagedType.Interface)] ITaskDefinition pDefinition, [In] int flags, [In, MarshalAs(UnmanagedType.Struct)] object UserId, [In, MarshalAs(UnmanagedType.Struct)] object password, [In] TASK_LOGON_TYPE LogonType, [In, Optional, MarshalAs(UnmanagedType.Struct)] object sddl);
sl@92
   825
sl@92
   826
		[return: MarshalAs(UnmanagedType.BStr)]
sl@92
   827
		[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(12)]
sl@92
   828
		string GetSecurityDescriptor(int securityInformation);
sl@92
   829
sl@92
   830
		[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(13)]
sl@92
   831
		void SetSecurityDescriptor([In, MarshalAs(UnmanagedType.BStr)] string sddl, [In] int flags);
sl@92
   832
	}
sl@92
   833
sl@92
   834
	[ComImport, TypeLibType((short)0x10c0), Guid("79184A66-8664-423F-97F1-637356A5D812")]
sl@92
   835
	public interface ITaskFolderCollection : IEnumerable
sl@92
   836
	{
sl@92
   837
		[DispId(0x60020000)]
sl@92
   838
		int Count { [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(0x60020000)] get; }
sl@92
   839
sl@92
   840
		[DispId(0)]
sl@92
   841
		ITaskFolder this[object index] { [return: MarshalAs(UnmanagedType.Interface)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(0)] get; }
sl@92
   842
sl@92
   843
		[return: MarshalAs(UnmanagedType.Interface)]
sl@92
   844
		[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(-4)]
sl@92
   845
		new IEnumerator GetEnumerator();
sl@92
   846
	}
sl@92
   847
sl@92
   848
	[ComImport, Guid("839D7762-5121-4009-9234-4F0D19394F04"), InterfaceType((short)1)]
sl@92
   849
	public interface ITaskHandler
sl@92
   850
	{
sl@92
   851
		[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
sl@92
   852
		void Start([In, MarshalAs(UnmanagedType.IUnknown)] object pHandlerServices, [In, MarshalAs(UnmanagedType.BStr)] string Data);
sl@92
   853
sl@92
   854
		[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
sl@92
   855
		void Stop([MarshalAs(UnmanagedType.Error)] out int pRetCode);
sl@92
   856
sl@92
   857
		[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
sl@92
   858
		void Pause();
sl@92
   859
sl@92
   860
		[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
sl@92
   861
		void Resume();
sl@92
   862
	}
sl@92
   863
sl@92
   864
	[ComImport, Guid("EAEC7A8F-27A0-4DDC-8675-14726A01A38A"), InterfaceType((short)1)]
sl@92
   865
	public interface ITaskHandlerStatus
sl@92
   866
	{
sl@92
   867
		[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
sl@92
   868
		void UpdateStatus([In] short percentComplete, [In, MarshalAs(UnmanagedType.BStr)] string statusMessage);
sl@92
   869
sl@92
   870
		[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
sl@92
   871
		void TaskCompleted([In, MarshalAs(UnmanagedType.Error)] int taskErrCode);
sl@92
   872
	}
sl@92
   873
sl@92
   874
	[ComImport, Guid("B4EF826B-63C3-46E4-A504-EF69E4F7EA4D"), TypeLibType((short)0x10c0)]
sl@92
   875
	public interface ITaskNamedValueCollection : IEnumerable
sl@92
   876
	{
sl@92
   877
		[DispId(1)]
sl@92
   878
		int Count { [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(1)] get; }
sl@92
   879
sl@92
   880
		[DispId(0)]
sl@92
   881
		ITaskNamedValuePair this[int index] { [return: MarshalAs(UnmanagedType.Interface)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(0)] get; }
sl@92
   882
sl@92
   883
		[return: MarshalAs(UnmanagedType.Interface)]
sl@92
   884
		[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(-4)]
sl@92
   885
		new IEnumerator GetEnumerator();
sl@92
   886
sl@92
   887
		[return: MarshalAs(UnmanagedType.Interface)]
sl@92
   888
		[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(2)]
sl@92
   889
		ITaskNamedValuePair Create([In, MarshalAs(UnmanagedType.BStr)] string Name, [In, MarshalAs(UnmanagedType.BStr)] string Value);
sl@92
   890
sl@92
   891
		[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(4)]
sl@92
   892
		void Remove([In] int index);
sl@92
   893
sl@92
   894
		[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(5)]
sl@92
   895
		void Clear();
sl@92
   896
	}
sl@92
   897
sl@92
   898
	[ComImport, TypeLibType((short)0x10c0), DefaultMember("Name"), Guid("39038068-2B46-4AFD-8662-7BB6F868D221")]
sl@92
   899
	public interface ITaskNamedValuePair
sl@92
   900
	{
sl@92
   901
		[DispId(0)]
sl@92
   902
		string Name { [return: MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(0)] get; [param: In, MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(0)] set; }
sl@92
   903
sl@92
   904
		[DispId(1)]
sl@92
   905
		string Value { [return: MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(1)] get; [param: In, MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(1)] set; }
sl@92
   906
	}
sl@92
   907
sl@92
   908
	[ComImport, TypeLibType((short)0x10c0), DefaultMember("TargetServer"), Guid("2FABA4C7-4DA9-4013-9697-20CC3FD40F85")]
sl@92
   909
	public interface ITaskService
sl@92
   910
	{
sl@92
   911
		[return: MarshalAs(UnmanagedType.Interface)]
sl@92
   912
		[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(1)]
sl@92
   913
		ITaskFolder GetFolder([In, MarshalAs(UnmanagedType.BStr)] string Path);
sl@92
   914
sl@92
   915
		[return: MarshalAs(UnmanagedType.Interface)]
sl@92
   916
		[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(2)]
sl@92
   917
		IRunningTaskCollection GetRunningTasks([In] int flags);
sl@92
   918
sl@92
   919
		[return: MarshalAs(UnmanagedType.Interface)]
sl@92
   920
		[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(3)]
sl@92
   921
		ITaskDefinition NewTask([In] uint flags);
sl@92
   922
sl@92
   923
		[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(4)]
sl@92
   924
		void Connect([In, Optional, MarshalAs(UnmanagedType.Struct)] object serverName, [In, Optional, MarshalAs(UnmanagedType.Struct)] object user, [In, Optional, MarshalAs(UnmanagedType.Struct)] object domain, [In, Optional, MarshalAs(UnmanagedType.Struct)] object password);
sl@92
   925
sl@92
   926
		[DispId(5)]
sl@92
   927
		bool Connected { [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(5)] get; }
sl@92
   928
sl@92
   929
		[DispId(0)]
sl@92
   930
		string TargetServer { [return: MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(0)] get; }
sl@92
   931
sl@92
   932
		[DispId(6)]
sl@92
   933
		string ConnectedUser { [return: MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(6)] get; }
sl@92
   934
sl@92
   935
		[DispId(7)]
sl@92
   936
		string ConnectedDomain { [return: MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(7)] get; }
sl@92
   937
sl@92
   938
		[DispId(8)]
sl@92
   939
		uint HighestVersion { [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(8)] get; }
sl@92
   940
	}
sl@92
   941
sl@92
   942
	[ComImport, TypeLibType((short)0x10c0), Guid("8FD4711D-2D02-4C8C-87E3-EFF699DE127E")]
sl@92
   943
	public interface ITaskSettings
sl@92
   944
	{
sl@92
   945
		[DispId(3)]
sl@92
   946
		bool AllowDemandStart { [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(3)] get; [param: In] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(3)] set; }
sl@92
   947
sl@92
   948
		[DispId(4)]
sl@92
   949
		string RestartInterval { [return: MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(4)] get; [param: In, MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(4)] set; }
sl@92
   950
sl@92
   951
		[DispId(5)]
sl@92
   952
		int RestartCount { [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(5)] get; [param: In] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(5)] set; }
sl@92
   953
sl@92
   954
		[DispId(6)]
sl@92
   955
		TASK_INSTANCES_POLICY MultipleInstances { [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(6)] get; [param: In] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(6)] set; }
sl@92
   956
sl@92
   957
		[DispId(7)]
sl@92
   958
		bool StopIfGoingOnBatteries { [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(7)] get; [param: In] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(7)] set; }
sl@92
   959
sl@92
   960
		[DispId(8)]
sl@92
   961
		bool DisallowStartIfOnBatteries { [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(8)] get; [param: In] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(8)] set; }
sl@92
   962
sl@92
   963
		[DispId(9)]
sl@92
   964
		bool AllowHardTerminate { [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(9)] get; [param: In] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(9)] set; }
sl@92
   965
sl@92
   966
		[DispId(10)]
sl@92
   967
		bool StartWhenAvailable { [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(10)] get; [param: In] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(10)] set; }
sl@92
   968
sl@92
   969
		[DispId(11)]
sl@92
   970
		string XmlText { [return: MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(11)] get; [param: In, MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(11)] set; }
sl@92
   971
sl@92
   972
		[DispId(12)]
sl@92
   973
		bool RunOnlyIfNetworkAvailable { [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(12)] get; [param: In] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(12)] set; }
sl@92
   974
sl@92
   975
		[DispId(13)]
sl@92
   976
		string ExecutionTimeLimit { [return: MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(13)] get; [param: In, MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(13)] set; }
sl@92
   977
sl@92
   978
		[DispId(14)]
sl@92
   979
		bool Enabled { [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(14)] get; [param: In] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(14)] set; }
sl@92
   980
sl@92
   981
		[DispId(15)]
sl@92
   982
		string DeleteExpiredTaskAfter { [return: MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(15)] get; [param: In, MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(15)] set; }
sl@92
   983
sl@92
   984
		[DispId(0x10)]
sl@92
   985
		int Priority { [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(0x10)] get; [param: In] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(0x10)] set; }
sl@92
   986
sl@92
   987
		[DispId(0x11)]
sl@92
   988
		TASK_COMPATIBILITY Compatibility { [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(0x11)] get; [param: In] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(0x11)] set; }
sl@92
   989
sl@92
   990
		[DispId(0x12)]
sl@92
   991
		bool Hidden { [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(0x12)] get; [param: In] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(0x12)] set; }
sl@92
   992
sl@92
   993
		[DispId(0x13)]
sl@92
   994
		IIdleSettings IdleSettings { [return: MarshalAs(UnmanagedType.Interface)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(0x13)] get; [param: In, MarshalAs(UnmanagedType.Interface)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(0x13)] set; }
sl@92
   995
sl@92
   996
		[DispId(20)]
sl@92
   997
		bool RunOnlyIfIdle { [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(20)] get; [param: In] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(20)] set; }
sl@92
   998
sl@92
   999
		[DispId(0x15)]
sl@92
  1000
		bool WakeToRun { [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(0x15)] get; [param: In] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(0x15)] set; }
sl@92
  1001
sl@92
  1002
		[DispId(0x16)]
sl@92
  1003
		INetworkSettings NetworkSettings { [return: MarshalAs(UnmanagedType.Interface)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(0x16)] get; [param: In, MarshalAs(UnmanagedType.Interface)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(0x16)] set; }
sl@92
  1004
	}
sl@92
  1005
sl@92
  1006
	[ComImport, Guid("2C05C3F0-6EED-4C05-A15F-ED7D7A98A369"), TypeLibType((short)0x10c0)]
sl@92
  1007
	public interface ITaskSettings2
sl@92
  1008
	{
sl@92
  1009
		[DispId(30)]
sl@92
  1010
		bool DisallowStartOnRemoteAppSession { [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(30)] get; [param: In] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(30)] set; }
sl@92
  1011
sl@92
  1012
		[DispId(0x1f)]
sl@92
  1013
		bool UseUnifiedSchedulingEngine { [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(0x1f)] get; [param: In] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(0x1f)] set; }
sl@92
  1014
	}
sl@92
  1015
sl@92
  1016
	[ComImport, Guid("3E4C9351-D966-4B8B-BB87-CEBA68BB0107"), InterfaceType((short)1)]
sl@92
  1017
	public interface ITaskVariables
sl@92
  1018
	{
sl@92
  1019
		[return: MarshalAs(UnmanagedType.BStr)]
sl@92
  1020
		[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
sl@92
  1021
		string GetInput();
sl@92
  1022
sl@92
  1023
		[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
sl@92
  1024
		void SetOutput([In, MarshalAs(UnmanagedType.BStr)] string input);
sl@92
  1025
sl@92
  1026
		[return: MarshalAs(UnmanagedType.BStr)]
sl@92
  1027
		[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
sl@92
  1028
		string GetContext();
sl@92
  1029
	}
sl@92
  1030
sl@92
  1031
	[ComImport, Guid("B45747E0-EBA7-4276-9F29-85C5BB300006"), TypeLibType((short)0x10c0)]
sl@92
  1032
	public interface ITimeTrigger : ITrigger
sl@92
  1033
	{
sl@92
  1034
		[DispId(1)]
sl@92
  1035
		new TASK_TRIGGER_TYPE2 Type { [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(1)] get; }
sl@92
  1036
sl@92
  1037
		[DispId(2)]
sl@92
  1038
		new string Id { [return: MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(2)] get; [param: In, MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(2)] set; }
sl@92
  1039
sl@92
  1040
		[DispId(3)]
sl@92
  1041
		new IRepetitionPattern Repetition { [return: MarshalAs(UnmanagedType.Interface)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(3)] get; [param: In, MarshalAs(UnmanagedType.Interface)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(3)] set; }
sl@92
  1042
sl@92
  1043
		[DispId(4)]
sl@92
  1044
		new string ExecutionTimeLimit { [return: MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(4)] get; [param: In, MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(4)] set; }
sl@92
  1045
sl@92
  1046
		[DispId(5)]
sl@92
  1047
		new string StartBoundary { [return: MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(5)] get; [param: In, MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(5)] set; }
sl@92
  1048
sl@92
  1049
		[DispId(6)]
sl@92
  1050
		new string EndBoundary { [return: MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(6)] get; [param: In, MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(6)] set; }
sl@92
  1051
sl@92
  1052
		[DispId(7)]
sl@92
  1053
		new bool Enabled { [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(7)] get; [param: In] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(7)] set; }
sl@92
  1054
sl@92
  1055
		[DispId(20)]
sl@92
  1056
		string RandomDelay { [return: MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(20)] get; [param: In, MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(20)] set; }
sl@92
  1057
	}
sl@92
  1058
sl@92
  1059
	[ComImport, TypeLibType((short)0x10c0), Guid("09941815-EA89-4B5B-89E0-2A773801FAC3")]
sl@92
  1060
	public interface ITrigger
sl@92
  1061
	{
sl@92
  1062
		[DispId(1)]
sl@92
  1063
		TASK_TRIGGER_TYPE2 Type { [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(1)] get; }
sl@92
  1064
sl@92
  1065
		[DispId(2)]
sl@92
  1066
		string Id { [return: MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(2)] get; [param: In, MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(2)] set; }
sl@92
  1067
sl@92
  1068
		[DispId(3)]
sl@92
  1069
		IRepetitionPattern Repetition { [return: MarshalAs(UnmanagedType.Interface)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(3)] get; [param: In, MarshalAs(UnmanagedType.Interface)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(3)] set; }
sl@92
  1070
sl@92
  1071
		[DispId(4)]
sl@92
  1072
		string ExecutionTimeLimit { [return: MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(4)] get; [param: In, MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(4)] set; }
sl@92
  1073
sl@92
  1074
		[DispId(5)]
sl@92
  1075
		string StartBoundary { [return: MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(5)] get; [param: In, MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(5)] set; }
sl@92
  1076
sl@92
  1077
		[DispId(6)]
sl@92
  1078
		string EndBoundary { [return: MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(6)] get; [param: In, MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(6)] set; }
sl@92
  1079
sl@92
  1080
		[DispId(7)]
sl@92
  1081
		bool Enabled { [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(7)] get; [param: In] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(7)] set; }
sl@92
  1082
	}
sl@92
  1083
sl@92
  1084
	[ComImport, TypeLibType((short)0x10c0), Guid("85DF5081-1B24-4F32-878A-D9D14DF4CB77")]
sl@92
  1085
	public interface ITriggerCollection : IEnumerable
sl@92
  1086
	{
sl@92
  1087
		[DispId(1)]
sl@92
  1088
		int Count { [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(1)] get; }
sl@92
  1089
sl@92
  1090
		[DispId(0)]
sl@92
  1091
		ITrigger this[int index] { [return: MarshalAs(UnmanagedType.Interface)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(0)] get; }
sl@92
  1092
sl@92
  1093
		[return: MarshalAs(UnmanagedType.Interface)]
sl@92
  1094
		[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(-4)]
sl@92
  1095
		new IEnumerator GetEnumerator();
sl@92
  1096
sl@92
  1097
		[return: MarshalAs(UnmanagedType.Interface)]
sl@92
  1098
		[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(2)]
sl@92
  1099
		ITrigger Create([In] TASK_TRIGGER_TYPE2 Type);
sl@92
  1100
sl@92
  1101
		[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(4)]
sl@92
  1102
		void Remove([In, MarshalAs(UnmanagedType.Struct)] object index);
sl@92
  1103
sl@92
  1104
		[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(5)]
sl@92
  1105
		void Clear();
sl@92
  1106
	}
sl@92
  1107
sl@92
  1108
	[ComImport, Guid("5038FC98-82FF-436D-8728-A512A57C9DC1"), TypeLibType((short)0x10c0)]
sl@92
  1109
	public interface IWeeklyTrigger : ITrigger
sl@92
  1110
	{
sl@92
  1111
		[DispId(1)]
sl@92
  1112
		new TASK_TRIGGER_TYPE2 Type { [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(1)] get; }
sl@92
  1113
sl@92
  1114
		[DispId(2)]
sl@92
  1115
		new string Id { [return: MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(2)] get; [param: In, MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(2)] set; }
sl@92
  1116
sl@92
  1117
		[DispId(3)]
sl@92
  1118
		new IRepetitionPattern Repetition { [return: MarshalAs(UnmanagedType.Interface)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(3)] get; [param: In, MarshalAs(UnmanagedType.Interface)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(3)] set; }
sl@92
  1119
sl@92
  1120
		[DispId(4)]
sl@92
  1121
		new string ExecutionTimeLimit { [return: MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(4)] get; [param: In, MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(4)] set; }
sl@92
  1122
sl@92
  1123
		[DispId(5)]
sl@92
  1124
		new string StartBoundary { [return: MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(5)] get; [param: In, MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(5)] set; }
sl@92
  1125
sl@92
  1126
		[DispId(6)]
sl@92
  1127
		new string EndBoundary { [return: MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(6)] get; [param: In, MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(6)] set; }
sl@92
  1128
sl@92
  1129
		[DispId(7)]
sl@92
  1130
		new bool Enabled { [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(7)] get; [param: In] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(7)] set; }
sl@92
  1131
sl@92
  1132
		[DispId(0x19)]
sl@92
  1133
		short DaysOfWeek { [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(0x19)] get; [param: In] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(0x19)] set; }
sl@92
  1134
sl@92
  1135
		[DispId(0x1a)]
sl@92
  1136
		short WeeksInterval { [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(0x1a)] get; [param: In] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(0x1a)] set; }
sl@92
  1137
sl@92
  1138
		[DispId(20)]
sl@92
  1139
		string RandomDelay { [return: MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(20)] get; [param: In, MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(20)] set; }
sl@92
  1140
	}
sl@92
  1141
sl@92
  1142
	[ComImport, Guid("839D7762-5121-4009-9234-4F0D19394F04"), CoClass(typeof(TaskHandlerPSClass))]
sl@92
  1143
	public interface TaskHandlerPS : ITaskHandler
sl@92
  1144
	{
sl@92
  1145
	}
sl@92
  1146
sl@92
  1147
	[ComImport, TypeLibType((short)2), ClassInterface((short)0), Guid("F2A69DB7-DA2C-4352-9066-86FEE6DACAC9")]
sl@92
  1148
	public class TaskHandlerPSClass : ITaskHandler, TaskHandlerPS
sl@92
  1149
	{
sl@92
  1150
		[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
sl@92
  1151
		public virtual extern void Pause();
sl@92
  1152
sl@92
  1153
		[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
sl@92
  1154
		public virtual extern void Resume();
sl@92
  1155
sl@92
  1156
		[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
sl@92
  1157
		public virtual extern void Start([In, MarshalAs(UnmanagedType.IUnknown)] object pHandlerServices, [In, MarshalAs(UnmanagedType.BStr)] string Data);
sl@92
  1158
sl@92
  1159
		[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
sl@92
  1160
		public virtual extern void Stop([MarshalAs(UnmanagedType.Error)] out int pRetCode);
sl@92
  1161
	}
sl@92
  1162
sl@92
  1163
	[ComImport, Guid("EAEC7A8F-27A0-4DDC-8675-14726A01A38A"), CoClass(typeof(TaskHandlerStatusPSClass))]
sl@92
  1164
	public interface TaskHandlerStatusPS : ITaskHandlerStatus
sl@92
  1165
	{
sl@92
  1166
	}
sl@92
  1167
sl@92
  1168
	[ComImport, ClassInterface((short)0), Guid("9F15266D-D7BA-48F0-93C1-E6895F6FE5AC"), TypeLibType((short)2)]
sl@92
  1169
	public class TaskHandlerStatusPSClass : ITaskHandlerStatus, TaskHandlerStatusPS, ITaskVariables
sl@92
  1170
	{
sl@92
  1171
		[return: MarshalAs(UnmanagedType.BStr)]
sl@92
  1172
		[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
sl@92
  1173
		public virtual extern string GetContext();
sl@92
  1174
sl@92
  1175
		[return: MarshalAs(UnmanagedType.BStr)]
sl@92
  1176
		[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
sl@92
  1177
		public virtual extern string GetInput();
sl@92
  1178
sl@92
  1179
		[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
sl@92
  1180
		public virtual extern void SetOutput([In, MarshalAs(UnmanagedType.BStr)] string input);
sl@92
  1181
sl@92
  1182
		[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
sl@92
  1183
		public virtual extern void TaskCompleted([In, MarshalAs(UnmanagedType.Error)] int taskErrCode);
sl@92
  1184
sl@92
  1185
		[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
sl@92
  1186
		public virtual extern void UpdateStatus([In] short percentComplete, [In, MarshalAs(UnmanagedType.BStr)] string statusMessage);
sl@92
  1187
	}
sl@92
  1188
sl@92
  1189
	[ComImport, CoClass(typeof(TaskSchedulerClass)), Guid("2FABA4C7-4DA9-4013-9697-20CC3FD40F85")]
sl@92
  1190
	public interface TaskScheduler : ITaskService
sl@92
  1191
	{
sl@92
  1192
	}
sl@92
  1193
sl@92
  1194
	[ComImport, ClassInterface((short)0), DefaultMember("TargetServer"), Guid("0F87369F-A4E5-4CFC-BD3E-73E6154572DD"), TypeLibType((short)2)]
sl@92
  1195
	public class TaskSchedulerClass : ITaskService, TaskScheduler
sl@92
  1196
	{
sl@92
  1197
		[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(4)]
sl@92
  1198
		public virtual extern void Connect([In, Optional, MarshalAs(UnmanagedType.Struct)] object serverName, [In, Optional, MarshalAs(UnmanagedType.Struct)] object user, [In, Optional, MarshalAs(UnmanagedType.Struct)] object domain, [In, Optional, MarshalAs(UnmanagedType.Struct)] object password);
sl@92
  1199
sl@92
  1200
		[return: MarshalAs(UnmanagedType.Interface)]
sl@92
  1201
		[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(1)]
sl@92
  1202
		public virtual extern ITaskFolder GetFolder([In, MarshalAs(UnmanagedType.BStr)] string Path);
sl@92
  1203
sl@92
  1204
		[return: MarshalAs(UnmanagedType.Interface)]
sl@92
  1205
		[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(2)]
sl@92
  1206
		public virtual extern IRunningTaskCollection GetRunningTasks([In] int flags);
sl@92
  1207
sl@92
  1208
		[return: MarshalAs(UnmanagedType.Interface)]
sl@92
  1209
		[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(3)]
sl@92
  1210
		public virtual extern ITaskDefinition NewTask([In] uint flags);
sl@92
  1211
sl@92
  1212
		[DispId(5)]
sl@92
  1213
		public virtual extern bool Connected { [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(5)] get; }
sl@92
  1214
sl@92
  1215
		[DispId(7)]
sl@92
  1216
		public virtual extern string ConnectedDomain { [return: MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(7)] get; }
sl@92
  1217
sl@92
  1218
		[DispId(6)]
sl@92
  1219
		public virtual extern string ConnectedUser { [return: MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(6)] get; }
sl@92
  1220
sl@92
  1221
		[DispId(8)]
sl@92
  1222
		public virtual extern uint HighestVersion { [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(8)] get; }
sl@92
  1223
sl@92
  1224
		[DispId(0)]
sl@92
  1225
		public virtual extern string TargetServer { [return: MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(0)] get; }
sl@92
  1226
	}
sl@92
  1227
}