uaPLUS Reference
onGetServerInstanceInfo(Int32,Int32,IntPtr) Method
See Also  Send Feedback
Advosol.uaPLUS Namespace > uaPLUS Class > onGetServerInstanceInfo Method : onGetServerInstanceInfo(Int32,Int32,IntPtr) Method

handle
Handle of the server instance or 0 for all instances
num
info
IntPtr to ServerInstanceInfo[] Current server instance data. The array lenght is 0 if the requested instance doesn't exist.

Glossary Item Box

Generic server callback method. Supported only by the Professional Edition generic server V5.1 or newer.
Get information about all server instances (UA sessions) or the requested server instance only. This information may be used to identify the client application, especially when the client application defines a name using the SetClientName OPC method.
Be aware the the client name cannot yet be defined during the instance creation (ServerInstancesChange call for creation). The client application has to call SetClientName() to define the name. The client handle is passed as an argument to the plugin methods ValidateItems and WriteItems to enable the server to allow/deny the access based on the instance information.

Syntax

Visual Basic (Declaration) 
Public Overloads Function onGetServerInstanceInfo( _
   ByVal handle As Integer, _
   ByRef num As Integer, _
   ByRef info As IntPtr _
) As Integer
C# 
public int onGetServerInstanceInfo( 
   int handle,
   out int num,
   out IntPtr info
)

Parameters

handle
Handle of the server instance or 0 for all instances
num
info
IntPtr to ServerInstanceInfo[] Current server instance data. The array lenght is 0 if the requested instance doesn't exist.

Return Value

Error/success code

Requirements

Target Platforms: Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows 7, Windows Server 2008 family

See Also

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