EsbListConnections

Lists all users who are connected to the currently logged in server or application.

Syntax

EsbListConnections (hCtx, pItems)
ByVal hCtx   As Long
      pItems As Integer
ParameterDescription

hCtx

VB API context handle.

pItems

Variable to receive Items of users.

Notes

Return Value

Returns 0 if successful.

Access

This function requires the caller to have Administrator or Application Manager privilege.

Example

Declare Function EsbListConnections Lib "ESBAPIN" (ByVal hCtx As Long, Items As Integer) As Long
Sub ESB_ListConnections()
   Dim Items As Integer
   Dim UserInfo As ESB_USERINFO_T
   Dim sts As Long
   '*****************
   ' List Connections
   '***************** 
   sts = EsbListConnections(hCtx, Items)
   For n = 1 To Items
     '*****************************
     ' Get next User Info structure
     ' from the list
     '*****************************
     sts = EsbGetNextItem(hCtx, 
           ESB_USERINFO_TYPE, UserInfo)
   Next
End Sub

See Also