ITaskSettings interface

Properties

The ITaskSettings interface has these properties.

PropertyAccess typeDescription

AllowDemandStart(요청 시 작업이 실행되도록 허용)

Read/write

Gets or sets a Boolean value that indicates that the task can be started by using either the Run command or the Context menu.

사용 예)

put_AllowDemandStart(VARIANT_FALSE);

AllowHardTerminate(요청할 때 실행 중인 작업이 끝나지 않으면 강제로 작업 중지)

Read/write

Gets or sets a Boolean value that indicates that the task may be terminated by using TerminateProcess.

사용 예)

put_AllowHardTerminate(VARIANT_FALSE); // 작업 중지

Compatibility

Read/write

Gets or sets an integer value that indicates which version of Task Scheduler a task is compatible with.

DeleteExpiredTaskAfter

Read/write

Gets or sets the amount of time that the Task Scheduler will wait before deleting the task after it expires.

DisallowStartIfOnBatteries(컴퓨터의 AC 전원이 켜져 있는 경우에만 작업 시작)

Read/write

Gets or sets a Boolean value that indicates that the task will not be started if the computer is running on battery power.

Enabled

Read/write

Gets or sets a Boolean value that indicates that the task is enabled. The task can be performed only when this setting istrue.

ExecutionTimeLimit

Read/write

Gets or sets the amount of time that is allowed to complete the task.

Hidden(숨김)

Read/write

Gets or sets a Boolean value that indicates that the task will not be visible in the UI by default.

사용 예)

put_Hidden(VARIANT_TRUE)

IdleSettings

Read/write

Gets or sets the information that specifies how the Task Scheduler performs tasks when the computer is in an idle state.

MultipleInstances

Read/write

Gets or sets the policy that defines how the Task Scheduler handles multiple instances of the task.

NetworkSettings

Gets or sets the network settings object that contains a network profile identifier and name. If theRunOnlyIfNetworkAvailable property of ITaskSettings is trueand a network propfile is specified in the NetworkSettingsproperty, then the task will run only if the specified network profile is available.

Priority

Read/write

Gets or sets the priority level of the task.

RestartCount(다음 횟수까지 다시 시작 시도)

Read/write

Gets or sets the number of times that the Task Scheduler will attempt to restart the task.

사용 예)

put_RestartCount(10);

RestartInterval(작업이 실패하는 경우 다시 시작 간격)

Read/write

Gets or sets a value that specifies how long the Task Scheduler will attempt to restart the task.

사용 예)

put_RestartInterval(_bstr_t(L"PT5M"));

RunOnlyIfNetworkAvailable(다음 네트워크 연결을 사용할 수 있는 경우에만 시작)

Read/write

Gets or sets a Boolean value that indicates that the Task Scheduler will run the task only when a network is available.

put_RunOnlyIfNetworkAvailable(VARIANT_TRUE)

StartWhenAvailable(예약된 시작 시간을 놓친 경우 가능한 대로 빨리 작업 시작)


Read/write

Gets or sets a Boolean value that indicates that the Task Scheduler can start the task at any time after its scheduled time has passed.

put_StartWhenAvailable(VARIANT_TRUE);

StopIfGoingOnBatteries()

(컴퓨터 배터리 전원으로 전환되는 경우 중지)

Read/write

Gets or sets a Boolean value that indicates that the task will be stopped if the computer switches to battery power.


WakeToRun(이 작업을 실행하기 위해 절전 모드 종료)

Read/write

Gets or sets a Boolean value that indicates that the Task Scheduler will wake the computer before it runs the task.

put_WakeToRun(VARIANT_TRUE);

XmlText

Read/write

Gets or sets an XML-formatted definition of the task settings.

 

'c/c++ > 레퍼런스' 카테고리의 다른 글

ILogonTrigger interface  (0) 2014.03.03
Shellexecute()  (0) 2013.02.06
PathFindSuffixArray 경로에 찾고자 하는 문자열 있는지 확인  (0) 2013.01.16