uaPLUS Reference
DlgPlgServerInstancesChange Delegate
See Also  Send Feedback
Advosol.uaPLUS Namespace : DlgPlgServerInstancesChange Delegate

action
1=session is activated, 2=session is closing
instanceHandle
indicates the server instance for a particular client.

Glossary Item Box

This method is called when:
a) A client activates a session. If the method returns an error code then no instance is created and the client request is to be failed. b) A client closes the session. This method cannot prevent this. The call is to inform the plugin of the status change.

Syntax

Visual Basic (Declaration) 
Public Delegate Function DlgPlgServerInstancesChange( _
   ByVal action As Integer, _
   ByVal instanceHandle As Integer _
) As Integer
C# 
public delegate int DlgPlgServerInstancesChange( 
   int action,
   int instanceHandle
)

Parameters

action
1=session is activated, 2=session is closing
instanceHandle
indicates the server instance for a particular client.

Return Value

S_OK to allow the creation of a new server instance, an error code to prevent it.

Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

© 2010-2018 Copyright Advosol Inc. All Rights Reserved.