EsbListConnections

現在ログインしているサーバーまたはアプリケーションに接続されているユーザーをすべてリストします。

構文

            EsbListConnections
             (
            hCtx, pItems
            )
ByVal 
            hCtx
               As Long
      
            pItems
             As Integer
         
パラメータ説明

hCtx

VB APIコンテキスト・ハンドル。

pItems

ユーザーのアイテムを受け取る変数。

備考

戻り値

成功の場合、0が戻されます。

アクセス

この関数を使用するには、呼出し元が管理者またはアプリケーション・マネージャ権限を持っている必要があります。

         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
      

関連トピック