Little Registry Cleaner/Common Tools/TaskScheduler/Task.cs
(开头部分) 77KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Runtime.InteropServices;
using System.Runtime.InteropServices.ComTypes;
namespace Common_Tools.TaskScheduler
{
#region Enumerations
/// <summary>Defines what versions of Task Scheduler or the AT command that the task is compatible with.</summary>
public enum TaskCompatibility
{
/// <summary>The task is compatible with the AT command.</summary>
AT,
/// <summary>The task is compatible with Task Scheduler 1.0.</summary>
V1,
/// <summary>The task is compatible with Task Scheduler 2.0.</summary>
V2
}
/// <summary>Defines how the Task Scheduler service creates, updates, or disables the task.</summary>
public enum TaskCreation
{
/// <summary>The Task Scheduler service registers the task as a new task.</summary>
Create = 2,
/// <summary>The Task Scheduler service either registers the task as a new task or as an updated version if the task already exists. Equivalent to Create | Update.</summary>
CreateOrUpdate = 6,
/// <summary>The Task Scheduler service registers the disabled task. A disabled task cannot run until it is enabled. For more information, see Enabled Property of TaskSettings and Enabled Property of RegisteredTask.</summary>
Disable = 8,
/// <summary>The Task Scheduler service is prevented from adding the allow access-control entry (ACE) for the context principal. When the TaskFolder.RegisterTaskDefinition or TaskFolder.RegisterTask functions are called with this flag to update a task, the Task Scheduler service does not add the ACE for the new context principal and does not remove the ACE from the old context principal.</summary>
DontAddPrincipalAce = 0x10,
/// <summary>The Task Scheduler service creates the task, but ignores the registration triggers in the task. By ignoring the registration triggers, the task will not execute when it is registered unless a time-based trigger causes it to execute on registration.</summary>
IgnoreRegistrationTriggers = 0x20,
/// <summary>The Task Scheduler service registers the task as an updated version of an existing task. When a task with a registration trigger is updated, the task will execute after the update occurs.</summary>
Update = 4,
/// <summary>The Task Scheduler service checks the syntax of the XML that describes the task but does not register the task. This constant cannot be combined with the Create, Update, or CreateOrUpdate values.</summary>
ValidateOnly = 1
}
/// <summary>Defines how the Task Scheduler handles existing instances of the task when it starts a new instance of the task.</summary>
public enum TaskInstancesPolicy
{
/// <summary>Starts new instance while an existing instance is running.</summary>
Parallel,
/// <summary>Starts a new instance of the task after all other instances of the task are complete.</summary>
Queue,
/// <summary>Does not start a new instance if an existing instance of the task is running.</summary>
IgnoreNew,
/// <summary>Stops an existing instance of the task before it starts a new instance.</summary>
StopExisting
}
/// <summary>Defines what logon technique is required to run a task.</summary>
public enum TaskLogonType
{
/// <summary>The logon method is not specified. Used for non-NT credentials.</summary>
None,
/// <summary>Use a password for logging on the user. The password must be supplied at registration time.</summary>
Password,
/// <summary>Use an existing interactive token to run a task. The user must log on using a service for user (S4U) logon. When an S4U logon is used, no password is stored by the system and there is no access to either the network or to encrypted files.</summary>
S4U,
后面还有 2478 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。