EsbSetGroup

グループのセキュリティ情報を含むグループ情報構造体を設定します。

構文

            EsbSetGroup
             (
            hCtx, pUserInfo
            )
ByVal 
            hCtx
                  As Long
      
            pUserInfo
             As ESB_USERINFO_T 
         
パラメータ説明

hCtx

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

pUserInfo

グループ情報構造体へのポインタ。

備考

戻り値

なし。

アクセス

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

         Declare Function EsbSetGroup Lib "ESBAPIN" (ByVal hCtx As Long, GroupInfo As ESB_USERINFO_T) As Long

Sub ESB_SetGroup ()
   Dim sts As Long
   Dim GroupInfo As ESB_USERINFO_T   '*******************************
   ' Initialize GroupInfo structure
   '*******************************
   GroupInfo.Name = "PowerUsers"
   GroupInfo.Type = ESB_TYPE_GROUP
   GroupInfo.Access = ESB_PRIV_APPCREATE
   GroupInfo.MaxAccess = ESB_PRIV_APPCREATE '************************ 
   ' Set GroupInfo structure
   '************************
   sts = EsbSetGroup (hCtx, GroupInfo) 
End Sub
      

関連トピック