XDASrv Reference Manual
ServerInstancesChange Method
See Also  Send Feedback
NSPlugin Namespace > GenericServer Class : ServerInstancesChange Method




action
1=new instance is requested, 2=an instance terminates
instanceHandle
indicates the server instance for a particular client.
This method is called when:
a) A client connects and therefore a new server instance has to be created. If the method returns an error code then no instance is created and the client connect is failed. b) A server instance is terminating (a client disconnects). This method cannot prevent this. The call is to inform the plugin of the status change.

Syntax

Visual Basic (Declaration) 
Public Function ServerInstancesChange( _
   ByVal action As Integer, _
   ByVal instanceHandle As Integer _
) As Integer
Visual Basic (Usage)Copy Code
Dim instance As GenericServer
Dim action As Integer
Dim instanceHandle As Integer
Dim value As Integer
 
value = instance.ServerInstancesChange(action, instanceHandle)
C# 
public int ServerInstancesChange( 
   int action,
   int instanceHandle
)
Managed Extensions for C++ 
public: int ServerInstancesChange( 
   int action,
   int instanceHandle
) 
C++/CLI 
public:
int ServerInstancesChange( 
   int action,
   int instanceHandle
) 

Parameters

action
1=new instance is requested, 2=an instance terminates
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 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

Copyright © 2002-2011 Advosol Inc. All Rights Reserved.