EssListConnections

Lists all users who are connected to the currently logged in server or application.

Syntax

ESS_FUNC_M EssListConnections (hCtx, pCount, ppUserList);
ParameterData TypeDescription

hCtx

ESS_HCTX_T

API context handle

pCount

ESS_PUSHORT_T

Variable to receive count of users

ppUserList

ESS_USERINFO_T, ESS_GROUPINFO_T

Pointer to an array of user information structures. This array is allocated by the API

Notes

Return Value

Returns 0 if successful.

Access

This function requires the caller to have Supervisor or Application Designer privilege.

Example

ESS_FUNC_M ESS_ListUserConnections (ESS_HCTX_T        hCtx, ESS_HINST_T hInst)
{
        ESS_FUNC_M         sts = ESS_STS_NOERR;
        ESS_USHORT_T      usrcnt;
        ESS_PUSERINFO_T   users;
        sts = EssListConnections(hCtx, &usrcnt,     &users);
        if(!sts)
        EssFree(hInst, users);
        return(sts);
}

See Also

  • EssListConnectionsEx