EsbGetGroup

グループのセキュリティ情報が含まれている、グループ情報構造体を取得します。

構文

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

hCtx

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

GrpName

グループ名。

pUserInfo

グループの情報構造体を受け取るバッファ。

戻り値

正常終了の場合、グループの情報構造体がpGroupInfoに戻されます。

アクセス

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

         Declare Function EsbGetGroup Lib "ESBAPIN" (ByVal hCtx As Long, ByVal GroupName As String, UserInfo As ESB_USERINFO_T) As Long

Sub ESB_GetGroup ()
   Dim sts As Long
   Dim GroupName As String
   Dim GroupInfo As ESB_USERINFO_T   GroupName = "PowerUsers"   '************************
   ' Get GroupInfo structure
   '************************
   sts = EsbGetGroup (hCtx, GroupName, GroupInfo) 
End Sub
      

関連トピック