EssSetApplicationAccess

Sets a list of user application access structures, which contain information about user access to applications.

Syntax

ESS_FUNC_M  EssSetApplicationAccess (hCtx, Count, pUserApp); 
ParameterData TypeDescription

hCtx

ESS_HCTX_T

API context handle.

Count

ESS_USHORT_T

Count of user application structures.

pUserApp

ESS_USERAPP_T, ESS_GROUPAPP_T

Pointer to an array of user application structures.

Notes

Return Value

None.

Access

This function requires the caller to have application Design privilege (ESS_PRIV_APPDESIGN) for the specified application.

Example

ESS_FUNC_M
ESS_SetApplicationAccess (ESS_HCTX_T  hCtx)
{
   ESS_FUNC_M      sts = ESS_STS_NOERR;
   ESS_USHORT_T  Count;
   ESS_USERAPP_T UserApp;
   strcpy(UserApp.UserName,"Jim Smith");
   strcpy(UserApp.AppName,"Sample");
   UserApp.Access     = ESS_PRIV_APPDESIGN;
   UserApp.MaxAccess  = ESS_PRIV_APPDESIGN;
   sts = EssSetApplicationAccess(hCtx, Count,
        &UserApp);
   return (sts);
}

See Also