ISessionStateChangeTrigger::StateChange property

Gets or sets the kind of Terminal Server session change that would trigger a task launch.

This property is read/write.

Syntax


HRESULT put_StateChange(
  [in]   TASK_SESSION_STATE_CHANGE_TYPE type
);

HRESULT get_StateChange(
  [out]  TASK_SESSION_STATE_CHANGE_TYPE *pType
);

Property value

The kind of Terminal Server session change that triggers a task to launch.

The possible values are from the TASK_SESSION_STATE_CHANGE_TYPE enumeration.

ValueMeaning
TASK_CONSOLE_CONNECT
1

Terminal Server console connection state change.

TASK_CONSOLE_DISCONNECT
2

Terminal Server console disconnection state change.

TASK_REMOTE_CONNECT
3

Terminal Server remote connection state change.

TASK_REMOTE_DISCONNECT
4

Terminal Server remote disconnection state change.

TASK_SESSION_LOCK
7

Terminal Server session locked state change.

TASK_SESSION_UNLOCK
8

Terminal Server session unlocked state change.

 

Error codes

NameMeaning
S_OK

The property value was successfully set or retrieved.

Requirements

Minimum supported client

Windows Vista [desktop apps only]

Minimum supported server

Windows Server 2008 [desktop apps only]

Header

Taskschd.h

Library

Taskschd.lib

DLL

Taskschd.dll

See also

ISessionStateChangeTrigger

 

 

Community Additions

ADD
Show:
© 2014 Microsoft