EsbSetGroup

Sets a group information structure, which contains security information for the group.

Syntax

EsbSetGroup (hCtx, pUserInfo)
ByVal hCtx      As Long
      pUserInfo As ESB_USERINFO_T 
ParameterDescription

hCtx

VB API context handle.

pUserInfo

Pointer to group info structure.

Notes

Return Value

None.

Access

This function requires the caller to have Create/Delete User privilege (ESB_PRIV_USERCREATE) for the logged in server.

Example

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

See Also