EssSetGroup

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

Syntax

ESS_FUNC_M EssSetGroup (hCtx, pGroupInfo); 
ParameterData TypeDescription

hCtx

ESS_HCTX_T

API context handle.

pGroupInfo

ESS_USERINFO_T, ESS_GROUPINFO_T

Pointer to group info structure.

Notes

Return Value

None.

Access

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

Example

ESS_FUNC_M
ESS_SetGroup (ESS_HCTX_T  hCtx)
{
   ESS_FUNC_M        sts  = ESS_STS_NOERR;
   ESS_USERINFO_T   Group;
   
   strcpy(Group.Name,"PowerUsers");
   strcpy(Group.AppName,"Sample");
   strcpy(Group.DbName,"Basic");
   Group.Access = ESS_ACCESS_SUPER;
  
   sts = EssSetGroup(hCtx, &Group);
   return (sts);
}

See Also