_TASK_ACTION_TYPE Enumeration

Defines the type of actions that a task can perform.

Syntax

typedef enum _TASK_ACTION_TYPE {
  TASK_ACTION_EXEC          ,
  TASK_ACTION_COM_HANDLER   ,
  TASK_ACTION_SEND_EMAIL    ,
  TASK_ACTION_SHOW_MESSAGE
} TASK_ACTION_TYPE;

Constants

TASK_ACTION_EXEC This action performs a command-line operation. For example, the action can run a script, launch an executable, or, if the name of a document is provided, find its associated application and launch the application with the document.
TASK_ACTION_COM_HANDLER This action fires a handler. This action can only be used if the task Compatibility property is set to TASK_COMPATIBILITY_V2.
TASK_ACTION_SEND_EMAIL This action sends email message. This action can only be used if the task Compatibility property is set to TASK_COMPATIBILITY_V2.
TASK_ACTION_SHOW_MESSAGE This action shows a message box. This action can only be used if the task Compatibility property is set to TASK_COMPATIBILITY_V2.

Remarks

The action type is defined when the action is created and cannot be changed later. For C++ development, see IActionCollection::Create. For scripting development, see ActionCollection.Create.

Requirements

   
Minimum supported client Windows Vista [desktop apps only]
Minimum supported server Windows Server 2008 [desktop apps only]
Header taskschd.h

See Also

IAction

IComHandlerAction

IEmailAction

IExecAction

IShowMessageAction

Task Scheduler

Task Scheduler Enumerated Types