EsbSetGroupList

グループのメンバーであるユーザーのリストを設定します。

構文

            EsbSetGroupList
             (
            hCtx, GrpName, GrpList, Items
            )
ByVal 
            hCtx
                As Long
ByVal 
            GrpName
             As String
ByVal 
            GrpList
             As String
ByVal 
            Items
               As Integer
         
パラメータ説明

hCtx

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

GrpName

グループまたはユーザー名。

GrpList

ユーザー名の文字列(EOL、CRで区切られる)の長さは、64KB未満である必要があります。

Items

ユーザー名のアイテム。

備考

ユーザーが属するグループのリストを設定するには、ユーザー名をGroupName引数として入力し、グループのリストをUserList引数として渡します。

戻り値

なし。

アクセス

この関数を使用するには、ログインしたサーバーに対して、呼出し元がユーザーの作成/削除権限(ESB_PRIV_USERCREATE)を持っている必要があります。

         Declare Function EsbSetGroupList Lib "ESBAPIN" (ByVal hCtx As Long, ByVal GroupName As String, ByVal UserList As String, ByVal Items As Integer) As Long 

Sub ESB_SetGroupList ()
   Dim sts As Long
   Dim GroupName As String
   Dim UserList As String
   Dim Items As Integer
   Dim CRLF As String
   CRLF = Chr$(13) + Chr$(10)
   GroupName = "PowerUsers"   '******************************
   ' Initialize UserList and Items
   '****************************** 
   Items = 2
   UserList = "Admin" + CRLF + "Bob" '*************** 
   ' Set Group List
   '***************
   sts = EsbSetGroupList (hCtx, GroupName, UserList, Items) 
End Sub
      

関連トピック