TASK_SESSION_STATE_CHANGE_TYPE enumeration

Defines what kind of Terminal Server session state change you can use to trigger a task to start. These changes are used to specify the type of state change in the ISessionStateChangeTrigger interface.

Syntax


typedef enum  { 
  TASK_CONSOLE_CONNECT     = 1,
  TASK_CONSOLE_DISCONNECT  = 2,
  TASK_REMOTE_CONNECT      = 3,
  TASK_REMOTE_DISCONNECT   = 4,
  TASK_SESSION_LOCK        = 7,
  TASK_SESSION_UNLOCK      = 8
} TASK_SESSION_STATE_CHANGE_TYPE;

Constants

TASK_CONSOLE_CONNECT

Terminal Server console connection state change. For example, when you connect to a user session on the local computer by switching users on the computer.

TASK_CONSOLE_DISCONNECT

Terminal Server console disconnection state change. For example, when you disconnect to a user session on the local computer by switching users on the computer.

TASK_REMOTE_CONNECT

Terminal Server remote connection state change. For example, when a user connects to a user session by using the Remote Desktop Connection program from a remote computer.

TASK_REMOTE_DISCONNECT

Terminal Server remote disconnection state change. For example, when a user disconnects from a user session while using the Remote Desktop Connection program from a remote computer.

TASK_SESSION_LOCK

Terminal Server session locked state change. For example, this state change causes the task to run when the computer is locked.

TASK_SESSION_UNLOCK

Terminal Server session unlocked state change. For example, this state change causes the task to run when the computer is unlocked.

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
ISessionStateChangeTrigger

 

 

Community Additions

ADD
Show:
© 2014 Microsoft