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 (Usage) | Copy Code |
---|
Dim instance As GenericServer
Dim action As Integer
Dim instanceHandle As Integer
Dim value As Integer
value = instance.ServerInstancesChange(action, 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