3.2.5.4 ITaskSchedulerService Message Processing Events and Sequencing Rules

The ITaskSchedulerService RPC interface provides methods to control scheduled tasks using XML task definitions.<64>

If the server implements the ITaskSchedulerService interface, it MUST implement the methods as specified in the following table.

Methods in RPC Opnum Order

Method

Description

SchRpcHighestVersion

The SchRpcHighestVersion method returns the highest version of the Task Scheduler Remoting Protocol supported by the server.

Opnum: 0

SchRpcRegisterTask

The SchRpcRegisterTask method registers a task with the server.

Opnum: 1

SchRpcRetrieveTask

The SchRpcRetrieveTask method returns a task definition.

Opnum: 2

SchRpcCreateFolder

 The SchRpcCreateFolder method creates a new folder.

Opnum: 3

SchRpcSetSecurity

The SchRpcSetSecurity method sets a security descriptor on a task or folder.

Opnum: 4

SchRpcGetSecurity

The SchRpcGetSecurity method gets the security descriptor associated with a task or folder.

Opnum: 5

SchRpcEnumFolders

The SchRpcEnumFolders method retrieves a list of folders on the server.

Opnum: 6

SchRpcEnumTasks

The SchRpcEnumTasks method returns the list of tasks in a specific folder.

Opnum: 7

SchRpcEnumInstances

The SchRpcEnumInstances method returns a list of instances of a specified task that are currently running.

Opnum: 8

SchRpcGetInstanceInfo

The SchRpcGetInstanceInfo method gets information about an instance of a running task.

Opnum: 9

SchRpcStopInstance

The SchRpcStopInstance method stops a specified instance of a task.

Opnum: 10

SchRpcStop

The SchRpcStop method stops all currently running instances of a task specified by a path.

Opnum: 11

SchRpcRun

The SchRpcRun method runs a task specified by a path.

Opnum: 12

SchRpcDelete

The SchRpcDelete method deletes a task or folder in the task store.

Opnum: 13

SchRpcRename

The SchRpcRename method is unused.

Opnum: 14

SchRpcScheduledRuntimes

The SchRpcScheduledRuntimes method returns scheduled run times.

Opnum: 15

SchRpcGetLastRunInfo

The SchRpcGetLastRunInfo method returns information about the task's last run.

Opnum: 16

SchRpcGetTaskInfo

The SchRpcGetTaskInfo method returns information about a specified task.

Opnum: 17

SchRpcGetNumberOfMissedRuns

The SchRpcGetNumberOfMissedRuns method returns the number of times a task was scheduled to run but did not due to the server being unavailable (for example, powered off).

Opnum: 18

SchRpcEnableTask

The SchRpcEnableTask method enables or disables a task.

Opnum: 19