EsbListConnections

Description

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

Parameters

hCtxEssbase VB API context handle.
pItemsVariable to receive Items of users.

Return Value

Returns 0 if successful.

Notes

Access

This function requires the caller to have Supervisor or Application Designer privilege.

Example

Declare Function EsbListConnections Lib "ESBAPIW" (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

EsbListLocks()
EsbListUsers()
EsbGetNextItem()