Click to Rate and Give Feedback
MSDN
MSDN Library
System Services
IWTSSBPlugin
Methods
 IWTSSBPlugin::WTSSBX_SessionChangeN...
IWTSSBPlugin::WTSSBX_SessionChangeNotification Method

Notifies the plug-in that a change, such as a logon, logoff, disconnect, or reconnect, occurred in the session.

Syntax

C++
HRESULT WTSSBX_SessionChangeNotification(
  [in]  WTSSBX_NOTIFICATION_TYPE NotificationType,
  [in]  long  MachineId,
  [in]  DWORD  NumOfSessions,
  [in]  WTSSBX_SESSION_INFO SessionInfo
);

Parameters

NotificationType [in]

A WTSSBX_NOTIFICATION_TYPE type that specifies the type of change that occurred.

MachineId [in]

The ID of the server on which the session change occurred.

NumOfSessions [in]

The number of elements in the SessionInfo array.

SessionInfo [in]

An array of WTSSBX_SESSION_INFO structures that contain information about sessions. Only the members that have changed are reported in this structure. The others are set to zero.

Return Value

Returns S_OK if successful.

Remarks

The WTSSBX_SessionChangeNotification method can report up to 25 sessions each time it is called. If Terminal Services Session Broker (TS Session Broker) needs to report more than 25 sessions, it calls this method multiple times until it reports all of its sessions.

Your implementation of this method must return S_OK immediately if successful.

Requirements

Minimum supported clientNone supported
Minimum supported serverWindows Server 2008
HeaderTssbx.h
IDLTssbx.idl
IIDIID_IWTSSBPlugin is defined as DC44BE78-B18D-4399-B210-641BF67A002C

See Also

IWTSSBPlugin

Send comments about this topic to Microsoft

Build date: 10/19/2009

Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2009 Microsoft Corporation. All rights reserved. Terms of Use | Trademarks | Privacy Statement
Page view tracker