2.3.13 TASK_STATE

The SchRpcGetInstanceInfo and SchRpcGetTaskInfo methods return information about the current state of the task in a DWORD return parameter. The state is encoded as follows.

Value

Meaning

TASK_STATE_UNKNOWN

0x00000000

 Unable to determine the current state.

TASK_STATE_DISABLED

0x00000001

The task is disabled and will not run.

TASK_STATE_QUEUED

0x00000002

The task has been triggered but is not yet running.

TASK_STATE_READY

0x00000003

The task is ready to run but has not yet been triggered.

TASK_STATE_RUNNING

0x00000004

The task is running.