TASK_ACTION_TYPE enumeration

Defines the type of actions that a task can perform.

Syntax


typedef enum  { 
  TASK_ACTION_EXEC          = 0,
  TASK_ACTION_COM_HANDLER   = 5,
  TASK_ACTION_SEND_EMAIL    = 6,
  TASK_ACTION_SHOW_MESSAGE  = 7
} 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

Task Scheduler Enumerated Types
Task Scheduler
IAction
IExecAction
IEmailAction
IShowMessageAction
IComHandlerAction

 

 

Community Additions

ADD
Show: